From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luis R. Rodriguez Date: Wed, 28 Jan 2009 11:33:55 -0800 Subject: [ath9k-devel] ath9k WMP300nv2 (AR5416) In-Reply-To: <20090128131722.218060@gmx.net> References: <20090124184942.256880@gmx.net> <18812.40344.405972.672492@gargle.gargle.HOWL> <20090128131722.218060@gmx.net> Message-ID: <20090128193355.GD26656@tesla> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Wed, Jan 28, 2009 at 05:17:22AM -0800, Alexander Bartha wrote: > > -------- Original-Nachricht -------- > > Datum: Sun, 25 Jan 2009 22:42:56 +0530 > > Von: Sujith > > An: "Alexander Bartha" > > CC: ath9k-devel at lists.ath9k.org > > Betreff: [ath9k-devel] ath9k WMP300nv2 (AR5416) > > > Alexander Bartha wrote: > > > Hello to ath9k developers > > > > > > i am using: > > > > > > Distribution: gentoo > > > Kernel: 2.6.28-r1 > > > Linux-Headers: 2.6.28-r1 > > > Wireless Card: Linksys WMP300n v2 European > > > Router: Linksys WRT160n > > > > The easiest way is to just use compat-wireless. > > See: http://wireless.kernel.org/en/users/Download > > > > Sujith > > -- > > http://sujith-m.blogspot.com > After building my kernel with cfg80211 and mac80211 as modules it was posible to install the compat-wirless drivers. And for the first time the worked! Great to hear! > ifconfig tells me that my bandwith is only 1MBS and Do you mean iwconfig? iwconfig does not tell you MCS (HT or 802.11n rates) and you will see 1 Mbps rate when that is used. To get more accurate MCS rate stats you now have to use iw: http://wireless.kernel.org/en/users/Documentation/iw#Gettingstationstatistics sudo iw dev wlan1 station dump This is still being worked on by mac80211 drivers, so you won't see the last TX rate yet but hopefully soon. > the ip i get from my LinksysWRT160 is renewed every 6Minutes. Later in the evening i make package updates (crda 0.9.5 to 1.0.1) my linksysWMP300nv2 card wont worke. The last message i get was link is not ready. "link not ready" just means that you haven't associated yet. I know -- this is a bit cryptic, but in a way its right, and its certainly correct for ethernet. > /var/log/messages before update: > an 27 15:01:53 ws1 [ 152.020563] cfg80211: Using static regulatory domain info > Jan 27 15:01:53 ws1 [ 152.020568] cfg80211: Regulatory domain: US > Jan 27 15:01:53 ws1 [ 152.020570] (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) > Jan 27 15:01:53 ws1 [ 152.020575] (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm) > Jan 27 15:01:53 ws1 [ 152.020578] (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) > Jan 27 15:01:53 ws1 [ 152.020581] (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) > Jan 27 15:01:53 ws1 [ 152.020585] (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) > Jan 27 15:01:53 ws1 [ 152.020588] (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) > Jan 27 15:01:53 ws1 [ 152.020592] (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm) > Jan 27 15:01:53 ws1 [ 152.020595] cfg80211: Calling CRDA for country: US > Jan 27 15:01:53 ws1 [ 152.040083] ath9k: 0.1 > Jan 27 15:01:53 ws1 [ 152.040164] ath9k 0000:04:00.0: PCI INT A -> GSI 20 (level, low) -> IRQ 20 > Jan 27 15:01:53 ws1 [ 152.102946] cfg80211: Regulatory domain changed to country: US > Jan 27 15:01:53 ws1 [ 152.102951] (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) > Jan 27 15:01:53 ws1 [ 152.102956] (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm) > Jan 27 15:01:53 ws1 [ 152.102959] (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm) > Jan 27 15:01:53 ws1 [ 152.102963] (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) > Jan 27 15:01:53 ws1 [ 152.102966] (5490000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) > Jan 27 15:01:53 ws1 [ 152.102969] (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm) > Jan 27 15:01:54 ws1 [ 152.465925] phy0: Selected rate control algorithm 'ath9k_rate_control' > Jan 27 15:01:54 ws1 [ 152.467143] cfg80211: Calling CRDA for country: AT > Jan 27 15:01:54 ws1 [ 152.467188] Registered led device: ath9k-phy0:radio > Jan 27 15:01:54 ws1 [ 152.467213] Registered led device: ath9k-phy0:assoc > Jan 27 15:01:54 ws1 [ 152.467241] Registered led device: ath9k-phy0:tx > Jan 27 15:01:54 ws1 [ 152.467266] Registered led device: ath9k-phy0:rx > Jan 27 15:01:54 ws1 [ 152.467282] phy0: Atheros AR5416 MAC/BB Rev:2 AR2133 RF Rev:81: mem=0xf9be0000, irq=20 > Jan 27 15:01:54 ws1 [ 152.475534] cfg80211: Regulatory domain changed to country: AT > Jan 27 15:01:54 ws1 [ 152.475539] (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) > Jan 27 15:01:54 ws1 [ 152.475543] (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm) > Jan 27 15:01:54 ws1 [ 152.475547] (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm) > Jan 27 15:01:54 ws1 [ 152.475550] (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm) > Jan 27 15:01:54 ws1 [ 152.475553] (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm) > Jan 27 15:01:55 ws1 [ 153.371753] ADDRCONF(NETDEV_UP): wlan0: link is not ready > Jan 27 15:01:56 ws1 [ 154.337141] wlan0: authenticate with AP f5da96a8 > Jan 27 15:01:56 ws1 [ 154.339093] wlan0: authenticated > Jan 27 15:01:56 ws1 [ 154.339097] wlan0: associate with AP f5da96a8 > Jan 27 15:01:56 ws1 [ 154.344295] wlan0: RX AssocResp from f28f202a (capab=0x411 status=0 aid=1) > Jan 27 15:01:56 ws1 [ 154.344300] wlan0: associated > Jan 27 15:01:56 ws1 [ 154.352968] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready > Jan 27 15:01:56 ws1 wpa_cli: interface wlan0 CONNECTED > Jan 27 15:01:57 ws1 dhcpcd[8802]: wlan0: dhcpcd 4.0.7 starting > Jan 27 15:01:57 ws1 dhcpcd[8802]: wlan0: broadcasting for a lease > Jan 27 15:01:58 ws1 dhcpcd[8802]: wlan0: offered 192.168.1.100 from 192.168.1.1 > Jan 27 15:01:58 ws1 dhcpcd[8802]: wlan0: checking 192.168.1.100 is available on attached networks > Jan 27 15:02:04 ws1 dhcpcd[8802]: wlan0: acknowledged 192.168.1.100 from 192.168.1.1 > Jan 27 15:02:04 ws1 dhcpcd[8802]: wlan0: leased 192.168.1.100 for 86400 seconds > Jan 27 15:02:06 ws1 [ 164.757007] wlan0: no IPv6 routers present Looks good. > /var/log/messages after crda update: > ws1 [ 475.022872] ath9k 0000:04:00.0: PCI INT A disabled > Jan 28 13:11:59 ws1 [ 475.022906] ath9k: Driver unloaded > Jan 28 13:12:34 ws1 rc-scripts: WARNING: net.wlan0 has not yet been started. > Jan 28 13:12:45 ws1 [ 520.974197] cfg80211: Using static regulatory domain info > Jan 28 13:12:45 ws1 [ 520.974202] cfg80211: Regulatory domain: US > Jan 28 13:12:45 ws1 [ 520.974205] (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) > Jan 28 13:12:45 ws1 [ 520.974209] (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm) > Jan 28 13:12:45 ws1 [ 520.974213] (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) > Jan 28 13:12:45 ws1 [ 520.974216] (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) > Jan 28 13:12:45 ws1 [ 520.974219] (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) > Jan 28 13:12:45 ws1 [ 520.974223] (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) > Jan 28 13:12:45 ws1 [ 520.974226] (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm) > Jan 28 13:12:45 ws1 [ 520.974230] cfg80211: Calling CRDA for country: US > Jan 28 13:12:45 ws1 [ 520.992789] ath9k: 0.1 > Jan 28 13:12:45 ws1 [ 520.992829] ath9k 0000:04:00.0: PCI INT A -> GSI 20 (level, low) -> IRQ 20 > Jan 28 13:12:46 ws1 [ 521.420252] phy0: Selected rate control algorithm 'ath9k_rate_control' > Jan 28 13:12:46 ws1 [ 521.421635] cfg80211: Calling CRDA for country: AT > Jan 28 13:12:46 ws1 [ 521.421683] Registered led device: ath9k-phy0:radio > Jan 28 13:12:46 ws1 [ 521.421708] Registered led device: ath9k-phy0:assoc > Jan 28 13:12:46 ws1 [ 521.421732] Registered led device: ath9k-phy0:tx > Jan 28 13:12:46 ws1 [ 521.421756] Registered led device: ath9k-phy0:rx > Jan 28 13:12:46 ws1 [ 521.421773] phy0: Atheros AR5416 MAC/BB Rev:2 AR2133 RF Rev:81: mem=0xf9520000, irq=20 > Jan 28 13:12:47 ws1 [ 522.336623] ADDRCONF(NETDEV_UP): wlan0: link is not ready > > Is the only way to use the old crda??? Nope, what is happening here is the kernel is not getting the regulatory domain. Please show me the log of you compiling and installing CRDA (make clean; make; sudo make install). Then, as per CRDA debugging page [1] you can debug commmunication between the kernel and crda by running: sudo udevadm monitor --environment kernel But I want you to do this by first doing this: sudo rmmod ath9k mac80211 cfg80211 sudo dmesg -c > /dev/null Then on one terminal have open 'sudo udevadm monitor --environment kernel' and in another run: sudo modprobe cfg80211 sudo dmesg -c > log Send me that log, and also the output from the terminal with the udevadm running. [1] http://wireless.kernel.org/en/developers/Regulatory/CRDA#DebuggingkerneltoCRDAcommunication Luis