All of lore.kernel.org
 help / color / mirror / Atom feed
* [ath9k-devel] ath9k: set 5/10 MHz supported channels
@ 2013-11-08  7:02 Kamran Nishat
  2013-11-08 10:05 ` Simon Wunderlich
                   ` (2 more replies)
  0 siblings, 3 replies; 28+ messages in thread
From: Kamran Nishat @ 2013-11-08  7:02 UTC (permalink / raw)
  To: ath9k-devel

Hi,
I want to set 5 and 10 MHz channels. My AP has *Atheros* AR9160 and my
nodes have AR5416. Are they supported for my cards. Can I go to higher MCS
like 12-13 on  a 5MHz channel?

Regards,
Kamran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20131108/83a344ec/attachment.htm 

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-08  7:02 [ath9k-devel] ath9k: set 5/10 MHz supported channels Kamran Nishat
@ 2013-11-08 10:05 ` Simon Wunderlich
  2013-11-08 10:46 ` Sergey Ryazanov
  2013-11-08 15:07 ` Adrian Chadd
  2 siblings, 0 replies; 28+ messages in thread
From: Simon Wunderlich @ 2013-11-08 10:05 UTC (permalink / raw)
  To: ath9k-devel

Kamran,

> Hi,
> I want to set 5 and 10 MHz channels. My AP has *Atheros* AR9160 and my
> nodes have AR5416. Are they supported for my cards. Can I go to higher MCS
> like 12-13 on  a 5MHz channel?

I'm not completely sure about AR5416, but AR9160 should support 5/10 MHz 
channels. However mac80211 does not support HT-rates on 5/10 MHz channels, 
although the hardware supports it. The standard does not specify HT rates in 
narrow channels. 

If you want that, you might need to use hacks in ath9k while mac80211 thinks 
it is operating on 20 MHz (this would be non-standard behaviour, of course). I 
don't know about specific MCS rates though.

Cheers,
    Simon

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-08  7:02 [ath9k-devel] ath9k: set 5/10 MHz supported channels Kamran Nishat
  2013-11-08 10:05 ` Simon Wunderlich
@ 2013-11-08 10:46 ` Sergey Ryazanov
  2013-11-12 11:58   ` Kamran Nishat
  2013-11-08 15:07 ` Adrian Chadd
  2 siblings, 1 reply; 28+ messages in thread
From: Sergey Ryazanov @ 2013-11-08 10:46 UTC (permalink / raw)
  To: ath9k-devel

Hi,

2013/11/8 Kamran Nishat <kamran.nishat@gmail.com>:
> Hi,
> I want to set 5 and 10 MHz channels. My AP has Atheros AR9160 and my nodes
> have AR5416. Are they supported for my cards. Can I go to higher MCS like
> 12-13 on  a 5MHz channel?
>
Current mainstream kernel don't support HT MCS at all on 5MHz & 10MHz
channels. You could try to use OpenWRT firmware, which is based on old
wireless-next tree snapshot and support all MCS.

-- 
BR,
Sergey

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-08  7:02 [ath9k-devel] ath9k: set 5/10 MHz supported channels Kamran Nishat
  2013-11-08 10:05 ` Simon Wunderlich
  2013-11-08 10:46 ` Sergey Ryazanov
@ 2013-11-08 15:07 ` Adrian Chadd
  2013-11-11  8:11   ` Alex Hacker
  2 siblings, 1 reply; 28+ messages in thread
From: Adrian Chadd @ 2013-11-08 15:07 UTC (permalink / raw)
  To: ath9k-devel

Hi,

I've not tested 11n rates on these, but it should work. Check
FreeBSD's HAL, the code for putting both of these into half/quarter
rate is in the HAL. I've tested it in 11a mode.


-a

On 7 November 2013 23:02, Kamran Nishat <kamran.nishat@gmail.com> wrote:
>
>
>
> Hi,
> I want to set 5 and 10 MHz channels. My AP has Atheros AR9160 and my nodes
> have AR5416. Are they supported for my cards. Can I go to higher MCS like
> 12-13 on  a 5MHz channel?
>
> Regards,
> Kamran
>

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-08 15:07 ` Adrian Chadd
@ 2013-11-11  8:11   ` Alex Hacker
  2013-11-11  8:57     ` Adrian Chadd
  0 siblings, 1 reply; 28+ messages in thread
From: Alex Hacker @ 2013-11-11  8:11 UTC (permalink / raw)
  To: ath9k-devel

Hello,
I can sign up on this. Yes, all HT rates works in 5/10 MHz bandwidth. More than
that, it actually works in virtually any bandwidth with only different symbol
times (longer or shorter than 4us).
Lapsus linguae: I still can't get it working on AR93xx series chips.
Best wishes,
Alex.

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-11  8:11   ` Alex Hacker
@ 2013-11-11  8:57     ` Adrian Chadd
  2013-11-11  9:16       ` Alex Hacker
  0 siblings, 1 reply; 28+ messages in thread
From: Adrian Chadd @ 2013-11-11  8:57 UTC (permalink / raw)
  To: ath9k-devel

The non-enterprise AR933x hardware has half/quarter rates disabled in
hardware. Sorry!


-a

On 11 November 2013 00:11, Alex Hacker <hacker@epn.ru> wrote:
> Hello,
> I can sign up on this. Yes, all HT rates works in 5/10 MHz bandwidth. More than
> that, it actually works in virtually any bandwidth with only different symbol
> times (longer or shorter than 4us).
> Lapsus linguae: I still can't get it working on AR93xx series chips.
> Best wishes,
> Alex.
>

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-11  8:57     ` Adrian Chadd
@ 2013-11-11  9:16       ` Alex Hacker
  2013-11-11 13:15         ` Kamran Nishat
  0 siblings, 1 reply; 28+ messages in thread
From: Alex Hacker @ 2013-11-11  9:16 UTC (permalink / raw)
  To: ath9k-devel

Thank you Adrian. Yes I know, but I can not get it working with AR9390
(enterprise) chip too. :(
Alex.

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-11  9:16       ` Alex Hacker
@ 2013-11-11 13:15         ` Kamran Nishat
  2013-11-11 14:47           ` sotouki
  0 siblings, 1 reply; 28+ messages in thread
From: Kamran Nishat @ 2013-11-11 13:15 UTC (permalink / raw)
  To: ath9k-devel

Dear Alex,
Can you send me updates in driver to make it support 5/10Mhz channel both
at client and AP ath9k. Also how can i set my channel to 5/10Mhz in
settings.
Kamran


On Mon, Nov 11, 2013 at 2:16 PM, Alex Hacker <hacker@epn.ru> wrote:

> Thank you Adrian. Yes I know, but I can not get it working with AR9390
> (enterprise) chip too. :(
> Alex.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20131111/d9787ee4/attachment.htm 

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-11 13:15         ` Kamran Nishat
@ 2013-11-11 14:47           ` sotouki
  2013-11-12  6:49             ` Alex Hacker
  2013-11-12 16:34             ` Simon Wunderlich
  0 siblings, 2 replies; 28+ messages in thread
From: sotouki @ 2013-11-11 14:47 UTC (permalink / raw)
  To: ath9k-devel

???? 11/11/2013 3:15 PM, ?/? Kamran Nishat ??????:
> Dear Alex,
> Can you send me updates in driver to make it support 5/10Mhz channel 
> both at client and AP ath9k. Also how can i set my channel to 5/10Mhz 
> in settings.
> Kamran
>
>
> On Mon, Nov 11, 2013 at 2:16 PM, Alex Hacker <hacker@epn.ru 
> <mailto:hacker@epn.ru>> wrote:
>
>     Thank you Adrian. Yes I know, but I can not get it working with AR9390
>     (enterprise) chip too. :(
>     Alex.
>
>
>
>
> _______________________________________________
> ath9k-devel mailing list
> ath9k-devel at lists.ath9k.org
> https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Dear all,

I am also trying to reduce channel width to 5/10 MHZ. So far I managed 
to see the code inside the ath9k driver. More particulary in hw.c and 
ar9003_phy.c the functions "IS_CHAN_QUARTER_RATE" and 
"IS_CHAN_HALF_RATE" exist. These functions take values from the hw.h 
file, #define IS_CHAN_HALF_RATE(c) (((_c)->channelFlags & 
CHANNEL_QUARTER)   !=0 . From what I understand, this function changes 
the clockrate value which in turn affects the PLL value. In a paper 
reported that these values are responsible for channel width.

The question is how can I enable these half/quarter rate functions. For 
example when you want to set the channel width to 40MHZ, you simply 
type: iw dev "XXX" set channel "X" HT40+ . Also is this possible for 
AR9380 chipset and if so, is this possible via driver configuration?  Is 
there anyone of you who achieved this?

Best Regards

Tomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20131111/18777e70/attachment.htm 

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-11 14:47           ` sotouki
@ 2013-11-12  6:49             ` Alex Hacker
  2013-11-12 16:34             ` Simon Wunderlich
  1 sibling, 0 replies; 28+ messages in thread
From: Alex Hacker @ 2013-11-12  6:49 UTC (permalink / raw)
  To: ath9k-devel


Hello,
I'm not ath9k developer, obviously I work with Atheros and QCA chips in non
open source conditions, so I havn't a code to publish. What I can do for you it
is a several hints about HW.
Yes, you are in the right way, 5/10 MHz bandwidth controlled by AR_PHY_MODE
register and changes the PLL frequency. In the code I see what almost all
required work is already done. You should dig yourself into the higher layers
of code to understand how to do it at the user level.
At the end I should say that these bandwidths is not conform to IEEE802.11 and
ETSI/FCC policies so it actually illegal.
Alex.

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-08 10:46 ` Sergey Ryazanov
@ 2013-11-12 11:58   ` Kamran Nishat
  2013-11-12 13:02     ` Sergey Ryazanov
  0 siblings, 1 reply; 28+ messages in thread
From: Kamran Nishat @ 2013-11-12 11:58 UTC (permalink / raw)
  To: ath9k-devel

how can we set our APs into 5/10Mhz channel? If I do it using a debugfs
entry in ath9k how can I communicate it to mac80211? can I ath9k and HW
channel width without telling mac80211 and above layers?
Please give us some hints at least


On Fri, Nov 8, 2013 at 3:46 PM, Sergey Ryazanov <ryazanov.s.a@gmail.com>wrote:

> Hi,
>
> 2013/11/8 Kamran Nishat <kamran.nishat@gmail.com>:
> > Hi,
> > I want to set 5 and 10 MHz channels. My AP has Atheros AR9160 and my
> nodes
> > have AR5416. Are they supported for my cards. Can I go to higher MCS like
> > 12-13 on  a 5MHz channel?
> >
> Current mainstream kernel don't support HT MCS at all on 5MHz & 10MHz
> channels. You could try to use OpenWRT firmware, which is based on old
> wireless-next tree snapshot and support all MCS.
>
> --
> BR,
> Sergey
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20131112/33d7709f/attachment.htm 

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-12 11:58   ` Kamran Nishat
@ 2013-11-12 13:02     ` Sergey Ryazanov
  0 siblings, 0 replies; 28+ messages in thread
From: Sergey Ryazanov @ 2013-11-12 13:02 UTC (permalink / raw)
  To: ath9k-devel

Hi,

2013/11/12 Kamran Nishat <kamran.nishat@gmail.com>:
> how can we set our APs into 5/10Mhz channel? If I do it using a debugfs
> entry in ath9k how can I communicate it to mac80211? can I ath9k and HW
> channel width without telling mac80211 and above layers?
> Please give us some hints at least
>
>
first of all, it should be noted, that there are two, khm, versions of
5/10 channels control: Simon's and OpenWRT. ath9k themself has 5/10
channels support for a long time.

Simon's patches had been merged to the wireless-next tree in the
middle of august 2013. This patches add ability to handle 5/10MHz
channels to mac80211/cfg80211/nl80211. But there are no support for
these options in user level utilities (I mean iw utility [1]). I am
not familar with this realization, by it seems that you should write
5/10 MHz handlers for iw by yourself.

OpenWRT developers act more simply: they add new entry to the debugfs,
named "chanbw" [2]. When you write to this file, ath9k driver
reconfigure WNIC chip to work with appropriate channel width, but
mac80211 and cfg80211 still think that they are work with 20MHz
channel.

So, you have two ways: update your wireless subsystem, write few
handlers for iw and you can control channel bandwidth in most common
manner or you could use OpenWRT with it's hackish realization.

1. http://wireless.kernel.org/en/users/Documentation/iw
2. https://dev.openwrt.org/browser/trunk/package/kernel/mac80211/patches/512-ath9k_channelbw_debugfs.patch?rev=38354


> On Fri, Nov 8, 2013 at 3:46 PM, Sergey Ryazanov <ryazanov.s.a@gmail.com>
> wrote:
>>
>> Hi,
>>
>> 2013/11/8 Kamran Nishat <kamran.nishat@gmail.com>:
>> > Hi,
>> > I want to set 5 and 10 MHz channels. My AP has Atheros AR9160 and my
>> > nodes
>> > have AR5416. Are they supported for my cards. Can I go to higher MCS
>> > like
>> > 12-13 on  a 5MHz channel?
>> >
>> Current mainstream kernel don't support HT MCS at all on 5MHz & 10MHz
>> channels. You could try to use OpenWRT firmware, which is based on old
>> wireless-next tree snapshot and support all MCS.
>>
>> --
>> BR,
>> Sergey
>
>

-- 
BR,
Sergey

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-11 14:47           ` sotouki
  2013-11-12  6:49             ` Alex Hacker
@ 2013-11-12 16:34             ` Simon Wunderlich
  2013-11-18 10:42               ` sotouki
  1 sibling, 1 reply; 28+ messages in thread
From: Simon Wunderlich @ 2013-11-12 16:34 UTC (permalink / raw)
  To: ath9k-devel

> ???? 11/11/2013 3:15 PM, ?/? Kamran Nishat ??????:
> > Dear Alex,
> > Can you send me updates in driver to make it support 5/10Mhz channel
> > both at client and AP ath9k. Also how can i set my channel to 5/10Mhz
> > in settings.
> > Kamran
> > 
> > 
> > On Mon, Nov 11, 2013 at 2:16 PM, Alex Hacker <hacker@epn.ru
> > 
> > <mailto:hacker@epn.ru>> wrote:
> >     Thank you Adrian. Yes I know, but I can not get it working with
> >     AR9390 (enterprise) chip too. :(
> >     Alex.
> > 
> > _______________________________________________
> > ath9k-devel mailing list
> > ath9k-devel at lists.ath9k.org
> > https://lists.ath9k.org/mailman/listinfo/ath9k-devel
> 
> Dear all,
> 
> I am also trying to reduce channel width to 5/10 MHZ. So far I managed
> to see the code inside the ath9k driver. More particulary in hw.c and
> ar9003_phy.c the functions "IS_CHAN_QUARTER_RATE" and
> "IS_CHAN_HALF_RATE" exist. These functions take values from the hw.h
> file, #define IS_CHAN_HALF_RATE(c) (((_c)->channelFlags &
> CHANNEL_QUARTER)   !=0 . From what I understand, this function changes
> the clockrate value which in turn affects the PLL value. In a paper
> reported that these values are responsible for channel width.
> 
> The question is how can I enable these half/quarter rate functions. For
> example when you want to set the channel width to 40MHZ, you simply
> type: iw dev "XXX" set channel "X" HT40+ . Also is this possible for
> AR9380 chipset and if so, is this possible via driver configuration?  Is
> there anyone of you who achieved this?

Tomas,

I've worked on this feature, it is working in IBSS mode, for AP mode we are 
still lacking hostap support. Therefore I've never tried client mode as well.

I still had a patch for iw on my disk which enables 5/10 MHz for the "iw join 
ibss" command, which I forgot to send. I've cleaned it up and sent it to 
linux-wireless[1], so you can have a look.

Cheers,
    Simon

[1] http://permalink.gmane.org/gmane.linux.kernel.wireless.general/115597

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-12 16:34             ` Simon Wunderlich
@ 2013-11-18 10:42               ` sotouki
  2013-11-18 11:07                 ` Simon Wunderlich
  0 siblings, 1 reply; 28+ messages in thread
From: sotouki @ 2013-11-18 10:42 UTC (permalink / raw)
  To: ath9k-devel

???? 11/12/2013 6:34 PM, ?/? Simon Wunderlich ??????:
>> ???? 11/11/2013 3:15 PM, ?/? Kamran Nishat ??????:
>>> Dear Alex,
>>> Can you send me updates in driver to make it support 5/10Mhz channel
>>> both at client and AP ath9k. Also how can i set my channel to 5/10Mhz
>>> in settings.
>>> Kamran
>>>
>>>
>>> On Mon, Nov 11, 2013 at 2:16 PM, Alex Hacker <hacker@epn.ru
>>>
>>> <mailto:hacker@epn.ru>> wrote:
>>>      Thank you Adrian. Yes I know, but I can not get it working with
>>>      AR9390 (enterprise) chip too. :(
>>>      Alex.
>>>
>>> _______________________________________________
>>> ath9k-devel mailing list
>>> ath9k-devel at lists.ath9k.org
>>> https://lists.ath9k.org/mailman/listinfo/ath9k-devel
>> Dear all,
>>
>> I am also trying to reduce channel width to 5/10 MHZ. So far I managed
>> to see the code inside the ath9k driver. More particulary in hw.c and
>> ar9003_phy.c the functions "IS_CHAN_QUARTER_RATE" and
>> "IS_CHAN_HALF_RATE" exist. These functions take values from the hw.h
>> file, #define IS_CHAN_HALF_RATE(c) (((_c)->channelFlags &
>> CHANNEL_QUARTER)   !=0 . From what I understand, this function changes
>> the clockrate value which in turn affects the PLL value. In a paper
>> reported that these values are responsible for channel width.
>>
>> The question is how can I enable these half/quarter rate functions. For
>> example when you want to set the channel width to 40MHZ, you simply
>> type: iw dev "XXX" set channel "X" HT40+ . Also is this possible for
>> AR9380 chipset and if so, is this possible via driver configuration?  Is
>> there anyone of you who achieved this?
> Tomas,
>
> I've worked on this feature, it is working in IBSS mode, for AP mode we are
> still lacking hostap support. Therefore I've never tried client mode as well.
>
> I still had a patch for iw on my disk which enables 5/10 MHz for the "iw join
> ibss" command, which I forgot to send. I've cleaned it up and sent it to
> linux-wireless[1], so you can have a look.
>
> Cheers,
>      Simon
>
> [1] http://permalink.gmane.org/gmane.linux.kernel.wireless.general/115597
> _______________________________________________
> ath9k-devel mailing list
> ath9k-devel at lists.ath9k.org
> https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Dear Simon,

thanks a lot for your immediate response. I looked at the patch you gave 
us. Can you tell us in what driver is this pacth applicable?
I have tried mine but a lot of source code was missing.

Thank you in advance

Tomas

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-18 10:42               ` sotouki
@ 2013-11-18 11:07                 ` Simon Wunderlich
  2013-11-18 19:39                   ` Kamran Nishat
  0 siblings, 1 reply; 28+ messages in thread
From: Simon Wunderlich @ 2013-11-18 11:07 UTC (permalink / raw)
  To: ath9k-devel

Hey Tomas,
> > I still had a patch for iw on my disk which enables 5/10 MHz for the "iw
> > join ibss" command, which I forgot to send. I've cleaned it up and sent
> > it to linux-wireless[1], so you can have a look.
> > 
> > Cheers,
> > 
> >      Simon
> > 
> > [1] http://permalink.gmane.org/gmane.linux.kernel.wireless.general/115597
> > _______________________________________________
> > ath9k-devel mailing list
> > ath9k-devel at lists.ath9k.org
> > https://lists.ath9k.org/mailman/listinfo/ath9k-devel
> 
> Dear Simon,
> 
> thanks a lot for your immediate response. I looked at the patch you gave
> us. Can you tell us in what driver is this pacth applicable?
> I have tried mine but a lot of source code was missing.
> 
> Thank you in advance
> 
> Tomas

the patch is for the iw tool, Johannes has already merged it, so just check 
out the latest trunk of iw[1]. It should work on recent kernels (3.12 or 
mac80211-next) with ath5k and ath9k, but there was a reporting problem[2] 
which forced us to disable the support for now. If you revert the disabling 
patch [3] manually and understand that this may lead to an incompatible kernel 
you may still use it though, or use later kernels (or mac80211-next).

Cheers,
   Simon

[1] git clone http://git.kernel.org/?p=linux/kernel/git/jberg/iw.git
[2] http://permalink.gmane.org/gmane.linux.kernel.wireless.general/115842
[3] http://permalink.gmane.org/gmane.linux.kernel.wireless.general/115841

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-18 11:07                 ` Simon Wunderlich
@ 2013-11-18 19:39                   ` Kamran Nishat
  2013-11-19 15:16                     ` Simon Wunderlich
  0 siblings, 1 reply; 28+ messages in thread
From: Kamran Nishat @ 2013-11-18 19:39 UTC (permalink / raw)
  To: ath9k-devel

Can I change the center of my 5/10MMHz channel so I can accommodated more
than one channels in official 802.11 20Mhz channel? If not then is it for
HW reason or b/c of driver?


On Mon, Nov 18, 2013 at 4:07 PM, Simon Wunderlich <sw@simonwunderlich.de>wrote:

> Hey Tomas,
> > > I still had a patch for iw on my disk which enables 5/10 MHz for the
> "iw
> > > join ibss" command, which I forgot to send. I've cleaned it up and sent
> > > it to linux-wireless[1], so you can have a look.
> > >
> > > Cheers,
> > >
> > >      Simon
> > >
> > > [1]
> http://permalink.gmane.org/gmane.linux.kernel.wireless.general/115597
> > > _______________________________________________
> > > ath9k-devel mailing list
> > > ath9k-devel at lists.ath9k.org
> > > https://lists.ath9k.org/mailman/listinfo/ath9k-devel
> >
> > Dear Simon,
> >
> > thanks a lot for your immediate response. I looked at the patch you gave
> > us. Can you tell us in what driver is this pacth applicable?
> > I have tried mine but a lot of source code was missing.
> >
> > Thank you in advance
> >
> > Tomas
>
> the patch is for the iw tool, Johannes has already merged it, so just check
> out the latest trunk of iw[1]. It should work on recent kernels (3.12 or
> mac80211-next) with ath5k and ath9k, but there was a reporting problem[2]
> which forced us to disable the support for now. If you revert the disabling
> patch [3] manually and understand that this may lead to an incompatible
> kernel
> you may still use it though, or use later kernels (or mac80211-next).
>
> Cheers,
>    Simon
>
> [1] git clone http://git.kernel.org/?p=linux/kernel/git/jberg/iw.git
> [2] http://permalink.gmane.org/gmane.linux.kernel.wireless.general/115842
> [3] http://permalink.gmane.org/gmane.linux.kernel.wireless.general/115841
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20131119/82ecf60c/attachment.htm 

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-18 19:39                   ` Kamran Nishat
@ 2013-11-19 15:16                     ` Simon Wunderlich
  2013-11-19 20:07                       ` Adrian Chadd
                                         ` (2 more replies)
  0 siblings, 3 replies; 28+ messages in thread
From: Simon Wunderlich @ 2013-11-19 15:16 UTC (permalink / raw)
  To: ath9k-devel

Hey Kamran,

for 2.4 GHz that's certainly possible, as those are 5 MHz spaced anyway.

For 5 GHz I don't know if it's possible. For example in ath9k, you could try 
to hack ath9k_5ghz_chantable, add more channels in 5 mhz spaces and try if it 
works. The driver says here:

/* Some 5 GHz radios are actually tunable on XXXX-YYYY
 * on 5 MHz steps, we support the channels which we know
 * we have calibration data for all cards though to make
 * this static */

I don't know if it works, please give it a try and report back. :)
   Simon

> Can I change the center of my 5/10MMHz channel so I can accommodated more
> than one channels in official 802.11 20Mhz channel? If not then is it for
> HW reason or b/c of driver?
> 
> On Mon, Nov 18, 2013 at 4:07 PM, Simon Wunderlich 
<sw@simonwunderlich.de>wrote:
> > Hey Tomas,
> > 
> > > > I still had a patch for iw on my disk which enables 5/10 MHz for the
> > 
> > "iw
> > 
> > > > join ibss" command, which I forgot to send. I've cleaned it up and
> > > > sent it to linux-wireless[1], so you can have a look.
> > > > 
> > > > Cheers,
> > > > 
> > > >      Simon
> > > > 
> > > > [1]
> > 
> > http://permalink.gmane.org/gmane.linux.kernel.wireless.general/115597
> > 
> > > > _______________________________________________
> > > > ath9k-devel mailing list
> > > > ath9k-devel at lists.ath9k.org
> > > > https://lists.ath9k.org/mailman/listinfo/ath9k-devel
> > > 
> > > Dear Simon,
> > > 
> > > thanks a lot for your immediate response. I looked at the patch you
> > > gave us. Can you tell us in what driver is this pacth applicable?
> > > I have tried mine but a lot of source code was missing.
> > > 
> > > Thank you in advance
> > > 
> > > Tomas
> > 
> > the patch is for the iw tool, Johannes has already merged it, so just
> > check out the latest trunk of iw[1]. It should work on recent kernels
> > (3.12 or mac80211-next) with ath5k and ath9k, but there was a reporting
> > problem[2] which forced us to disable the support for now. If you revert
> > the disabling patch [3] manually and understand that this may lead to an
> > incompatible kernel
> > you may still use it though, or use later kernels (or mac80211-next).
> > 
> > Cheers,
> > 
> >    Simon
> > 
> > [1] git clone http://git.kernel.org/?p=linux/kernel/git/jberg/iw.git
> > [2] http://permalink.gmane.org/gmane.linux.kernel.wireless.general/115842
> > [3] http://permalink.gmane.org/gmane.linux.kernel.wireless.general/115841
---
Mit freundlichen Gr??en / kind regards
Simon Wunderlich

Fon: +49 (0) 3741 / 2518068-0
Fax: +49 (0) 3741 / 2518068-9

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-19 15:16                     ` Simon Wunderlich
@ 2013-11-19 20:07                       ` Adrian Chadd
  2013-11-20 14:50                         ` Holger Schurig
  2013-11-19 20:12                       ` Johannes Berg
  2013-11-21 22:44                       ` Kamran Nishat
  2 siblings, 1 reply; 28+ messages in thread
From: Adrian Chadd @ 2013-11-19 20:07 UTC (permalink / raw)
  To: ath9k-devel

Hi,

The thing to keep in mind with arbitrary frequency tuning is that the
calibration runs done on the cards tend to only test centre channel
frequencies, and not the individual frequencies in between nor the
outliers (2.3ghz/5.9ghz, etc).

So the boards themselves may end up with spurs and other nasty
behaviour when you run them on frequencies that weren't calibrated
for.

(Yeah, it is about time an open source ART was written...)



-adrian


On 19 November 2013 07:16, Simon Wunderlich <sw@simonwunderlich.de> wrote:
> Hey Kamran,
>
> for 2.4 GHz that's certainly possible, as those are 5 MHz spaced anyway.
>
> For 5 GHz I don't know if it's possible. For example in ath9k, you could try
> to hack ath9k_5ghz_chantable, add more channels in 5 mhz spaces and try if it
> works. The driver says here:
>
> /* Some 5 GHz radios are actually tunable on XXXX-YYYY
>  * on 5 MHz steps, we support the channels which we know
>  * we have calibration data for all cards though to make
>  * this static */
>
> I don't know if it works, please give it a try and report back. :)
>    Simon
>
>> Can I change the center of my 5/10MMHz channel so I can accommodated more
>> than one channels in official 802.11 20Mhz channel? If not then is it for
>> HW reason or b/c of driver?
>>
>> On Mon, Nov 18, 2013 at 4:07 PM, Simon Wunderlich
> <sw@simonwunderlich.de>wrote:
>> > Hey Tomas,
>> >
>> > > > I still had a patch for iw on my disk which enables 5/10 MHz for the
>> >
>> > "iw
>> >
>> > > > join ibss" command, which I forgot to send. I've cleaned it up and
>> > > > sent it to linux-wireless[1], so you can have a look.
>> > > >
>> > > > Cheers,
>> > > >
>> > > >      Simon
>> > > >
>> > > > [1]
>> >
>> > http://permalink.gmane.org/gmane.linux.kernel.wireless.general/115597
>> >
>> > > > _______________________________________________
>> > > > ath9k-devel mailing list
>> > > > ath9k-devel at lists.ath9k.org
>> > > > https://lists.ath9k.org/mailman/listinfo/ath9k-devel
>> > >
>> > > Dear Simon,
>> > >
>> > > thanks a lot for your immediate response. I looked at the patch you
>> > > gave us. Can you tell us in what driver is this pacth applicable?
>> > > I have tried mine but a lot of source code was missing.
>> > >
>> > > Thank you in advance
>> > >
>> > > Tomas
>> >
>> > the patch is for the iw tool, Johannes has already merged it, so just
>> > check out the latest trunk of iw[1]. It should work on recent kernels
>> > (3.12 or mac80211-next) with ath5k and ath9k, but there was a reporting
>> > problem[2] which forced us to disable the support for now. If you revert
>> > the disabling patch [3] manually and understand that this may lead to an
>> > incompatible kernel
>> > you may still use it though, or use later kernels (or mac80211-next).
>> >
>> > Cheers,
>> >
>> >    Simon
>> >
>> > [1] git clone http://git.kernel.org/?p=linux/kernel/git/jberg/iw.git
>> > [2] http://permalink.gmane.org/gmane.linux.kernel.wireless.general/115842
>> > [3] http://permalink.gmane.org/gmane.linux.kernel.wireless.general/115841
> ---
> Mit freundlichen Gr??en / kind regards
> Simon Wunderlich
>
> Fon: +49 (0) 3741 / 2518068-0
> Fax: +49 (0) 3741 / 2518068-9

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-19 15:16                     ` Simon Wunderlich
  2013-11-19 20:07                       ` Adrian Chadd
@ 2013-11-19 20:12                       ` Johannes Berg
  2013-11-21 22:44                       ` Kamran Nishat
  2 siblings, 0 replies; 28+ messages in thread
From: Johannes Berg @ 2013-11-19 20:12 UTC (permalink / raw)
  To: ath9k-devel

On Tue, 2013-11-19 at 16:16 +0100, Simon Wunderlich wrote:

> For 5 GHz I don't know if it's possible. For example in ath9k, you could try 
> to hack ath9k_5ghz_chantable, add more channels in 5 mhz spaces and try if it 
> works. The driver says here:

Not sure how I ended up on this thread, but now that I am ...

There was also a major issue with advertising all possible channels - it
used to overrun the wiphy information early on. So the additional
channels should probably only be advertised conditionally on the 'large
data' flag in nl80211 somehow. And they'd have to be marked "5 MHz only"
and "only 5/10 MHz" as well, I guess.

johannes

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-19 20:07                       ` Adrian Chadd
@ 2013-11-20 14:50                         ` Holger Schurig
  0 siblings, 0 replies; 28+ messages in thread
From: Holger Schurig @ 2013-11-20 14:50 UTC (permalink / raw)
  To: ath9k-devel

> (Yeah, it is about time an open source ART was written...)

Hi Adrian, what is ART ?

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-19 15:16                     ` Simon Wunderlich
  2013-11-19 20:07                       ` Adrian Chadd
  2013-11-19 20:12                       ` Johannes Berg
@ 2013-11-21 22:44                       ` Kamran Nishat
  2013-11-21 23:27                         ` Adrian Chadd
  2013-11-22 10:30                         ` Simon Wunderlich
  2 siblings, 2 replies; 28+ messages in thread
From: Kamran Nishat @ 2013-11-21 22:44 UTC (permalink / raw)
  To: ath9k-devel

I have an AP with  AR9160 tunning openWRT. When I set chennel to 10MHz from
debugfs entry. I can still connect it with other boards running OpenWrt.
But from computers running latest linux kernel it was visible in scan when
I was using AR5416 but I was not able to connect to my AP.
Then I changed NIC to Atheros AR9227 based card not I can even see openwrt
AP with 10MHz channel.

Please help me what should I do
Kamran


On Tue, Nov 19, 2013 at 8:16 PM, Simon Wunderlich <sw@simonwunderlich.de>wrote:

> Hey Kamran,
>
> for 2.4 GHz that's certainly possible, as those are 5 MHz spaced anyway.
>
> For 5 GHz I don't know if it's possible. For example in ath9k, you could
> try
> to hack ath9k_5ghz_chantable, add more channels in 5 mhz spaces and try if
> it
> works. The driver says here:
>
> /* Some 5 GHz radios are actually tunable on XXXX-YYYY
>  * on 5 MHz steps, we support the channels which we know
>  * we have calibration data for all cards though to make
>  * this static */
>
> I don't know if it works, please give it a try and report back. :)
>    Simon
>
> > Can I change the center of my 5/10MMHz channel so I can accommodated more
> > than one channels in official 802.11 20Mhz channel? If not then is it for
> > HW reason or b/c of driver?
> >
> > On Mon, Nov 18, 2013 at 4:07 PM, Simon Wunderlich
> <sw@simonwunderlich.de>wrote:
> > > Hey Tomas,
> > >
> > > > > I still had a patch for iw on my disk which enables 5/10 MHz for
> the
> > >
> > > "iw
> > >
> > > > > join ibss" command, which I forgot to send. I've cleaned it up and
> > > > > sent it to linux-wireless[1], so you can have a look.
> > > > >
> > > > > Cheers,
> > > > >
> > > > >      Simon
> > > > >
> > > > > [1]
> > >
> > > http://permalink.gmane.org/gmane.linux.kernel.wireless.general/115597
> > >
> > > > > _______________________________________________
> > > > > ath9k-devel mailing list
> > > > > ath9k-devel at lists.ath9k.org
> > > > > https://lists.ath9k.org/mailman/listinfo/ath9k-devel
> > > >
> > > > Dear Simon,
> > > >
> > > > thanks a lot for your immediate response. I looked at the patch you
> > > > gave us. Can you tell us in what driver is this pacth applicable?
> > > > I have tried mine but a lot of source code was missing.
> > > >
> > > > Thank you in advance
> > > >
> > > > Tomas
> > >
> > > the patch is for the iw tool, Johannes has already merged it, so just
> > > check out the latest trunk of iw[1]. It should work on recent kernels
> > > (3.12 or mac80211-next) with ath5k and ath9k, but there was a reporting
> > > problem[2] which forced us to disable the support for now. If you
> revert
> > > the disabling patch [3] manually and understand that this may lead to
> an
> > > incompatible kernel
> > > you may still use it though, or use later kernels (or mac80211-next).
> > >
> > > Cheers,
> > >
> > >    Simon
> > >
> > > [1] git clone http://git.kernel.org/?p=linux/kernel/git/jberg/iw.git
> > > [2]
> http://permalink.gmane.org/gmane.linux.kernel.wireless.general/115842
> > > [3]
> http://permalink.gmane.org/gmane.linux.kernel.wireless.general/115841
> ---
> Mit freundlichen Gr??en / kind regards
> Simon Wunderlich
>
> Fon: +49 (0) 3741 / 2518068-0
> Fax: +49 (0) 3741 / 2518068-9
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20131122/4d2e5fd7/attachment.htm 

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-21 22:44                       ` Kamran Nishat
@ 2013-11-21 23:27                         ` Adrian Chadd
  2013-11-21 23:29                           ` Adrian Chadd
  2013-11-22 10:30                         ` Simon Wunderlich
  1 sibling, 1 reply; 28+ messages in thread
From: Adrian Chadd @ 2013-11-21 23:27 UTC (permalink / raw)
  To: ath9k-devel

Aha! I've seen this!

The short version: the RF synth pre-AR9220/AR9280 have a different
resolution at 5GHz. At 2GHz they can tune to 1MHz offsets, but in 5GHz
they can only tune down to 2.5MHz spacing. Since the 5MHz channels are
on xxx2 and xxx7, they can't be exactly represented by the 2.5MHz
spaced channels. Thus, they're generally out by 500KHz.

The long version:

* the initial RF chips (AR5110, AR5111, AR5112) only supported certain
frequencies on 5GHz. I forget the details. I have them here if anyone
cares.
* The later RF chips in the pre-11n series have an option to do
fractional tuning (ie, 1MHz offset and finer grain) but it's disabled
by default - the HAL (and thus ath5k) uses the "legacy" mode for 5GHz
operation.
* The AR541x and AR91xx RF frontends (AR2133/AR5133, AR9103/AR9106)
are programmed using the legacy 5GHz spacing method. I don't know if
they _have_ the logic to do fractional 5GHz frequency tuning.
* The AR9220/AR9280 and later chips use a completely redesigned RF
synthesizer and can tune to fractional channels.

So, that's why. If you hooked up your AR5416/AR9160 to a spectrum
analyser and looked at the centre frequency of your 5MHz spaced
channels, you'll see the centre is off by 500KHz.

And yes, I taught the FreeBSD AR9220/AR9280 RF synth code an option to
tune to the "old" channel spacing or the new channel spacing.



-adrian

(Spectrum Analysers are cool. I really want a 0-6GHz one. If anyone is
willing to let one go..)


On 21 November 2013 14:44, Kamran Nishat <kamran.nishat@gmail.com> wrote:
> I have an AP with  AR9160 tunning openWRT. When I set chennel to 10MHz from
> debugfs entry. I can still connect it with other boards running OpenWrt. But
> from computers running latest linux kernel it was visible in scan when I was
> using AR5416 but I was not able to connect to my AP.
> Then I changed NIC to Atheros AR9227 based card not I can even see openwrt
> AP with 10MHz channel.
>
> Please help me what should I do
> Kamran
>
>
> On Tue, Nov 19, 2013 at 8:16 PM, Simon Wunderlich <sw@simonwunderlich.de>
> wrote:
>>
>> Hey Kamran,
>>
>> for 2.4 GHz that's certainly possible, as those are 5 MHz spaced anyway.
>>
>> For 5 GHz I don't know if it's possible. For example in ath9k, you could
>> try
>> to hack ath9k_5ghz_chantable, add more channels in 5 mhz spaces and try if
>> it
>> works. The driver says here:
>>
>> /* Some 5 GHz radios are actually tunable on XXXX-YYYY
>>  * on 5 MHz steps, we support the channels which we know
>>  * we have calibration data for all cards though to make
>>  * this static */
>>
>> I don't know if it works, please give it a try and report back. :)
>>    Simon
>>
>> > Can I change the center of my 5/10MMHz channel so I can accommodated
>> > more
>> > than one channels in official 802.11 20Mhz channel? If not then is it
>> > for
>> > HW reason or b/c of driver?
>> >
>> > On Mon, Nov 18, 2013 at 4:07 PM, Simon Wunderlich
>> <sw@simonwunderlich.de>wrote:
>> > > Hey Tomas,
>> > >
>> > > > > I still had a patch for iw on my disk which enables 5/10 MHz for
>> > > > > the
>> > >
>> > > "iw
>> > >
>> > > > > join ibss" command, which I forgot to send. I've cleaned it up and
>> > > > > sent it to linux-wireless[1], so you can have a look.
>> > > > >
>> > > > > Cheers,
>> > > > >
>> > > > >      Simon
>> > > > >
>> > > > > [1]
>> > >
>> > > http://permalink.gmane.org/gmane.linux.kernel.wireless.general/115597
>> > >
>> > > > > _______________________________________________
>> > > > > ath9k-devel mailing list
>> > > > > ath9k-devel at lists.ath9k.org
>> > > > > https://lists.ath9k.org/mailman/listinfo/ath9k-devel
>> > > >
>> > > > Dear Simon,
>> > > >
>> > > > thanks a lot for your immediate response. I looked at the patch you
>> > > > gave us. Can you tell us in what driver is this pacth applicable?
>> > > > I have tried mine but a lot of source code was missing.
>> > > >
>> > > > Thank you in advance
>> > > >
>> > > > Tomas
>> > >
>> > > the patch is for the iw tool, Johannes has already merged it, so just
>> > > check out the latest trunk of iw[1]. It should work on recent kernels
>> > > (3.12 or mac80211-next) with ath5k and ath9k, but there was a
>> > > reporting
>> > > problem[2] which forced us to disable the support for now. If you
>> > > revert
>> > > the disabling patch [3] manually and understand that this may lead to
>> > > an
>> > > incompatible kernel
>> > > you may still use it though, or use later kernels (or mac80211-next).
>> > >
>> > > Cheers,
>> > >
>> > >    Simon
>> > >
>> > > [1] git clone http://git.kernel.org/?p=linux/kernel/git/jberg/iw.git
>> > > [2]
>> > > http://permalink.gmane.org/gmane.linux.kernel.wireless.general/115842
>> > > [3]
>> > > http://permalink.gmane.org/gmane.linux.kernel.wireless.general/115841
>> ---
>> Mit freundlichen Gr??en / kind regards
>> Simon Wunderlich
>>
>> Fon: +49 (0) 3741 / 2518068-0
>> Fax: +49 (0) 3741 / 2518068-9
>
>

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-21 23:27                         ` Adrian Chadd
@ 2013-11-21 23:29                           ` Adrian Chadd
  2013-11-22  3:29                             ` Kamran Nishat
  0 siblings, 1 reply; 28+ messages in thread
From: Adrian Chadd @ 2013-11-21 23:29 UTC (permalink / raw)
  To: ath9k-devel

(also, as a side note, I bumped into one of my posts from around late
2010 era, when I was asking dumb questions about this stuff. Holy crap
I have acquired a lot of weird knowledge about this stuff since then.)

Thanks to the QCA team for helping me figure this particular hilarious
behaviour out. It turns out that it's been like this since forever,
and it even popped up in recent product discussions just before I
left. I don't think that's ever going away.



-a

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-21 23:29                           ` Adrian Chadd
@ 2013-11-22  3:29                             ` Kamran Nishat
  2013-11-22  3:33                               ` Adrian Chadd
  0 siblings, 1 reply; 28+ messages in thread
From: Kamran Nishat @ 2013-11-22  3:29 UTC (permalink / raw)
  To: ath9k-devel

Thanks Adrian for your reply. But there are certain things I am still not
to understand. First I am have set my AR9160 based AP to channel 11 which
is in 2.4G range not in 5GHz range.
Second my AR5416 card can see it but but was not able to connect. Why? Are
they with different 500KHz offset? Why is it happening when I
change channel width to half? Is there any driver change which can make it
right?

finally do you mean to say I can't connect to an AP  with 5/10MHz channel
if one have  AR541x or AR91xx RF and other have  later chips?

regards,
Kamran


On Fri, Nov 22, 2013 at 4:29 AM, Adrian Chadd <adrian.chadd@gmail.com>wrote:

> (also, as a side note, I bumped into one of my posts from around late
> 2010 era, when I was asking dumb questions about this stuff. Holy crap
> I have acquired a lot of weird knowledge about this stuff since then.)
>
> Thanks to the QCA team for helping me figure this particular hilarious
> behaviour out. It turns out that it's been like this since forever,
> and it even popped up in recent product discussions just before I
> left. I don't think that's ever going away.
>
>
>
> -a
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20131122/5815ffd7/attachment.htm 

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-22  3:29                             ` Kamran Nishat
@ 2013-11-22  3:33                               ` Adrian Chadd
  0 siblings, 0 replies; 28+ messages in thread
From: Adrian Chadd @ 2013-11-22  3:33 UTC (permalink / raw)
  To: ath9k-devel

Hi,

grab a spectrum analyser and ensure that the centre frequencies are
absolutely correct on both sides.

You'll see CCK frames for adjacent channels/frequencies but you won't
be able to associate.



-adrian


On 21 November 2013 19:29, Kamran Nishat <kamran.nishat@gmail.com> wrote:
> Thanks Adrian for your reply. But there are certain things I am still not to
> understand. First I am have set my AR9160 based AP to channel 11 which is in
> 2.4G range not in 5GHz range.
> Second my AR5416 card can see it but but was not able to connect. Why? Are
> they with different 500KHz offset? Why is it happening when I change channel
> width to half? Is there any driver change which can make it right?
>
> finally do you mean to say I can't connect to an AP  with 5/10MHz channel if
> one have  AR541x or AR91xx RF and other have  later chips?
>
> regards,
> Kamran
>
>
> On Fri, Nov 22, 2013 at 4:29 AM, Adrian Chadd <adrian.chadd@gmail.com>
> wrote:
>>
>> (also, as a side note, I bumped into one of my posts from around late
>> 2010 era, when I was asking dumb questions about this stuff. Holy crap
>> I have acquired a lot of weird knowledge about this stuff since then.)
>>
>> Thanks to the QCA team for helping me figure this particular hilarious
>> behaviour out. It turns out that it's been like this since forever,
>> and it even popped up in recent product discussions just before I
>> left. I don't think that's ever going away.
>>
>>
>>
>> -a
>
>

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] ath9k: set 5/10 MHz supported channels
  2013-11-21 22:44                       ` Kamran Nishat
  2013-11-21 23:27                         ` Adrian Chadd
@ 2013-11-22 10:30                         ` Simon Wunderlich
       [not found]                           ` <CADxDmp4UnGdSpPXt5B6_GAfkmOcFAx7+36Bv2ymgpWzZHvnRZA@mail.gmail.com>
  1 sibling, 1 reply; 28+ messages in thread
From: Simon Wunderlich @ 2013-11-22 10:30 UTC (permalink / raw)
  To: ath9k-devel

Kamran,

> I have an AP with  AR9160 tunning openWRT. When I set chennel to 10MHz from
> debugfs entry. I can still connect it with other boards running OpenWrt.
> But from computers running latest linux kernel it was visible in scan when
> I was using AR5416 but I was not able to connect to my AP.
> Then I changed NIC to Atheros AR9227 based card not I can even see openwrt
> AP with 10MHz channel.

Please note that the OpenWRT and the mainline Linux implementation of 5/10 MHz 
are different. In Linux we have a limited but (hopefully) standard-conforming 
implementation, that means that also bitrates are interpreted for their 
respective frequencies. For example on mainline LInux in 5 MHz mode you have 
OFDM bitrates of 1.5, 2.25, 3, 4.5 Mbit/s etc what would be 6, 9, 12, 18 
Mbit/s on 20 MHz. OpenWRT will just announce the 20 MHz bitrates even on 5 MHz 
(it's more of a hack). This will likely confuse the Linux clients. There might 
also be other knobs not complete, as I said I've only tested the IBSS mode.

For the record I tested AR9220 and AR5213 in 5 and 10 MHz mode and after some 
timing corrections (patches have been merged upstream) this worked quite well.

I'd recommend to use only the same implementation together.

Cheers,
    Simon

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] Fwd:  ath9k: set 5/10 MHz supported channels
       [not found]                           ` <CADxDmp4UnGdSpPXt5B6_GAfkmOcFAx7+36Bv2ymgpWzZHvnRZA@mail.gmail.com>
@ 2013-11-23 14:18                             ` Kamran Nishat
  2013-12-13 11:24                               ` sotouki
  0 siblings, 1 reply; 28+ messages in thread
From: Kamran Nishat @ 2013-11-23 14:18 UTC (permalink / raw)
  To: ath9k-devel

---------- Forwarded message ----------
From: Kamran Nishat <kamran.nishat@gmail.com>
Date: Sat, Nov 23, 2013 at 12:00 PM
Subject: Re: [ath9k-devel] ath9k: set 5/10 MHz supported channels
To: Simon Wunderlich <sw@simonwunderlich.de>


Simon
Can we merge openwrt source and iwreless-next tree? what will happen if we
do this?
Best

Kamran


On Fri, Nov 22, 2013 at 3:30 PM, Simon Wunderlich <sw@simonwunderlich.de>wrote:

> Kamran,
>
> > I have an AP with  AR9160 tunning openWRT. When I set chennel to 10MHz
> from
> > debugfs entry. I can still connect it with other boards running OpenWrt.
> > But from computers running latest linux kernel it was visible in scan
> when
> > I was using AR5416 but I was not able to connect to my AP.
> > Then I changed NIC to Atheros AR9227 based card not I can even see
> openwrt
> > AP with 10MHz channel.
>
> Please note that the OpenWRT and the mainline Linux implementation of 5/10
> MHz
> are different. In Linux we have a limited but (hopefully)
> standard-conforming
> implementation, that means that also bitrates are interpreted for their
> respective frequencies. For example on mainline LInux in 5 MHz mode you
> have
> OFDM bitrates of 1.5, 2.25, 3, 4.5 Mbit/s etc what would be 6, 9, 12, 18
> Mbit/s on 20 MHz. OpenWRT will just announce the 20 MHz bitrates even on 5
> MHz
> (it's more of a hack). This will likely confuse the Linux clients. There
> might
> also be other knobs not complete, as I said I've only tested the IBSS mode.
>
> For the record I tested AR9220 and AR5213 in 5 and 10 MHz mode and after
> some
> timing corrections (patches have been merged upstream) this worked quite
> well.
>
> I'd recommend to use only the same implementation together.
>
> Cheers,
>     Simon
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20131123/17f49015/attachment.htm 

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ath9k-devel] Fwd:  ath9k: set 5/10 MHz supported channels
  2013-11-23 14:18                             ` [ath9k-devel] Fwd: " Kamran Nishat
@ 2013-12-13 11:24                               ` sotouki
  0 siblings, 0 replies; 28+ messages in thread
From: sotouki @ 2013-12-13 11:24 UTC (permalink / raw)
  To: ath9k-devel

Hi all,

finally managed to change the channel width through ath9k driver. In the
main.c you can play with the channelFlags variable. You can set this to
QUARTER or HALF. I do not know if this way is correct but it works for
my case.

Greetings

Tomas

On 11/23/2013 04:18 PM, Kamran Nishat wrote:
>
>
> ---------- Forwarded message ----------
> From: *Kamran Nishat* <kamran.nishat@gmail.com
> <mailto:kamran.nishat@gmail.com>>
> Date: Sat, Nov 23, 2013 at 12:00 PM
> Subject: Re: [ath9k-devel] ath9k: set 5/10 MHz supported channels
> To: Simon Wunderlich <sw@simonwunderlich.de
> <mailto:sw@simonwunderlich.de>>
>
>
> Simon
> Can we merge openwrt source and iwreless-next tree? what will happen
> if we do this?
> Best
>
> Kamran
>
>
> On Fri, Nov 22, 2013 at 3:30 PM, Simon Wunderlich
> <sw at simonwunderlich.de <mailto:sw@simonwunderlich.de>> wrote:
>
>     Kamran,
>
>     > I have an AP with  AR9160 tunning openWRT. When I set chennel to
>     10MHz from
>     > debugfs entry. I can still connect it with other boards running
>     OpenWrt.
>     > But from computers running latest linux kernel it was visible in
>     scan when
>     > I was using AR5416 but I was not able to connect to my AP.
>     > Then I changed NIC to Atheros AR9227 based card not I can even
>     see openwrt
>     > AP with 10MHz channel.
>
>     Please note that the OpenWRT and the mainline Linux implementation
>     of 5/10 MHz
>     are different. In Linux we have a limited but (hopefully)
>     standard-conforming
>     implementation, that means that also bitrates are interpreted for
>     their
>     respective frequencies. For example on mainline LInux in 5 MHz
>     mode you have
>     OFDM bitrates of 1.5, 2.25, 3, 4.5 Mbit/s etc what would be 6, 9,
>     12, 18
>     Mbit/s on 20 MHz. OpenWRT will just announce the 20 MHz bitrates
>     even on 5 MHz
>     (it's more of a hack). This will likely confuse the Linux clients.
>     There might
>     also be other knobs not complete, as I said I've only tested the
>     IBSS mode.
>
>     For the record I tested AR9220 and AR5213 in 5 and 10 MHz mode and
>     after some
>     timing corrections (patches have been merged upstream) this worked
>     quite well.
>
>     I'd recommend to use only the same implementation together.
>
>     Cheers,
>         Simon
>
>
>
>
>
> _______________________________________________
> ath9k-devel mailing list
> ath9k-devel at lists.ath9k.org
> https://lists.ath9k.org/mailman/listinfo/ath9k-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20131213/ca358314/attachment.htm 

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2013-12-13 11:24 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-08  7:02 [ath9k-devel] ath9k: set 5/10 MHz supported channels Kamran Nishat
2013-11-08 10:05 ` Simon Wunderlich
2013-11-08 10:46 ` Sergey Ryazanov
2013-11-12 11:58   ` Kamran Nishat
2013-11-12 13:02     ` Sergey Ryazanov
2013-11-08 15:07 ` Adrian Chadd
2013-11-11  8:11   ` Alex Hacker
2013-11-11  8:57     ` Adrian Chadd
2013-11-11  9:16       ` Alex Hacker
2013-11-11 13:15         ` Kamran Nishat
2013-11-11 14:47           ` sotouki
2013-11-12  6:49             ` Alex Hacker
2013-11-12 16:34             ` Simon Wunderlich
2013-11-18 10:42               ` sotouki
2013-11-18 11:07                 ` Simon Wunderlich
2013-11-18 19:39                   ` Kamran Nishat
2013-11-19 15:16                     ` Simon Wunderlich
2013-11-19 20:07                       ` Adrian Chadd
2013-11-20 14:50                         ` Holger Schurig
2013-11-19 20:12                       ` Johannes Berg
2013-11-21 22:44                       ` Kamran Nishat
2013-11-21 23:27                         ` Adrian Chadd
2013-11-21 23:29                           ` Adrian Chadd
2013-11-22  3:29                             ` Kamran Nishat
2013-11-22  3:33                               ` Adrian Chadd
2013-11-22 10:30                         ` Simon Wunderlich
     [not found]                           ` <CADxDmp4UnGdSpPXt5B6_GAfkmOcFAx7+36Bv2ymgpWzZHvnRZA@mail.gmail.com>
2013-11-23 14:18                             ` [ath9k-devel] Fwd: " Kamran Nishat
2013-12-13 11:24                               ` sotouki

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.