Ming Lei | 1 Mar 2010 16:13
Picon

Re: [PATCH] ath9k: decrease size of ath9k.ko


From e74b075cdb143d45be9b371ee8a8e2dcfc15ab34 Mon Sep 17 00:00:00 2001
From: Ming Lei <tom.leiming <at> gmail.com>
Date: Sat, 27 Feb 2010 23:50:54 +0800
Subject: [PATCH] ath9k: decrease size of ath9k.ko

The patch defines the fields of 'valid_single_stream' and 'valid' in
struct ath_rate_table as char type, so decrease the size of ath9k.ko
about 2KB.

old ath9k.ko
[tom <at> tom-lei ath9k]$ size ath9k.ko
   text    data     bss     dec     hex filename
  69344    3080     168   72592   11b90 ath9k.ko

new ath9k.ko
[tom <at> tom-lei ath9k]$ size ath9k.ko
   text    data     bss     dec     hex filename
  67304    3080     168   70552   11398 ath9k.ko

Signed-off-by: Larry Finger <Larry.Finger <at> lwfinger.net>
Signed-off-by: Ming Lei <tom.leiming <at> gmail.com>
---

This version takes Larry's suggestion to define 'valid_single_stream'
and 'valid' as u8 instead of char.

---
 drivers/net/wireless/ath/ath9k/rc.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
(Continue reading)

Brian Walker | 2 Mar 2010 01:48
Favicon

Re: trouble with DWA-552 and ath9k

On 02/26/2010 06:35 PM, Pavel Roskin wrote:
> On Thu, 2010-02-25 at 20:10 -0500, Brian Walker wrote:
>
>    
>> You do indeed appear to have the exact same DWA-552 as me. Is it
>> possible that the problem is with the way my older PIII AX63Pro
>> motherboard is interacting with the card? The only difference I see is
>> the latency on mine is 32 and not 168. Unfortunately, I believe it has
>> been too long (and I no longer have the box) to return this card.
>>      
> It can easily be the latency.  You can see the BIOS settings.  Some
> motherboards allow changing the PCI latency.  Try increasing it.
>
> I tried decreasing the PCI latency using setpci, but it didn't appear to
> work.
>
>    
>> What version of compat-wireless are you using and with what kernel and
>> on what distro?
>>      
> I'm using Fedora 11 with a kernel from the wireless-testing repository
> (currently identifying itself as "2.6.33-wl").
>
>    
Any chance you could try testing with a stock kernel and one of the 
compat-wireless snapshots from 
http://wireless.kernel.org/download/compat-wireless-2.6/? Also, are we 
to just assume that at this point I have a hardware problem and it 
couldn't be ath9k?

(Continue reading)

Brian Walker | 2 Mar 2010 01:55
Favicon

Re: trouble with DWA-552 and ath9k

On 02/26/2010 06:35 PM, Pavel Roskin wrote:
> On Thu, 2010-02-25 at 20:10 -0500, Brian Walker wrote:
>
>    
>> You do indeed appear to have the exact same DWA-552 as me. Is it
>> possible that the problem is with the way my older PIII AX63Pro
>> motherboard is interacting with the card? The only difference I see is
>> the latency on mine is 32 and not 168. Unfortunately, I believe it has
>> been too long (and I no longer have the box) to return this card.
>>      
> It can easily be the latency.  You can see the BIOS settings.  Some
> motherboards allow changing the PCI latency.  Try increasing it.
>
> I tried decreasing the PCI latency using setpci, but it didn't appear to
> work.
>
>    
>> What version of compat-wireless are you using and with what kernel and
>> on what distro?
>>      
> I'm using Fedora 11 with a kernel from the wireless-testing repository
> (currently identifying itself as "2.6.33-wl").
>
>    
Just used setpci -v -d *:* latency_timer=b0 to set the latency of all 
devices to 176, did a modprobe ath9k and an ifconfig wlan0 up. System 
didn't crash, but still getting:

ath: Failed to stop TX DMA in 100 msec after killing last frame
ath: Unable to stop TxDMA. Reset HAL!
(Continue reading)

yingqiang Ma | 2 Mar 2010 11:20
Picon

Re: hostapd-0.7-1 failed work with ath9k

Did you enable the nl80211 driver support when you compile the hostapd.

2010/2/24 Pavel Roskin <proski <at> gnu.org>
On Wed, 2010-02-24 at 14:09 +0800, Zhang Yanfei-B21500 wrote:
> Hi All
>
>       I used the hostapd-0.7.1 and ath9k driver to setup a AP.
...
> > -----Original Message-----

Please don't hijack existing threads to discuss new topics.

--
Regards,
Pavel Roskin
_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
hongjianli.nudt | 2 Mar 2010 16:56
Picon

Ubnt rs pro ar9220 ath9k driver

Hi list,
I'm using the UBNT RS pro with ar9220 interface. Is there anyone to run it in 802.11n mode? or give me some hints, Thank you!
 
2010-03-02
_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Andrew Watts | 2 Mar 2010 21:00
Picon

ath9k: injecting frames at a rate other than 1Mbps

Hi,

I am trying to inject frames at a specific rate (54 Mbps, 36 Mbps etc) but everything seems to come out at 1Mbps.  I patched the driver with the code found in this thread here, but frames are still transmitted at 1Mbps over the air.  I have looked at the radiotap header for the frame I am injecting and everything seems fine to me.  I am seeing the same issue with the packetspammer app too.  Does anyone have a patch for this or know where I should be looking?  I have been playing with ath_buf_set rate in xmit.c and have not had any success.

Ubuntu 9.10 - 2.6.31-19-generic-pae
Compat-wireless driver from 11-30-2009 (should I upgrade to the latest?)

Thanks in advance.

Andrew

_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
rootkit85 | 2 Mar 2010 22:25
Picon
Favicon
Gravatar

Re: ath9k: injecting frames at a rate other than 1Mbps

On Tue, Mar 2, 2010 at 9:00 PM, Andrew Watts <systemstalker <at> gmail.com> wrote:
> Hi,
>
> I am trying to inject frames at a specific rate (54 Mbps, 36 Mbps etc) but
> everything seems to come out at 1Mbps.  I patched the driver with the code
> found in this thread here, but frames are still transmitted at 1Mbps over
> the air.  I have looked at the radiotap header for the frame I am injecting
> and everything seems fine to me.  I am seeing the same issue with the
> packetspammer app too.  Does anyone have a patch for this or know where I
> should be looking?  I have been playing with ath_buf_set rate in xmit.c and
> have not had any success.
>
> Ubuntu 9.10 - 2.6.31-19-generic-pae
> Compat-wireless driver from 11-30-2009 (should I upgrade to the latest?)
>
> Thanks in advance.
>
> Andrew
>
>
> _______________________________________________
> ath9k-devel mailing list
> ath9k-devel <at> lists.ath9k.org
> https://lists.ath9k.org/mailman/listinfo/ath9k-devel
>
>

Do you inject from userspace or kernelspace?
How do you know that they are sent at 1 Mbit? Do you sniff from another pc?
My patch was tested only with kernelspace injection, feedback is welcome.

--

-- 
Matteo Croce
OpenWrt developer
  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (bleeding edge) ------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Zhang Yanfei-B21500 | 3 Mar 2010 03:01
Favicon

Re: hostapd-0.7-1 failed work with ath9k

Sure i enabled the nl80211 driver for it.
 
Best Regards,
Yanfei Zhang
 

From: yingqiang Ma [mailto:yma.cool <at> gmail.com]
Sent: Tuesday, March 02, 2010 6:21 PM
To: Pavel Roskin; Zhang Yanfei-B21500; ath9k-devel <at> venema.h4ckr.net
Subject: Re: [ath9k-devel] hostapd-0.7-1 failed work with ath9k

Did you enable the nl80211 driver support when you compile the hostapd.

2010/2/24 Pavel Roskin <proski <at> gnu.org>
On Wed, 2010-02-24 at 14:09 +0800, Zhang Yanfei-B21500 wrote:
> Hi All
>
>       I used the hostapd-0.7.1 and ath9k driver to setup a AP.
...
> > -----Original Message-----

Please don't hijack existing threads to discuss new topics.

--
Regards,
Pavel Roskin
_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Pavel Roskin | 3 Mar 2010 04:45
Picon

Re: ath9k: injecting frames at a rate other than 1Mbps

On Tue, 2010-03-02 at 22:25 +0100, rootkit85 <at> yahoo.it wrote:

> Do you inject from userspace or kernelspace?
> How do you know that they are sent at 1 Mbit? Do you sniff from another pc?
> My patch was tested only with kernelspace injection, feedback is welcome.

I think that part is wrong:

+					if (sband->bitrates[i].bitrate <=
+						*iterator.this_arg * 5) {
+						info->control.rates[0].idx = i;
+						break;
+					}

If a bitrate is less than the requested one, it would still match.

I think we should require an exact match.  Requests to use an
unsupported rate should result in dropping the packet.  That applies to
rate 0 as well, unless there is a special interpretation in the
standard.  I don't see any: http://www.radiotap.net/defined-fields/Rate

I tried the part of you patch that handles IEEE80211_RADIOTAP_RATE, but
it still would not work.  It turns out the rate control would override
the rate.  I don't see an easy way to prevent it short of introducing
another flag.

I've made an alternative patch and I'll submit it to linux-wireless
shortly.  It actually works for userspace injection.

--

-- 
Regards,
Pavel Roskin
Pavel Roskin | 3 Mar 2010 05:01
Picon

Re: Ubnt rs pro ar9220 ath9k driver

On Tue, 2010-03-02 at 23:56 +0800, hongjianli.nudt <at> gmail.com wrote:
> Hi list,
> I'm using the UBNT RS pro with ar9220 interface. Is there anyone to
> run it in 802.11n mode? or give me some hints, Thank you!

I tested Ubiquti SR71-12 in 802.11n mode with no problems.  It's also
AR9220 based.

It's better that you describe the problem rather than look for somebody
who has exactly the same hardware and knows what you are talking about.

--

-- 
Regards,
Pavel Roskin

Gmane