From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mihai Moldovan Date: Tue, 31 May 2011 21:36:57 +0200 Subject: [ath9k-devel] AR9380 + hostapd + HT over 802.11a In-Reply-To: <4DE535A1.7030108@ionic.de> References: <4DE52724.2040300@ionic.de> <4DE52E1E.90903@candelatech.com> <4DE5338C.507@ionic.de> <4DE5345F.3060709@candelatech.com> <4DE535A1.7030108@ionic.de> Message-ID: <4DE54359.6060309@ionic.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org * On 31.05.2011 08:38 PM, Mihai Moldovan wrote: > Rebuilding the Kernel soon... well as soon as I revert the regd.c patch. :) Hmm, new patch, but also some bad news: all 5Ghz channels are AP-locked when using German regdomain, most of them even disabled. iw list: Frequencies: * 5180 MHz [36] (18.0 dBm) (passive scanning, no IBSS) * 5200 MHz [40] (18.0 dBm) (passive scanning, no IBSS) * 5220 MHz [44] (18.0 dBm) (passive scanning, no IBSS) * 5240 MHz [48] (18.0 dBm) (passive scanning, no IBSS) * 5260 MHz [52] (disabled) * 5280 MHz [56] (disabled) * 5300 MHz [60] (disabled) * 5320 MHz [64] (disabled) * 5500 MHz [100] (disabled) * 5520 MHz [104] (disabled) * 5540 MHz [108] (disabled) * 5560 MHz [112] (disabled) * 5580 MHz [116] (disabled) * 5600 MHz [120] (disabled) * 5620 MHz [124] (disabled) * 5640 MHz [128] (disabled) * 5660 MHz [132] (disabled) * 5680 MHz [136] (disabled) * 5700 MHz [140] (disabled) * 5745 MHz [149] (18.0 dBm) (passive scanning, no IBSS) * 5765 MHz [153] (18.0 dBm) (passive scanning, no IBSS) * 5785 MHz [157] (18.0 dBm) (passive scanning, no IBSS) * 5805 MHz [161] (18.0 dBm) (passive scanning, no IBSS) * 5825 MHz [165] (18.0 dBm) (passive scanning, no IBSS) That's weird, as we do have 802.11n up to 300MBit/s routers here, so I can't believe it's locked due to legal regulations. My university is running some of those WLAN APs, for instance. Adapted patch against 2.6.38.6: diff -uhr linux-2.6.38.6-orig/drivers/net/wireless/ath/ath9k/init.c linux-2.6.38.6/drivers/net/wireless/ath/ath9k/init.c --- linux-2.6.38.6-orig/drivers/net/wireless/ath/ath9k/init.c 2011-05-10 00:16:23.000000000 +0200 +++ linux-2.6.38.6/drivers/net/wireless/ath/ath9k/init.c 2011-05-31 21:01:51.253906201 +0200 @@ -33,6 +33,11 @@ module_param_named(nohwcrypt, ath9k_modparam_nohwcrypt, int, 0444); MODULE_PARM_DESC(nohwcrypt, "Disable hardware encryption"); +static int modparam_override_eeprom_regdomain = -1; +module_param_named(override_eeprom_regdomain, + modparam_override_eeprom_regdomain, int, S_IRUGO); +MODULE_PARM_DESC(override_eeprom_regdomain, "Override regdomain hardcoded in EEPROM with this value (DANGEROUS)."); + int led_blink; module_param_named(blink, led_blink, int, 0444); MODULE_PARM_DESC(blink, "Enable LED blink on activity"); @@ -635,6 +640,7 @@ void ath9k_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw) { struct ath_common *common = ath9k_hw_common(sc->sc_ah); + struct ath_regulatory *regulatory = ath9k_hw_regulatory(sc->sc_ah); hw->flags = IEEE80211_HW_RX_INCLUDES_FCS | IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING | @@ -688,6 +694,14 @@ setup_ht_cap(sc, &sc->sbands[IEEE80211_BAND_5GHZ].ht_cap); } + if (modparam_override_eeprom_regdomain != -1) { + printk(KERN_ERR "ath9k: DANGER! You're overriding EEPROM-defined regulatory domain.\n"); + printk(KERN_ERR "ath9k: Your card was not certified to operate on the domain you choosed.\n"); + printk(KERN_ERR "ath9k: This might result in a violation of your local regulatory rules.\n"); + printk(KERN_ERR "ath9k: Do not ever do that unless you really know what you do!\n"); + regulatory->current_rd = modparam_override_eeprom_regdomain; + } + SET_IEEE80211_PERM_ADDR(hw, common->macaddr); } I guess -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 6111 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20110531/5d530e26/attachment-0001.bin