Wi-Fi roaming (I'm tired)

Post a reply

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Wi-Fi roaming (I'm tired)

Re: Wi-Fi roaming (I'm tired)

by laesyar » Tue Oct 20, 2020 5:04 pm

Yes please return to wl driver.
B43 solves one issue, but creates many other issues.

Re: Wi-Fi roaming (I'm tired)

by aka » Tue Oct 20, 2020 3:38 pm

Return wl driver back?

Re: Wi-Fi roaming (I'm tired)

by laesyar » Tue Oct 20, 2020 12:15 pm

aka wrote: Tue Oct 20, 2020 12:56 am Add to wpa_supplicant command line:

Code: Select all

-f /tmp/wpa_supplicant.out
So we can compare wpa_supplicant output.
This is the output

Code: Select all

Successfully initialized wpa_supplicant
wlan0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
wlan0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
wlan0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
wlan0: SME: Trying to authenticate with aa:aa:aa:aa:aa:aa (SSID='myssid' freq=2462 MHz)
wlan0: Trying to associate with aa:aa:aa:aa:aa:aa (SSID='myssid' freq=2462 MHz)
wlan0: Associated with aa:aa:aa:aa:aa:aa
wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlan0: WPA: Key negotiation completed with aa:aa:aa:aa:aa:aa [PTK=CCMP GTK=CCMP]
wlan0: CTRL-EVENT-CONNECTED - Connection to aa:aa:aa:aa:aa:aa completed [id=0 id_str=]
wlan0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=NL
wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-35 noise=0 txrate=11000
nl80211: send_and_recv->nl_recvmsgs failed: -33
wlan0: SME: Trying to authenticate with bb:bb:bb:bb:bb:bb (SSID='myssid' freq=5200 MHz)
wlan0: Trying to associate with bb:bb:bb:bb:bb:bb (SSID='myssid' freq=5200 MHz)
wlan0: Associated with bb:bb:bb:bb:bb:bb
wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlan0: WPA: Key negotiation completed with bb:bb:bb:bb:bb:bb [PTK=CCMP GTK=CCMP]
wlan0: CTRL-EVENT-CONNECTED - Connection to bb:bb:bb:bb:bb:bb completed [id=0 id_str=]
wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
wlan0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=NL
wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-61 noise=0 txrate=24000
aka wrote: Tue Oct 20, 2020 12:56 am Disable 5 GHz only on this device? One line to wpa_supplicant.conf:

Code: Select all

freq_list=2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472
When 5 GHz is disabled it works better now.
However, connection is still not stable and still freezes every now and then.

I think we learned something useful from trying B43 driver, but maybe it is better to revert to WL driver.
Since I added bgscan to wpa_supplicant.conf, no more "I'm tired" message has appeared with WL driver.
Roaming will be less elegant without measuring signal strength, but I think it is better than an unstable connection.

If you want me to test more it is fine, but I think WL driver will be the best choice.

Re: Wi-Fi roaming (I'm tired)

by aka » Tue Oct 20, 2020 12:56 am

Add to wpa_supplicant command line:

Code: Select all

-f /tmp/wpa_supplicant.out
So we can compare wpa_supplicant output.
laesyar wrote: Fri Oct 16, 2020 12:47 pm Unfortunately I'm not able to disable 5 GHz. The warehouse devices depend on this band.
Disable 5 GHz only on this device? One line to wpa_supplicant.conf:

Code: Select all

freq_list=2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472

Re: Wi-Fi roaming (I'm tired)

by laesyar » Fri Oct 16, 2020 12:47 pm

aka wrote: Thu Oct 15, 2020 4:21 pm It there such line ?
Yes, indeed it says

Code: Select all

[   14.582103] b43 ssb0:0: firmware: direct-loading firmware b43/ucode16_mimo.fw
[   14.586401] b43 ssb0:0: firmware: direct-loading firmware b43/n0initvals16.fw
[   14.587283] b43 ssb0:0: firmware: direct-loading firmware b43/n0bsinitvals16.fw
[   16.262377] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
Full debian log is attached to this reply.

dmesg_full.txt
(58.75 KiB) Downloaded 369 times

aka wrote: Thu Oct 15, 2020 4:40 pm Also
Unfortunately I'm not able to disable 5 GHz. The warehouse devices depend on this band.

Re: Wi-Fi roaming (I'm tired)

by aka » Thu Oct 15, 2020 4:40 pm

Also
"But I didn't solve with this, after a while I just changed the Wireless mode in my router into
802.11 b/g/n mixed
Moreover, I disabled the 5 GHz in the router, probably it is overcharged.
All of this fixed my issue.

Re: Wi-Fi roaming (I'm tired)

by aka » Thu Oct 15, 2020 4:21 pm

Look ad Debian command output:

Code: Select all

dmesg | grep firmware
It there such line ?
b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)

Re: Wi-Fi roaming (I'm tired)

by laesyar » Thu Oct 15, 2020 3:42 pm

After some testing, it seems that the Wi-Fi connection disconnects every minute or so.
The following happens in the log:

Code: Select all

[           WPA] [  263.881133] l2_packet_send - sendto: No buffer space available
[        KERNEL] [  263.884444] eth0: deauthenticating from bb:bb:bb:bb:bb:bb by local choice (Reason: 1=UNSPECIFIED)
[           WPA] [  263.921913] eth0: CTRL-EVENT-DISCONNECTED bssid=bb:bb:bb:bb:bb:bb reason=1 locally_generated=1
[           WPA] [  263.922015] eth0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
[           WPA] [  263.922146] eth0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="myssid" auth_failures=1 duration=10 reason=WRONG_KEY
[           WPA] [  263.922385] nl80211: Failed to open /proc/sys/net/ipv6/conf/eth0/drop_unicast_in_l2_multicast: No such file or directory
[           WPA] [  263.922581] nl80211: Failed to set IPv6 unicast in multicast filter
The PSK is correct, after a couple of seconds it automatically reconnects, after a minute it disconnects again.

Full log is attached to this reply.
Attachments
log-202010151438.txt
(104.25 KiB) Downloaded 384 times

Re: Wi-Fi roaming (I'm tired)

by laesyar » Thu Oct 15, 2020 11:11 am

Yes! It works!

Broadcom is detected and B43 is loaded:

Code: Select all

[        initrd] [   11.163418] [WiFi] Do not load wl for 14e4:432b.
[        initrd] [   11.194666] Found broadcom chip.
[        initrd] [   11.194777] modprobe b43.
[        KERNEL] [   11.228370] ssb: Found chip with id 0x4322, rev 0x01 and package 0x0A
[        KERNEL] [   11.341015] b43-pci-bridge 0000:04:00.0: Sonics Silicon Backplane found on PCI device 0000:04:00.0
[        KERNEL] [   11.353798] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[        KERNEL] [   11.365358] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[        KERNEL] [   11.378902] b43-phy0: Broadcom 4322 WLAN found (core revision 16)
[        KERNEL] [   11.420327] b43-phy0: Found PHY: Analog 8, Type 4 (N), Revision 4
[        KERNEL] [   11.420366] b43-phy0: Found Radio: Manuf 0x17F, ID 0x2056, Revision 3, Version 0
[        KERNEL] [   11.436583] Broadcom 43xx driver loaded [ Features: PNL ]
[        KERNEL] [   11.438857] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[        initrd] [   11.438313] modprobe brcmsmac.
[        KERNEL] [   11.462547] b43 ssb0:0 eth0: renamed from wlan0
[        initrd] [   11.478561] Failed to disable Wi-Fi Power Management.
It monitors signal strength correctly now:

Code: Select all

[           WPA] [   23.227948] eth0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-42 noise=0 txrate=18000
I will have someone test this WTware version with the B43 driver to confirm if it works stable for a couple of days and I will let you know the results.

Re: Wi-Fi roaming (I'm tired)

by aka » Wed Oct 14, 2020 9:17 pm

Please try this build: http://wtware.com/testing/202010141414.zip

It should use b43 for 14e4:432b.

Re: Wi-Fi roaming (I'm tired)

by laesyar » Wed Oct 14, 2020 4:32 pm

Ah yes you are correct.
I needed to install debian again for lsmod output and it says that the b43 driver uses a non-free firmware.

Attached you can find the lsmod output.
Attachments
lsmod.txt
(3.56 KiB) Downloaded 359 times

Re: Wi-Fi roaming (I'm tired)

by aka » Tue Oct 13, 2020 5:31 pm

laesyar wrote: Tue Oct 13, 2020 5:07 pm Thanks, I attached the log to this reply.
modprobe wl
It's Broadcom STA with debian patches: https://salsa.debian.org/broadcom-sta-t ... adcom-sta/
laesyar wrote: Tue Oct 13, 2020 5:07 pm The b43 driver (firmware-b43-installer) was the driver I used on debian.
firmware-b43-installer download non-free firmwares for b43 driver. Please run in debian:

Code: Select all

lsmod
to find driver really used. lsmod should write b43 or wl.

Re: Wi-Fi roaming (I'm tired)

by laesyar » Tue Oct 13, 2020 5:07 pm

Thanks, I attached
log.txt
(80.06 KiB) Downloaded 366 times
to this reply.

The unit does not support UEFI, so I can't install the WTware UEFI.

I think this is the command I used on debian (nothing special):

Code: Select all

sudo wpa_supplicant -B -c /etc/wpa_supplicant.conf -i wlan0
The b43 driver (firmware-b43-installer) was the driver I used on debian.
Edit: I used the same wpa_supplicant.conf

Re: Wi-Fi roaming (I'm tired)

by akatik » Fri Oct 09, 2020 8:36 am

Please, give me wtware log. With wtware log I'll tell which driver is running.

Under UEFI the latest (5+ years old...) Broadcom STA with debian patches should run, from this link: https://salsa.debian.org/broadcom-sta-t ... adcom-sta/

Under Legacy BIOS there are different variants.

Did you use the same wpa_supplicant.conf for both debian and wtware?

Do you know command line flags passed to wpa_supplicant in Debian?

Re: Wi-Fi roaming (I'm tired)

by laesyar » Fri Sep 18, 2020 5:36 pm

I tried wpa_supplicant on debian on the same terminal model with the Broadcom BCM4322 chipset and the latest Broadcom b43 driver.
wpa_supplicant is there able to monitor the signal strength successfully.

In the attached log you can see the wpa_supplicant log from the debian installation.
So I think if the latest Broadcom STA drivers were added in WTware, that would solve the roaming problem for this model.
Attachments
wpa_supplicant-debian.txt
(1.26 KiB) Downloaded 415 times

Top