All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luis R. Rodriguez <lrodriguez@atheros.com>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] ath9k WMP300nv2 (AR5416)
Date: Wed, 28 Jan 2009 11:33:55 -0800	[thread overview]
Message-ID: <20090128193355.GD26656@tesla> (raw)
In-Reply-To: <20090128131722.218060@gmx.net>

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 <m.sujith@gmail.com>
> > An: "Alexander Bartha" <alexander.bartha.office.rusz@gmx.at>
> > 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

  reply	other threads:[~2009-01-28 19:33 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-24 18:49 [ath9k-devel] ath9k WMP300nv2 (AR5416) Alexander Bartha
2009-01-25 17:12 ` Sujith
2009-01-28 13:17   ` Alexander Bartha
2009-01-28 19:33     ` Luis R. Rodriguez [this message]
     [not found]       ` <20090129192832.83600@gmx.net>
2009-01-29 19:46         ` Luis R. Rodriguez
2009-01-30  5:39           ` [ath9k-devel] Problem compiling latest compate wirless Amit Sood
2009-01-30  6:31             ` Luis R. Rodriguez
     [not found]               ` <704147.74610.qm@web95016.mail.in2.yahoo.com>
2009-01-30 16:13                 ` Luis R. Rodriguez
2009-01-31 13:50                   ` Amit Sood
     [not found]           ` <20090130162123.104260@gmx.net>
     [not found]             ` <20090130165946.GE6534@tesla>
     [not found]               ` <20090130224802.194360@gmx.net>
2009-02-02 17:49                 ` [ath9k-devel] ath9k WMP300nv2 (AR5416) Luis R. Rodriguez
     [not found] <20090202234254.GI17941@tesla>
     [not found] ` <20090203172701.137550@gmx.net>
     [not found]   ` <20090203173228.GB9713@tesla>
     [not found]     ` <20090203180007.137530@gmx.net>
     [not found]       ` <20090203182537.GA15591@tesla>
     [not found]         ` <20090203184632.137560@gmx.net>
     [not found]           ` <20090203190955.GB15591@tesla>
     [not found]             ` <20090203201941.242400@gmx.net>
     [not found]               ` <20090203212317.GA25036@tesla>
     [not found]                 ` <20090204194544.158460@gmx.net>
     [not found]                   ` <20090204214334.GF5581@tesla>
2009-02-06 20:22                     ` Alexander Bartha
2009-02-06 21:18                       ` Luis R. Rodriguez
2009-02-14 23:06                         ` Alexander Bartha
2009-02-15  1:18                           ` Luis R. Rodriguez
2009-02-16 20:51                             ` Alexander Bartha
2009-02-16 21:42                               ` Luis R. Rodriguez
2009-02-20 17:44                                 ` Alexander Bartha
2009-02-20 17:46                                 ` Alexander Bartha
2009-02-20 18:28                                   ` Pavel Roskin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090128193355.GD26656@tesla \
    --to=lrodriguez@atheros.com \
    --cc=ath9k-devel@lists.ath9k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.