2

I recently updated my RPi-3B to bullseye. Since then I am not able to connect it to my wifi. It shows the following message when I login

Wi-Fi is currently blocked by rfkill.
Use raspi-config to set the country before use.

My wpa_supplicant file is definitely correct as of now.

$ cat /etc/wpa_supplicant/wpa_supplicant.conf 
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=IN
network={
    ssid="wifissid"
    psk="password"
}

If I run rfkill list following is what I get

$ rfkill list
0: phy0: Wireless LAN
    Soft blocked: yes
    Hard blocked: no

I have run sudo raspi-config nonint do_wifi_country IN but even after this I get the same issue.

The only solution that works for me is to login to console and then enter the rfkill unblock all

I wonder which is the secret config which is enabling rfkill to block wifi

the100rabh
  • 141
  • 1
  • 1
  • 5

6 Answers6

1

I ran into this when doing a apt dist-upgrade to Debian Bullseye from Debian Buster.

Despite everything, rfkill list recorded my Wifi as being soft-blocked.

The eventual solution was:

sudo apt install urfkill
sudo rfkill unblock wifi

At last, Wifi came up correctly after reboot.

https://freedesktop.org/wiki/Software/urfkill/

HeatfanJohn
  • 3,115
  • 3
  • 26
  • 38
1

Answer https://raspberrypi.stackexchange.com/a/135176/143506 by Matthew Brett works, however, the sudo unblock wifi command is missing rfkill, should look like this:

sudo rfkill unblock wifi
Schnill
  • 11
  • 2
1

Just need to log in (I used the console) and configure connman. connmanctl etc etc. Give it your wifi password and you should be good to go. wpa_supplicant is not needed

someone
  • 11
  • 1
1

I had a similar problem, no Wi-Fi after upgrade to Bullseye, or rather no automatic WIFI at boot time. Turns out that connman is the culprit.

After I did sudo apt purge connman the Wi-Fi turned on immediately after boot as expected.

MatsK
  • 2,882
  • 3
  • 17
  • 22
0

What helped for me (after above tips failed) was to re-enable booting up the Desktop GUI (raspi-config option S5). After rebooting once, WLAN came up fine. I once logged into the desktop to check everything, then used rapsi-config again to set it back to text console and after next reboot WLAN still worked.

0

sudo systemctl disable connman

did it for me, probably wifi isn't configured in connman, so rfkill is triggered, if you need it, you have to configure it and may be also works than.

systemctl status connman - no connman in buster - new in bullseye. That's why there is no config after updating while a fresh bullseye probably has a connman config.

jkl
  • 1
  • 1