Re: [ath5k-devel] Regarding how to change channel width for 802.11a/b/g

2009-08-20 Thread shashi raj singh
Hi Aditya

I think by changing PLL control register setting u sud b able to achieve your 
goal.(also u will require som sw changes)
look in reg.h of ath5k

/*
 * PHY PLL (Phase Locked Loop) control register
 */
#define AR5K_PHY_PLL0x987c
#define AR5K_PHY_PLL_20MHZ  0x0013  /* For half rate (?) */

i have never done this bt its my understanding that this is the way. 

FULLRATE40 MHz core clock   BW = 20Mhz
HALF_RATE   20 MHz core clock   BW = 10Mhz
QUARTER_RATE10 MHz core clock   BW = 5Mhz

u sud also check legacy or Sams HAL for a better understanding.

Hope this helps
Shashi



  
___
ath5k-devel mailing list
ath5k-devel@lists.ath5k.org
https://lists.ath5k.org/mailman/listinfo/ath5k-devel


Re: [ath5k-devel] Regarding how to change channel width for 802.11a/b/g

2009-08-20 Thread Pavel Roskin
On Thu, 2009-08-20 at 04:41 -0700, shashi raj singh wrote:
 Hi Aditya
 
 I think by changing PLL control register setting u sud b able to achieve your 
 goal.(also u will require som sw changes)
 look in reg.h of ath5k

The question is not how to do it in the chipset.  The question is how to
make it properly on all layers.  Should we use the same channel numbers
for narrow bandwidth or different channels?  How should the userspace
set the bandwidth?  Are there any regulatory considerations?  How can we
integrate the new functionality smoothly with the already existing
support for setting 40 MHz bandwidth for 802.11n?  How should the
collision avoidance work?

I think linux-wirel...@vger.kernel.org would be a better place to
discuss it.  Once the design issues are resolved, ath5k would be
probably the first driver to implement the narrow channels.

But implementing a hack specific to ath5k won't be appreciated upstream.

-- 
Regards,
Pavel Roskin
___
ath5k-devel mailing list
ath5k-devel@lists.ath5k.org
https://lists.ath5k.org/mailman/listinfo/ath5k-devel


Re: [ath5k-devel] Regarding how to change channel width for 802.11a/b/g

2009-08-20 Thread Benoit PAPILLAULT
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Pavel Roskin a écrit :
 On Thu, 2009-08-20 at 04:41 -0700, shashi raj singh wrote:
 Hi Aditya

 I think by changing PLL control register setting u sud b able to
 achieve your goal.(also u will require som sw changes) look in
 reg.h of ath5k

 The question is not how to do it in the chipset.  The question is
 how to make it properly on all layers.  Should we use the same
 channel numbers for narrow bandwidth or different channels?  How
 should the userspace set the bandwidth?  Are there any regulatory
 considerations?  How can we integrate the new functionality
 smoothly with the already existing support for setting 40 MHz
 bandwidth for 802.11n?  How should the collision avoidance work?

 I think linux-wirel...@vger.kernel.org would be a better place to
 discuss it.  Once the design issues are resolved, ath5k would be
 probably the first driver to implement the narrow channels.

 But implementing a hack specific to ath5k won't be appreciated
 upstream.

Probably adding new values to the enum nl80211_channel_type might be a
good start?

I think
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkqNhNEACgkQOR6EySwP7oI+tQCgkAk2yrjBskxExEhROffEbrAb
FYIAn2V1eZTmNq/ZdFpsNGCmcf//dSBZ
=9LCP
-END PGP SIGNATURE-

___
ath5k-devel mailing list
ath5k-devel@lists.ath5k.org
https://lists.ath5k.org/mailman/listinfo/ath5k-devel


Re: [ath5k-devel] Regarding how to change channel width for 802.11a/b/g

2009-08-20 Thread Aditya Bhave
Hi,

Thanks for your prompt responses.

Another member posted some time back that the 'iw' command can set the 
bandwidth to be 40 MHz in addition to the default 20. So I guess 
user-level API support is already built in for this kind of change. 
Don't we just need to extend it's implementation to accept bandwidths 
(within the ISM band) of any width? I understand there will also be 
regulatory concerns, but for my research work at the moment, I was 
wondering how many software changes (hacks) need to be done in ath5k/9k 
in order to make this work?

Thanks
regards,
Aditya Bhave

Pavel Roskin wrote:
 On Thu, 2009-08-20 at 04:41 -0700, shashi raj singh wrote:
   
 Hi Aditya

 I think by changing PLL control register setting u sud b able to achieve 
 your goal.(also u will require som sw changes)
 look in reg.h of ath5k
 

 The question is not how to do it in the chipset.  The question is how to
 make it properly on all layers.  Should we use the same channel numbers
 for narrow bandwidth or different channels?  How should the userspace
 set the bandwidth?  Are there any regulatory considerations?  How can we
 integrate the new functionality smoothly with the already existing
 support for setting 40 MHz bandwidth for 802.11n?  How should the
 collision avoidance work?

 I think linux-wirel...@vger.kernel.org would be a better place to
 discuss it.  Once the design issues are resolved, ath5k would be
 probably the first driver to implement the narrow channels.

 But implementing a hack specific to ath5k won't be appreciated upstream.

   

___
ath5k-devel mailing list
ath5k-devel@lists.ath5k.org
https://lists.ath5k.org/mailman/listinfo/ath5k-devel


Re: [ath5k-devel] Regarding how to change channel width for 802.11a/b/g

2009-08-20 Thread Luis R. Rodriguez
On Thu, Aug 20, 2009 at 10:16 AM, Benoit
PAPILLAULTbenoit.papilla...@free.fr wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Pavel Roskin a écrit :
 On Thu, 2009-08-20 at 04:41 -0700, shashi raj singh wrote:
 Hi Aditya

 I think by changing PLL control register setting u sud b able to
 achieve your goal.(also u will require som sw changes) look in
 reg.h of ath5k

 The question is not how to do it in the chipset.  The question is
 how to make it properly on all layers.  Should we use the same
 channel numbers for narrow bandwidth or different channels?  How
 should the userspace set the bandwidth?  Are there any regulatory
 considerations?  How can we integrate the new functionality
 smoothly with the already existing support for setting 40 MHz
 bandwidth for 802.11n?  How should the collision avoidance work?

 I think linux-wirel...@vger.kernel.org would be a better place to
 discuss it.  Once the design issues are resolved, ath5k would be
 probably the first driver to implement the narrow channels.

 But implementing a hack specific to ath5k won't be appreciated
 upstream.

 Probably adding new values to the enum nl80211_channel_type might be a
 good start?

As Pavel noted, this needs to be talked on linux-wireless, not here.

  Luis
___
ath5k-devel mailing list
ath5k-devel@lists.ath5k.org
https://lists.ath5k.org/mailman/listinfo/ath5k-devel


Re: [ath5k-devel] Regarding how to change channel width for 802.11a/b/g

2009-08-19 Thread Benoit PAPILLAULT
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Aditya a écrit :
 Hi,

 I am a completely newbie to ath5k.

 My question is: Is there a command I can use to dynamically (within
 a program) change the channel width of the radio between the values
 5, 10, 20, 40 MHz?

 Thanks for your help regards, Aditya Bhave
Good questions. There is a way in mac80211 to change to 40MHz versus
20 MHz with iw
(iw dev wlan0 set channel 1 ht40+). For sure, it's not supported by
ath5k since it does not support 802.11n.

Regarding 5 and 10 MHz, I have not seen anything in mac80211 despite
it's in the IEEE 802.11-2007 specifications

Regards,
Benoit

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkqL5k8ACgkQOR6EySwP7oLGQACg1ULl8u7xZWfoaxFBUG/YKbns
3/IAnjoAe+J1vgqeW0foIc4y5SGRrxZu
=5wDo
-END PGP SIGNATURE-

___
ath5k-devel mailing list
ath5k-devel@lists.ath5k.org
https://lists.ath5k.org/mailman/listinfo/ath5k-devel


Re: [ath5k-devel] Regarding how to change channel width for 802.11a/b/g

2009-08-19 Thread Aditya Bhave
Thanks Benoit for your prompt response.

So you are saying that 'ath9k' has this command, but not 'ath5k'?

Can you please tell me the sections of code I need to look at in order 
to understand how to change the channel width? A recent SIGCOMM paper 
did some research on adapting channel width in wireless networks. They 
used Windows drivers for the Atheros chipsets and were able to program 
5,10,20,40 MHz channels. No details were given apart from the hint that 
they manipulated the clock rate of the card.  Any idea on how to do 
this  in the present 'ath5k' or 'ath9k' code?

Thanks
regards,
Aditya Bhave

Benoit PAPILLAULT wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Aditya a écrit :
   
 Hi,

 I am a completely newbie to ath5k.

 My question is: Is there a command I can use to dynamically (within
 a program) change the channel width of the radio between the values
 5, 10, 20, 40 MHz?

 Thanks for your help regards, Aditya Bhave
 
 Good questions. There is a way in mac80211 to change to 40MHz versus
 20 MHz with iw
 (iw dev wlan0 set channel 1 ht40+). For sure, it's not supported by
 ath5k since it does not support 802.11n.

 Regarding 5 and 10 MHz, I have not seen anything in mac80211 despite
 it's in the IEEE 802.11-2007 specifications

 Regards,
 Benoit

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEYEARECAAYFAkqL5k8ACgkQOR6EySwP7oLGQACg1ULl8u7xZWfoaxFBUG/YKbns
 3/IAnjoAe+J1vgqeW0foIc4y5SGRrxZu
 =5wDo
 -END PGP SIGNATURE-


   

___
ath5k-devel mailing list
ath5k-devel@lists.ath5k.org
https://lists.ath5k.org/mailman/listinfo/ath5k-devel


Re: [ath5k-devel] Regarding how to change channel width for 802.11a/b/g

2009-08-19 Thread Benoit PAPILLAULT
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Aditya Bhave a écrit :
 Thanks Benoit for your prompt response.

 So you are saying that 'ath9k' has this command, but not 'ath5k'?

 Can you please tell me the sections of code I need to look at in
 order to understand how to change the channel width? A recent
 SIGCOMM paper did some research on adapting channel width in
 wireless networks. They used Windows drivers for the Atheros
 chipsets and were able to program 5,10,20,40 MHz channels. No
 details were given apart from the hint that they manipulated the
 clock rate of the card.  Any idea on how to do this  in the present
  'ath5k' or 'ath9k' code?

 Thanks regards, Aditya Bhave

For sure, ath5k compatible cards are able to do 5 and 10 MHz (besides
20 MHz), but I'm not sure it's supported by ath5k, nor mac80211. The
same may apply to ath9k as well. I guess you need to dig into the
source code yourself :-)

Regards,
Benoit
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkqMLqQACgkQOR6EySwP7oIfMgCeMoZcMARFnFJVqKFQGW24fgQL
qtkAoIaPYzPcKMMfA39MyoFa6hrqYei0
=qO20
-END PGP SIGNATURE-

___
ath5k-devel mailing list
ath5k-devel@lists.ath5k.org
https://lists.ath5k.org/mailman/listinfo/ath5k-devel


Re: [ath5k-devel] Regarding how to change channel width for 802.11a/b/g

2009-08-19 Thread Bob Copeland
On Wed, Aug 19, 2009 at 12:56 PM, Benoit
PAPILLAULTbenoit.papilla...@free.fr wrote:
 For sure, ath5k compatible cards are able to do 5 and 10 MHz (besides
 20 MHz), but I'm not sure it's supported by ath5k, nor mac80211. The
 same may apply to ath9k as well. I guess you need to dig into the
 source code yourself :-)

I'm pretty sure that it is not currently supported, but Pat Erley is
working on it.  See:

http://marc.info/?l=linux-wirelessm=124917094707512w=2

-- 
Bob Copeland %% www.bobcopeland.com
___
ath5k-devel mailing list
ath5k-devel@lists.ath5k.org
https://lists.ath5k.org/mailman/listinfo/ath5k-devel


Re: [ath5k-devel] Regarding how to change channel width for 802.11a/b/g

2009-08-19 Thread Luis R. Rodriguez
On Wed, Aug 19, 2009 at 10:12:01AM -0700, Bob Copeland wrote:
 On Wed, Aug 19, 2009 at 12:56 PM, Benoit
 PAPILLAULTbenoit.papilla...@free.fr wrote:
  For sure, ath5k compatible cards are able to do 5 and 10 MHz (besides
  20 MHz), but I'm not sure it's supported by ath5k, nor mac80211. The
  same may apply to ath9k as well. I guess you need to dig into the
  source code yourself :-)
 
 I'm pretty sure that it is not currently supported, but Pat Erley is
 working on it.  See:
 
 http://marc.info/?l=linux-wirelessm=124917094707512w=2

This is currently not supported by mac80211/cfg80211 but such work
is greatly welcomed, specially if you follow standards.

  Luis
___
ath5k-devel mailing list
ath5k-devel@lists.ath5k.org
https://lists.ath5k.org/mailman/listinfo/ath5k-devel