Skip to content

RPi4: Wifi cannot connect to ac accesspoint (no VHT Capabilities) #3378

Closed

Description

@DrHardReset

The Raspberry Pi 4 is not able to connect to wifi accesspoints with wifi standard "ac".
This is because the Raspberry PI 4 is not sending any VHT Capabilities.
My wifi router is running with 5 GHz mixed standard "n+ac" (WI-Fi 5) accesspoint and the Raspberry PI 4 is always connecting with n standard.

To reproduce
Use the following wpa_supplicant config and connect to accesspoint.

wpa_supplicant.config:

ctrl_interface=/run/wpa_supplicant
p2p_disabled=1

network={
ssid="MySSID"
psk="MySecurePsk"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
pbss=2
}

Expected behaviour
The Raspberry PI 4 should send VHT Capabilities and connect with wifi standard ac

Actual behaviour
The Raspberry PI 4 does not send VHT Capabilities and connects with wifi standard n

  • Which model of Raspberry Pi? e.g. Pi3B+, PiZeroW
    Raspberry Pi 4 4 GB RAM

  • Which OS and version (cat /etc/rpi-issue)?
    Raspberry Pi reference 2019-06-08
    Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, d942d5487c035ecd568c1a3049d8b00b14132678, stage5

  • Which firmware version (vcgencmd version)?
    Sep 24 2019 17:34:30
    Copyright (c) 2012 Broadcom
    version cd3add54955f8fa065b414d8fc07c525e7ddffc8 (clean) (release) (start)

  • Which kernel version (uname -a)?
    Linux hostname 4.19.75-v7l+ solved issue of mirroring screen after rotation. #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux

Logs
Find attached a Wireshark capture of the association request with missing VHT Capabilities...
wireshark_capture.zip

dmesg:
dmesg.txt

Activity

  1. pelwell commented on Dec 16, 2019

    @pelwell
    Contributor

    Which country/regulatory domain are you in? Your wpa_supplicant.conf appears to have no "country=XX" line.

  2. DrHardReset commented on Dec 16, 2019

    @DrHardReset
    Author

    This is the output of "iw reg get":
    global
    country DE: DFS-ETSI
    (2400 - 2483 @ 40), (N/A, 20), (N/A)
    (5150 - 5250 @ 80), (N/A, 20), (N/A), NO-OUTDOOR, AUTO-BW
    (5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW
    (5470 - 5725 @ 160), (N/A, 26), (0 ms), DFS
    (5725 - 5875 @ 80), (N/A, 13), (N/A)
    (57000 - 66000 @ 2160), (N/A, 40), (N/A)

    The wifi accesspoint is configured for Germany, too.

  3. pelwell commented on Dec 17, 2019

    @pelwell
    Contributor

    My 4B has no difficulty connecting to an "ac" AP, and I suspect millions of other 4B and 3B+ users (they both use the same WiFi controller) are in the same position. I can think of four potential explanations for the difference:

    1. Most ac APs don't require VHT capabilities, but yours does.
    2. No ac APs require VHT capabilities - the failure to connect to your AP is caused by something else.
    3. Most 43455-equipped Pis generate VHT capabilities, but your 4B with your configuration doesn't.
    4. All 43455-equipped Pis generate VHT capabilities, but they aren't being captured and the problem is unrelated.

    Please try connecting to your AP using the WiFi post-installation wizard on a fresh Raspbian download. If your AP is configured to require non-standard settings, please explain exactly which settings in your wpa_supplicant.conf are absolutely necessary.

  4. pelwell commented on Dec 17, 2019

    @pelwell
    Contributor

    So it appears, but that doesn't really move us forward.

    @HardResetSolution How did you create that Wireshark capture? Does it require a monitor-mode device?

  5. DrHardReset commented on Dec 18, 2019

    @DrHardReset
    Author

    I had the chance to check interoparbility with 2 further wifi accesspoints. The 3 testet devices show the following behaviour:

    FRITZ!Box 7590 -> PI sends no VHT Capabilities
    Asus ac68u -> PI sends no VHT Capabilities
    Netgear Nighthawk rax40 -> PI sends VHT Capabilities

    asus_and_netgear.zip

    For this test I used the WiFi post-installation wizard on a fresh Raspbian download.

    wpa_supplicant.config is the following:

    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1
    country=DE

    network={
    ssid="MySSID"
    psk="MySecurePsk"
    key_mgmt=WPA-PSK
    }

    For the FRITZ!Box I could create the capture via the accesspoint itself. For Asus and Netgear I used a wifi sniffer (monitor mode).

    @pelwell Which accesspoint did you use and how did you make sure the Raspberry PI is using "ac" and not "n"?

  6. pelwell commented on Dec 18, 2019

    @pelwell
    Contributor

    Which accesspoint did you use and how did you make sure the Raspberry PI is using "ac" and not "n"?

    We have a Ubiquiti in-house WiFi network, and there's Netgear Nighthawk R7000 on my desk, and the 4B connects to both in the 5G band. Both are "ac" capable APs, but it is possible that these connections are "n" only - it's coming up with a 40MHz channel width.

  7. DrHardReset commented on Dec 20, 2019

    @DrHardReset
    Author

    I could check a few more accesspoints, but I'm not sure whether that will help us.
    Does anybody have an idea how to check if the PI is connected via "n" or "ac". So far the only way I know is checking the GUI of the FRITZ!Box accesspoint.
    As you mentioned my PIs also connect with 40MHz channel width - but that could be both: "n" or "ac".

  8. satmandu commented on Dec 20, 2019

    @satmandu

    Ubuntu has https://packages.ubuntu.com/eoan/iw which can show the bandwidth of a connection this way (on one of my rpi4B devices connected to a Ubiquiti nano-HD):

    @rpi4:~$iw dev
    phy#0
            Unnamed/non-netdev interface
                    wdev 0x2
                    addr ******
                    type P2P-device
                    txpower 31.00 dBm
            Interface wlan0
                    ifindex 3
                    wdev 0x1
                    addr ******
                    ssid ******
                    type managed
                    channel 104 (5520 MHz), width: 80 MHz, center1: 5530 MHz
                    txpower 31.00 dBm
    

    (I must be connected through ac since I'm connected via an 80MHz channel.)

  9. zorazor commented on Apr 12, 2020

    @zorazor

    Hello,

    I have the same issue.
    I have a RPi4 and the router Fritz!Box 7590.

    Usually my RPi-country code is set to DE:
    20200412_030416

    I found out that if I set the RPi-region to US, a 5GHz ac connection is established:
    20200412_021404

    The ac connection is then very unstable and disconnects even more often.

    (RPi4 and SmartDevice are in the same room)

  10. DrHardReset commented on Apr 14, 2020

    @DrHardReset
    Author

    I see the same behaviour with my FRITZ!Box 7590 router.
    Setting PIs region to "DE" leads to "n" connection.
    Setting PIs region to "US" leads to "ac" connection.

    In the attached capture you can see, that in packet 4 (region "DE") the VHT-Capabillities are missing but in packet 15 (region "US") they are included. This looks like a proof for misbehaviour of the PI for me.
    capture.zip

  11. kosmosgit commented on Apr 19, 2020

    @kosmosgit

    I also had problems that my 4er Pi's had not connected to the AC grid. The problem is probably due to the reception performance of the Pi's. Using DD-WRT router software, I can set the transmission power separately, if I reduce the transmission power in the N 2.4 GHz network by -2 dB then the Pi's choose the AC network instead of the N 2.4 GHz network. So just think that the Pi's choose the stronger network and therefore always choose the stronger N 2.4 GHz network.

    Perhaps it should be improved in the firmware that the AC network is given priority even if it is minimally weaker than the N network

  12. DrHardReset commented on Apr 29, 2020

    @DrHardReset
    Author

    I did a check, which country-codes result in an ac connection with FRITZ!Box 7590.

    connection with ac:
    AD, AU, NG, TZ, UG, US

    connection with only n:
    AR, AT, BE, BA, CH, CY, CZ, DK, DE, EE, ES, FI, FR, GR, GB, HU, IE, IL, IT, HR, LU, LV, ME, MK, NA, NZ, NL, NO, PL, PT, SE, SI, SK, TH, ZA

  13. pelwell commented on Jun 16, 2020

    @pelwell
    Contributor

    You can download a trial clm_blob file that may improve the connection options - it's available from https://drive.google.com/file/d/1Qoc90FCTO17d69PbBqUhkJKgqDMmdOui/view?usp=sharing

    Make a backup of your old clm_blob and install the new one using:

    $ sudo cp /lib/firmware/brcm/brcmfmac43455-sdio.clm_blob{,.orig}
    $ sudo cp 43455_raspberry_3p_v1_190515.clm_blob /lib/firmware/brcm/brcmfmac43455-sdio.clm_blob
    

    Reboot to use the new clm_blob.

    N.B. This clm_blob is not suitable for use on a 3B+, so don't try this on a card that might be used on one.

  14. fpousserot commented on Jun 18, 2020

    @fpousserot

    I just tested the file, and no better.

    The PI4 only connects in 2.4ghz g (signal -32 db ; tx: 48 mbit/s ; rx: 24 mbit/s)

    Thie PI4 does not want to connect in 5ghz - 80mhz (802.11a, 802.11n, 802.11ac).

    Pi4 is installed next to the router (freebox france)

    should an option be activated?

    country=fr
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1
    network={
    ssid="*****"
    psk="******"
    proto=RSN
    key_mgmt=WPA-PSK
    pairwise=CCMP
    auth_alg=OPEN
    }
    
    iw dev
    phy#0
            Unnamed/non-netdev interface
                    wdev 0x2
                    addr ***
                    type P2P-device
                    txpower 31.00 dBm
            Interface wlan0
                    ifindex 3
                    wdev 0x1
                    addr ***
                    ssid ***
                    type managed
                    channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
                    txpower 31.00 dBm
    
  15. 33 remaining items

  16. graysky2 commented on Nov 20, 2020

    @graysky2
    Contributor

    @tomty89 - I don't know how wise it is to ship these untested. Plus, including these is ultimately up to @kmihelich

  17. DrHardReset commented on Nov 26, 2020

    @DrHardReset
    Author

    @pelwell Can you give me a hint on how to install the blob?
    In https://www.raspberrypi.org/forums/viewtopic.php?f=117&t=291609 I see instructions for copying brcmfmac43455-sdio.clm_blob to /lib/firmware/brcm/.
    But the given downloadlink points to brcmfmac43455-sdio.bin. Where do I get the .clm_blob file from?

  18. pelwell commented on Nov 26, 2020

    @pelwell
    Contributor

    I don't understand - the download link (https://drive.google.com/file/d/1AN7lC_kMJGGg5AJLhSRtlTRgIh9qJlaI/view?usp=sharing) is for brcmfmac43455-sdio.clm_blob.

  19. DrHardReset commented on Nov 26, 2020

    @DrHardReset
    Author

    OK, my fault. FireFox for Android replaced the file extension from clm_blob to bin for some reason.

  20. DrHardReset commented on Nov 26, 2020

    @DrHardReset
    Author

    Thanks for the hint to the firmware blob!
    In a quick test the Raspberry Pi was able to establish a connection to my FRITZ!Box with region DE & WIFI standard AC & HT80.
    I will try to make some stability tests.

  21. pelwell commented on Nov 26, 2020

    @pelwell
    Contributor

    At this point it is looking very likely that the updated blob will be in the next image.

  22. DrHardReset commented on Nov 27, 2020

    @DrHardReset
    Author

    I cheered too soon. The Raspberry PI is now only able to connect to APs that use channels lower than 52 which are only channels 36, 40, 44 and 48. APs on different channels are not seen/found by the Raspberry PI.

    iw reg get:
    global
    country DE: DFS-ETSI
    (2400 - 2483 @ 40), (N/A, 20), (N/A)
    (5150 - 5250 @ 80), (N/A, 20), (N/A), NO-OUTDOOR, AUTO-BW
    (5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW
    (5470 - 5725 @ 160), (N/A, 26), (0 ms), DFS
    (5725 - 5875 @ 80), (N/A, 13), (N/A)
    (57000 - 66000 @ 2160), (N/A, 40), (N/A)

    It does not matter which country I configure in wpa_supplicant.conf. I tried DE, US and UG.

  23. pelwell commented on Nov 27, 2020

    @pelwell
    Contributor

    Try this one instead: https://drive.google.com/file/d/1J8DdbsrZcSkDYKUPsdy2RvncttSwQdBH/view?usp=sharing

    Note that you will need to rename it from brcmfmac43456-sdio.clm_blob to brcmfmac43455-sdio.clm_blob before (or when) copying it /lib/firmware/brcm.

  24. DrHardReset commented on Nov 30, 2020

    @DrHardReset
    Author

    Thanks pelwell. I did some testing and set up a comparison between original, 43455 and 34456 blob.
    I put the negative points in bold.

    original blob:

    • ac and HT80 is not possible
    • connection to all 5 GHz channels is possible
    • connection to all 2,4 GHz channels is possible

    brcmfmac43455-sdio.clm_blob:

    • ac connection with HT80 is possible
    • 5 GHz connection is only possible with channels 36, 40, 44 and 48
    • 2,4 GHz connection is possible with all channels 1 to 13

    brcmfmac43456-sdio.clm_blob:

    • ac connection with HT80 is possible
    • 5 GHz connection seems to be possible with all channels (I tested some random channels like 36, 52, 64, 100, 116, 128)
    • 2,4 GHz connection is only possible with channels 1 and 2
  25. pelwell commented on Nov 30, 2020

    @pelwell
    Contributor
    • 2,4 GHz connection is only possible with channels 1 and 2

    I have a Pi 4 here running with the renamed 43455 clm_blob, configured to be in WiFi region "DE", and it's happily connected on channel 11.

  26. DrHardReset commented on Nov 30, 2020

    @DrHardReset
    Author

    Well strange, I put a second Pi 4 in my testsetup and this one can connect with all 2,4 GHz channels.
    Although I'm a bit puzzled as to why the first Pi is having problems, the brcmfmac43456-sdio.clm_blob fixes the ac problem.

    You said that the updated blob will be in the next image. Do you have a clue, when this will be released? Or can you say when the blob will be part of regular updates via apt?

  27. pelwell commented on Nov 30, 2020

    @pelwell
    Contributor

    The next image is due in a matter of weeks, rather than months. The relevant apt package might be updated before then, but probably not.

  28. DrHardReset commented on Apr 12, 2021

    @DrHardReset
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Wifi Issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions