qca / open-ath9k-htc-firmware

The firmware for QCA AR7010/AR9271 802.11n USB NICs
Other
429 stars 182 forks source link

ath: phy82: Failed to wakeup in 500us #72

Open yipperr opened 9 years ago

yipperr commented 9 years ago

hello i am using a alpha awus036nha in ubuntu with 3.18 kernel causes a lot of disconnects where the whole driver reloads itself and the usb layer is deinitialized

here is the dmesg

[134330.226799] ath: phy82: Failed to wakeup in 500us [134330.337247] ath: phy82: Failed to wakeup in 500us [134330.553857] cfg80211: Calling CRDA to update world regulatory domain [134330.557245] cfg80211: World regulatory domain updated: [134330.557249] cfg80211: DFS Master region: unset [134330.557250] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time) [134330.557252] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A) [134330.557254] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A) [134330.557255] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm), (N/A) [134330.557256] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A) [134330.557257] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A) [134330.621383] usb 1-1: ath9k_htc: USB layer deinitialized [134330.861057] usb 1-1: new high-speed USB device number 87 using xhci_hcd [134331.008352] usb 1-1: New USB device found, idVendor=0cf3, idProduct=9271 [134331.008363] usb 1-1: New USB device strings: Mfr=16, Product=32, SerialNumber=48 [134331.008369] usb 1-1: Product: UB91C [134331.008373] usb 1-1: Manufacturer: ATHEROS [134331.008377] usb 1-1: SerialNumber: 12345 [134331.010014] usb 1-1: ath9k_htc: Firmware htc_9271.fw requested [134331.472999] usb 1-1: ath9k_htc: Transferred FW: htc_9271.fw, size: 51272 [134331.708841] ath9k_htc 1-1:1.0: ath9k_htc: HTC initialized with 33 credits [134331.938832] ath9k_htc 1-1:1.0: ath9k_htc: FW Version: 1.3 [134331.938843] ath: EEPROM regdomain: 0x833a [134331.938846] ath: EEPROM indicates we should expect a country code [134331.938851] ath: doing EEPROM country->regdmn map search [134331.938855] ath: country maps to regdmn code: 0x37 [134331.938859] ath: Country alpha2 being used: GB [134331.938861] ath: Regpair used: 0x37 [134331.943193] ieee80211 phy83: Atheros AR9271 Rev:1 [134331.943229] cfg80211: Calling CRDA for country: GB

added notes tried on usb 2.0 and 3.0 ports its not the usb layer but the driver itself just so to rule out hardware the alpha nha works solid in windows while connecting to wifis

Apteryks commented 8 months ago

I just opened my tpe-n150usb adapter from ThinkPenguin; it was a bit difficult to open: I used a small flat screwdriver to push the black plastic pin on the metal sleeve then pried around to push back the black plastic casing.

Here are some shots of the board; I trust the bigger '13 NCJI C3101075X01' identified chip is the AR9271, and I also identified an STMicroelectronics 24C08RP EEPROM (8/16KB) and a BDC 9706A DC/DC voltage converter (https://www.diodes.com/assets/Datasheets/products_inactive_data/AUR9706.pdf).

IMAG0083 IMAG0080 IMAG0081

Perhaps I should probe with a DMM around the converter to verify the voltages are expected.

psyborg55 commented 8 months ago

yes, try on those two big flat SMDs. before that, have you tried connecting the device through a 1m extension cable, or you plug it in directly into PC ? try cable if you have one around just to see if anything other happens in log

Apteryks commented 8 months ago

Hm, I've tried connecting it, but it's difficult while its case is disassembled: I shimmed it into the USB port using some thin polystyrene foam sheet. It appears completely dead (dmesg is silent), whether I connect it directly (the usual case) or via a 1 m USB extension cord. I hope I haven't made it worse :-).

I'm lacking lab instruments here to do the measurements, unless I can somehow use my computer as both a function generator and an oscilloscope to use one of the tricks explained here: https://www.wikihow.com/Measure-Inductance (I think I've done so in the past for the scope part, using xoscope). audmes looks like another option for the oscilloscope part.

Apteryks commented 7 months ago

@psyborg55 I'm not well equipped/motivated enough to fix mine. If you are interested, I could ship this to you free of charge; otherwise it'll soon find its way to the dust bin.