Zeek20
Posts: 10
Joined: Sat Jun 23, 2012 7:06 pm

USB WIFI weird results

Tue Sep 04, 2012 8:11 pm

So I'm trying to setup my RPi to be a small little router now until I get an actual router. Anyways all was well for a bit, but anytime I try to put a load on the wifi adapter it will just get reset(loses IP address and such, have to do ifup/ifdown n such). It doesn't disconnect fully. However, after enough times of it resetting(no log it happening tho) I see in dmesg that it actually disconnects the wifi adapter from the hub and reconnects(kind of like a hard reset). I have a 2amp psu to it, so I know power shouldn't be an issue, however could this be a driver issue or does the wifi adapter just want to much power?

According to the pi, the chipset is, Atheros AR9271.

Code: Select all

[ 1610.485399] usb 1-1.2: USB disconnect, device number 4
[ 1610.677498] ath: Chip reset failed
[ 1610.677542] ath: Unable to reset hardware; reset status -22 (freq 2432 MHz)
[ 1610.795179] ath: Failed to wakeup in 500us
[ 1610.806552] ath: Failed to wakeup in 500us
[ 1610.978872] usb 1-1.2: ath9k_htc: USB layer deinitialized
[ 1611.218550] usb 1-1.2: new high speed USB device number 5 using dwc_otg
[ 1611.340058] usb 1-1.2: New USB device found, idVendor=0cf3, idProduct=9271
[ 1611.340094] usb 1-1.2: New USB device strings: Mfr=16, Product=32, SerialNumber=48
[ 1611.340113] usb 1-1.2: Product: USB2.0 WLAN
[ 1611.340137] usb 1-1.2: Manufacturer: ATHEROS
[ 1611.340153] usb 1-1.2: SerialNumber: 12345
[ 1611.896212] usb 1-1.2: ath9k_htc: Transferred FW: htc_9271.fw, size: 51272
[ 1612.132344] ath9k_htc 1-1.2:1.0: ath9k_htc: HTC initialized with 33 credits
[ 1612.345211] ath9k_htc 1-1.2:1.0: ath9k_htc: FW Version: 1.3
[ 1612.345239] ath: EEPROM regdomain: 0x809c
[ 1612.345260] ath: EEPROM indicates we should expect a country code
[ 1612.345277] ath: doing EEPROM country->regdmn map search
[ 1612.345292] ath: country maps to regdmn code: 0x52
[ 1612.345306] ath: Country alpha2 being used: CN
[ 1612.345319] ath: Regpair used: 0x52
[ 1612.353439] ieee80211 phy1: Atheros AR9271 Rev:1
[ 1612.355726] Registered led device: ath9k_htc-phy1
[ 1612.355778] usb 1-1.2: ath9k_htc: USB layer initialized
[ 1752.595343] smsc95xx 1-1.1:1.0: eth0: Failed to read register index 0x00000114
[ 2049.175660] usb 1-1.2: USB disconnect, device number 5
[ 2050.155225] ath: Chip reset failed
[ 2050.155269] ath: Unable to reset hardware; reset status -22 (freq 2432 MHz)
[ 2050.272506] ath: Failed to wakeup in 500us
[ 2050.283980] ath: Failed to wakeup in 500us
[ 2050.430088] usb 1-1.2: ath9k_htc: USB layer deinitialized
[ 2050.669530] usb 1-1.2: new high speed USB device number 6 using dwc_otg
[ 2050.791040] usb 1-1.2: New USB device found, idVendor=0cf3, idProduct=9271
[ 2050.791075] usb 1-1.2: New USB device strings: Mfr=16, Product=32, SerialNumber=48
[ 2050.791095] usb 1-1.2: Product: USB2.0 WLAN
[ 2050.791119] usb 1-1.2: Manufacturer: ATHEROS
[ 2050.791135] usb 1-1.2: SerialNumber: 12345
[ 2051.428351] usb 1-1.2: ath9k_htc: Transferred FW: htc_9271.fw, size: 51272
[ 2051.664467] ath9k_htc 1-1.2:1.0: ath9k_htc: HTC initialized with 33 credits
[ 2051.898854] ath9k_htc 1-1.2:1.0: ath9k_htc: FW Version: 1.3
[ 2051.898895] ath: EEPROM regdomain: 0x809c
[ 2051.898908] ath: EEPROM indicates we should expect a country code
[ 2051.898924] ath: doing EEPROM country->regdmn map search
[ 2051.898939] ath: country maps to regdmn code: 0x52
[ 2051.898954] ath: Country alpha2 being used: CN
[ 2051.898966] ath: Regpair used: 0x52
[ 2051.921584] ieee80211 phy2: Atheros AR9271 Rev:1
[ 2051.923442] Registered led device: ath9k_htc-phy2
[ 2051.923476] usb 1-1.2: ath9k_htc: USB layer initialized
edit: dmesg output


Edit2:decided to try something, plugged the wifi adapter in direct and it's "holding up" for now, it hiccuped once, but it's a lot more stable than it was before. It was plugged in via the small cord it came with originally.

bredman
Posts: 1415
Joined: Tue Jan 17, 2012 2:38 pm

Re: USB WIFI weird results

Wed Sep 05, 2012 8:09 am

Are you using a powered USB hub?

WiFi devices need a lot of power when they are transmitting.

Does your RPi have USB polyfuses? These are in the corner of the board next to the USB ports and have "14" written on them.

Zeek20
Posts: 10
Joined: Sat Jun 23, 2012 7:06 pm

Re: USB WIFI weird results

Wed Sep 05, 2012 3:54 pm

bredman wrote:Are you using a powered USB hub?

WiFi devices need a lot of power when they are transmitting.

Does your RPi have USB polyfuses? These are in the corner of the board next to the USB ports and have "14" written on them.
No I'm not, it was plugged in directly to the pi. I have figured tho the USB device is actually defective, I've had problems with it on my Windows computer as well, and the pi actually was working with it almost the same way when I did get it working, it just gave me more details on the problem.

So I am sending it off to get replaced and I will see what I get with the new one.

Return to “Raspberry Pi OS”