Country code or else hidden problem
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 <ERROR>
.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 <REQUEST,ACK>
.nlmsg_seq = 1232985260
.nlmsg_pid = 1413--------------------------- END NETLINK MESSAGE ---------------------------
command failed: Resource temporarily unavailable (-11)
Please help,
Darko
Quoted 12 lines · Darko
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
Quoted 2 lines
so:
#modprobe ath9k debug=0x00000080
Thanks for trying with this.
Quoted 6 lines
#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
This is fixed by the patch attached.
From: Luis R. Rodriguez <[email protected]>
Date: Mon, 26 Jan 2009 06:41:48 -0800
Subject: [PATCH] ath9k: fix debug print on regd
With debugging enabled and with ATH_DBG_REGULATORY selected we wouldn't get the full print out of one line, reason is we used "," instead of nothing to separate two lines.
--- drivers/net/wireless/ath9k/regd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/ath9k/regd.c +1 -1
@@ -447,7 +447,7 @@ int ath9k_regd_init(struct ath_hal *ah) }DPRINTF (ah->ah_sc,ATH_DBG_REGULATORY , -"Country alpha2 being used: %c%c\n" , +"Country alpha2 being used: %c%c\n" "Regpair detected: 0x%0x\n" , ah->alpha2[0 ], ah->alpha2[1 ], ah->regpair->regDmnEnum);
Signature · 1 line
1.5.6.4