pi@raspberrypi:~ $ rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: phy1: Wireless LAN
Soft blocked: no
Hard blocked: no
2: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
pi@raspberrypi:~ $ rfkill block wifi 0
pi@raspberrypi:~ $ rfkill list

0: phy0: Wireless LAN
Soft blocked: yes
Hard blocked: no
1: phy1: Wireless LAN
Soft blocked: yes
Hard blocked: no
2: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
pi@raspberrypi:~ $ rfkill unblock wifi 1
pi@raspberrypi:~ $ rfkill list

0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: phy1: Wireless LAN
Soft blocked: no
Hard blocked: no
2: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
pi@raspberrypi:~ $

To test this:

pi@raspberrypi:~ $ rfkill block wifi 0
pi@raspberrypi:~ $ sudo airmon-ng start wlan1

Found 6 processes that could cause trouble.
Kill them using 'airmon-ng check kill' before putting
the card in monitor mode, they will interfere by changing channels
and sometimes putting the interface back in managed mode

PID Name
435 avahi-daemon
451 wpa_supplicant
453 dhcpcd
455 avahi-daemon
539 wpa_supplicant
585 wpa_supplicant

PHY Interface Driver Chipset

phy0 wlan0 brcmfmac Broadcom 43430
phy1 wlan1 ath9k_htc Qualcomm Atheros Communications TP-Link TL-WN322G v3 / TL-WN422G v2 802.11g [Atheros AR9271]
wlan1 is soft blocked, please run "rfkill unblock 1" to use this interface.
rfkill error, unable to start wlan1

Would you like to try and automatically resolve this? [y/n]

Edit
Pub: 24 Nov 2021 10:46 UTC
Views: 54