I need to enable monitor mode on my Lenovo Legion computer running Ubuntu 22.04.2 LTS to start sniffing wifi traffic through Wireshark.
I've correctly installed Wireshark through apt-get install but unfortunately inside the Capture options, under the Monitor mode column, no checkbox is displayed but only a small straight line __
In addition if I run ifconfig -a inside the terminal, no wlan0 interface is shown but only the wlp3s0 interface which seems to be Ethernet (even if it is for sure the wireless interface)


I've figured out how to deal with it:
sudo ifconfig wlp3s0 downsudo iwconfig wlp3s0 mode monitorsudo ifconfig wlp3s0 upsudo wireshark