Moode Forum
WiFi adapter issue with 32 bit RPi - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: WiFi adapter issue with 32 bit RPi (/showthread.php?tid=7426)



WiFi adapter issue with 32 bit RPi - Viklander - 02-15-2025

Dear all

I have been configuration a RPi 3 and a RPi4 without any problem.

When I came to installing on RPi 2 (yeah, old, but I own quite a few) things went very fine, except that I cannot success with the WiFi, of course with the approriate image

here is the output for lsusb (note : this very adapter works as a charm on the 64 bits Rpi)

root@Bezac:~# lsusb                                                                                                                                  
Bus 001 Device 004: ID 0cf3:9271 Qualcomm Atheros Communications AR9271 802.11n                                                                      
Bus 001 Device 003: ID 0424:ec00 Microchip Technology, Inc. (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter                                      
Bus 001 Device 002: ID 0424:9512 Microchip Technology, Inc. (formerly SMSC) SMC9512/9514 USB Hub                                                    
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub                                                                                      
root@Bezac:~#                                                                                                                                        

here is the output for ifconfig

wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500                                                                                                  
       ether 60:e3:27:0e:70:18  txqueuelen 1000  (Ethernet)                                                                                        
       RX packets 57  bytes 6441 (6.2 KiB)                                                                                                          
       RX errors 0  dropped 0  overruns 0  frame 0                                                                                                  
       TX packets 56  bytes 8680 (8.4 KiB)                                                                                                          
       TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


here is the output for dmesg

[   60.428484] ieee80211 phy0: Atheros AR9271 Rev:1
[   70.659148] wlan0: authenticate with de:62:79:45:bc:52
[   70.659311] wlan0: 80 MHz not supported, disabling VHT
[   72.731215] wlan0: send auth to de:62:79:45:bc:52 (try 1/3)
[   72.733897] wlan0: authenticated
[   72.745182] wlan0: associate with de:62:79:45:bc:52 (try 1/3)
[   72.759285] wlan0: RX AssocResp from de:62:79:45:bc:52 (capab=0x1431 status=0 aid=23)
[   72.814153] wlan0: associated
[   72.846210] wlan0: Limiting TX power to 20 (20 - 0) dBm as advertised by de:62:79:45:bc:52
[   76.776950] wlan0: deauthenticated from de:62:79:45:bc:52 (Reason: 2=PREV_AUTH_NOT_VALID)
[   96.521864] wlan0: authenticate with 26:87:ba:9d:df:01


here is the output for uname (shows 32 bits on RPi2 mod B)

root@Bezac:~# uname -a                                                                                                                              
Linux Bezac 6.1.21+ #1642 Mon Apr  3 17:19:14 BST 2023 armv6l GNU/Linux                                                           

So the dmesg output shows something is going wrong with the registration on the network but I cannot figure out what.
I have tried with different WiFi USB adapters, but the problem remains identical

Any hint will of course be greatly appreciated

Regards,


RE: WiFi adapter issue with 32 bit RPi - Tim Curtis - 02-15-2025

The symptom "works on 64bit but not on 32bit" would suggest some sort of issue with the 32 bit wifi drivers. Its not anything that I could debug but maybe someone else has some insights.


RE: WiFi adapter issue with 32 bit RPi - TheOldPresbyope - 02-15-2025

(02-15-2025, 04:20 PM)Tim Curtis Wrote: The symptom "works on 64bit but not on 32bit" would suggest some sort of issue with the 32 bit wifi drivers. Its not anything that I could debug but maybe someone else has some insights.

The log shows the interface authenticated and then associated with the AP. Subsequently, it got deauthenticated.

There's plenty of hits on the interWeb™ if one enters things like "wlan0: deauthenticated from ... (Reason: 2=PREV_AUTH_NOT_VALID)" and RPis get mentioned in some. A lot of the hits are old, of course, but there's information to be gleaned from them.

I don't have time to filter through them but it certainly isn't a moOde issue. It has to do with the response of the driver to certain behavior of the AP and it certainly could be sensitive to the version of the kernel and its drivers.

Regards,
Kent


RE: WiFi adapter issue with 32 bit RPi - Viklander - 02-15-2025

Thank you all for yours inputs.
I agree 100% that the problem doesn't come from mood itself but rather by the way 32 bits wlan drivers work

I was just wondering if someone faced the problem before, and if there was an official fix for it as, if I end up with some tricky mods, there are chances that a future upgrade may ruin them and I want to avoid entering a manual fix on each device over time

So I guess I'm gonna get some 64 bits Rpis and put an end to the headache :-)


RE: WiFi adapter issue with 32 bit RPi - Viklander - 02-15-2025

in case it might be of interest to anyone :

TP-LINK TL WN-725 does not work on a 32 bits RPi

TP-Link TL WN-722 works immediately on the 32 bits RPi

different chipsets ...

Hence I have a biiiig discount sale on WN-725 if anyone is interested [Image: biggrin.png]

See y'all soon 


root@test:~# ifconfig wlan0                                                                                                        
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500                                                                        
       inet 192.168.1.14  netmask 255.255.255.0  broadcast 192.168.1.255                                                          
       inet6 fe80::d781:90e1:a0a1:2b24  prefixlen 64  scopeid 0x20<link>                                                          
       inet6 2a01:cb05:344:3a00:4865:f884:8c2b:9c40  prefixlen 64  scopeid 0x0<global>                                            
       ether 60:e3:27:0e:70:18  txqueuelen 1000  (Ethernet)                                                                      
       RX packets 8533  bytes 5246112 (5.0 MiB)                                                                                  
       RX errors 0  dropped 1  overruns 0  frame 0                                                                                
       TX packets 4938  bytes 3583024 (3.4 MiB)                                                                                  
       TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0                                                                

root@test:~# ip address                                                                                                            
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000                                        
   link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00                                                                          
   inet 127.0.0.1/8 scope host lo                                                                                                
      valid_lft forever preferred_lft forever                                                                                    
   inet6 ::1/128 scope host                                                                                                      
      valid_lft forever preferred_lft forever                                                                                    
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000                          
   link/ether b8:27:eb:9f:76:58 brd ff:ff:ff:ff:ff:ff                                                                            
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000                                    
   link/ether 60:e3:27:0e:70:18 brd ff:ff:ff:ff:ff:ff                                                                            
   inet 192.168.1.14/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0                                                
      valid_lft 85949sec preferred_lft 75149sec                                                                                  
   inet6 2a01:cb05:344:3a00:4865:f884:8c2b:9c40/64 scope global dynamic mngtmpaddr noprefixroute                                  
      valid_lft 1784sec preferred_lft 584sec                                                                                      
   inet6 fe80::d781:90e1:a0a1:2b24/64 scope link                                                                                  
      valid_lft forever preferred_lft forever                                                                                    
root@test:~# lsusb                                                                                                                
Bus 001 Device 004: ID 0cf3:9271 Qualcomm Atheros Communications AR9271 802.11n                                                    
Bus 001 Device 003: ID 0424:ec00 Microchip Technology, Inc. (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter                    
Bus 001 Device 002: ID 0424:9514 Microchip Technology, Inc. (formerly SMSC) SMC9514 Hub                                            
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub                                                                    
root@test:~#