2011/11/27 Paweł Sikora <pawel.sikora@xxxxxxxx>: > Hi, > > i have an asus laptop with following atheros wireless adapter: > > 03:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01) > Subsystem: AzureWave AW-NB037H 802.11bgn Wireless Half-size Mini PCIe Card [AR9002WB-1NGCD] > Flags: bus master, fast devsel, latency 0, IRQ 17 > Memory at ddc00000 (64-bit, non-prefetchable) [size=64K] > Capabilities: [40] Power Management version 3 > Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit- > Capabilities: [60] Express Legacy Endpoint, MSI 00 > Capabilities: [100] Advanced Error Reporting > Capabilities: [140] Virtual Channel > Capabilities: [160] Device Serial Number 00-15-17-ff-ff-24-14-12 > Capabilities: [170] Power Budgeting <?> > Kernel driver in use: ath9k > Kernel modules: ath9k > > during latop startup the "wireless" led is turned off, kernel with udev load ath9k module > > [ 9.070238] ath9k 0000:03:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 > [ 9.070257] ath9k 0000:03:00.0: setting latency timer to 64 > [ 9.081908] snd_hda_intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22 > [ 9.082056] snd_hda_intel 0000:00:1b.0: irq 42 for MSI/MSI-X > [ 9.082241] snd_hda_intel 0000:00:1b.0: setting latency timer to 64 > [ 9.083643] input: Asus WMI hotkeys as /devices/platform/asus-nb-wmi/input/input6 > [ 9.119760] ath: EEPROM regdomain: 0x60 > [ 9.119764] ath: EEPROM indicates we should expect a direct regpair map > [ 9.119768] ath: Country alpha2 being used: 00 > [ 9.119771] ath: Regpair used: 0x60 > [ 9.131566] usb 2-1: new high speed USB device number 2 using ehci_hcd > [ 9.238212] asus_wmi: Backlight controlled by ACPI video driver > [ 9.239078] ieee80211 phy0: Selected rate control algorithm 'ath9k_rate_control' > [ 9.241745] Registered led device: ath9k-phy0 > [ 9.241756] ieee80211 phy0: Atheros AR9285 Rev:2 mem=0xffffc90001860000, irq=17 > > but the wpa_supplicant daemon finally can't establish link with accesspoint (reports rf-kill? error). > manual wireless enabling (Fn key + F2 key) fixes wpa_supplicant problems. > it looks like the ath9k module doesn't enable some hardware parts on system startup / laptop resume. > i've tested this issue with 3.1.2 and 3.2.0-rc3 git kernel sources. i will just try to recreate this issue, once i get access to Asus laptop. there is no issues with external PCI extender + AR9285. also please let us know if its AR9285 is working properly in some previous builds. also follow up with Peter Stuge's comments. apart from what Peter had mentioned the only other thing i can think of is rfkill polarity for you card may be '1'(while default is '0'). you can get this info with the attached debug patch. > > BR, > Paweł. > -- > To unsubscribe from this list: send the line "unsubscribe linux-wireless" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- shafi
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 662ab7e..816e90a 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c @@ -2212,12 +2212,14 @@ int ath9k_hw_fill_cap_info(struct ath_hw *ah) } #if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE) + printk("\nrfsilent = %u", ah->rfsilent); ah->rfsilent = ah->eep_ops->get_eeprom(ah, EEP_RF_SILENT); if (ah->rfsilent & EEP_RFSILENT_ENABLED) { ah->rfkill_gpio = MS(ah->rfsilent, EEP_RFSILENT_GPIO_SEL); ah->rfkill_polarity = MS(ah->rfsilent, EEP_RFSILENT_POLARITY); + printk("\nrfkill_polarity = %u", ah->rfkill_polarity); pCap->hw_caps |= ATH9K_HW_CAP_RFSILENT; }