From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darko Date: Mon, 26 Jan 2009 18:02:06 +0100 Subject: [ath9k-devel] Country code or else hidden problem Message-ID: <200901261802.07025.darko@veze.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Hi, I have bought an DWA 547 card recently, after first unsuccessful try with TP-link WN861N (same problem as https://lists.ath9k.org/pipermail/ath9k-devel/2008-October/000450.html) As client DWA 547 works ok ( didn't try 802.11n, have no such AP). As AP followed instructions from http://wireless.erley.org/git.html Kernel is 2.6.29-rc2-wl taken from git 24.01.2009 hostapd is 0.6.7 iw is 0.9.9 OS is slackware 12.2 so: #modprobe ath9k debug=0x00000080 #dmesg ... [ 1019.585770] ath9k: 0.1 [ 1019.585872] ath9k 0000:02:0a.0: PCI INT A -> Link[LNKF] -> GSI 11 (level, low) -> IRQ 11 [ 1020.011640] ath9k: Country alpha2 being used: &A [ 1020.018633] wmaster0 (ath9k): not using net_device_ops yet [ 1020.021951] phy1: Selected rate control algorithm 'ath9k_rate_control' [ 1020.023474] wlan0 (ath9k): not using net_device_ops yet [ 1020.028931] cfg80211: Calling CRDA for country: AM [ 1020.030698] Registered led device: ath9k-phy1:radio [ 1020.030754] Registered led device: ath9k-phy1:assoc [ 1020.030802] Registered led device: ath9k-phy1:tx [ 1020.030852] Registered led device: ath9k-phy1:rx [ 1020.030878] phy1: Atheros AR5416 MAC/BB Rev:2 AR2133 RF Rev:81: mem=0xc8900000, irq=11 [ 1020.049744] cfg80211: Current regulatory domain intersected: [ 1020.049756] (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [ 1020.049765] (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm) [ 1020.049773] (5170000 KHz - 5250000 KHz @ 20000 KHz), (N/A, 1700 mBm) [ 1020.049780] (5250000 KHz - 5330000 KHz @ 20000 KHz), (N/A, 1800 mBm) [ 1020.187638] ADDRCONF(NETDEV_UP): wlan0: link is not ready Reported country code is sometimes like here &A, sometimes ?A (c with acute), sometimes ?A (e with acute). hostapd.conf: interface=wlan0 driver=nl80211 ieee80211n=1 ht_capab=[HT40-][SHORT-GI-40][DSSS_CCK-40] hw_mode=g channel=11 #hostapd -dd /etc/hostapd.conf Configuration file: /etc/hostapd.conf Opening raw packet socket for ifindex -1082141532 BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits) Failed to set country code wlan0: Unable to setup interface. and in dmesg get an extra line: [ 1603.342272] mon.wlan0 (ath9k): not using net_device_ops yet #iw --debug reg set US -- Debug: Received Message: -------------------------- BEGIN NETLINK MESSAGE --------------------------- [HEADER] 16 octets .nlmsg_len = 36 .nlmsg_type = 2 .nlmsg_flags = 0 <> .nlmsg_seq = 1232985260 .nlmsg_pid = 1413 [ERRORMSG] 20 octets .error = -11 "Resource temporarily unavailable" [ORIGINAL MESSAGE] 16 octets .nlmsg_len = 16 .nlmsg_type = 17 <0x11> .nlmsg_flags = 5 .nlmsg_seq = 1232985260 .nlmsg_pid = 1413 --------------------------- END NETLINK MESSAGE --------------------------- command failed: Resource temporarily unavailable (-11) Please help, Darko