Skip to contentSkip to conversation

ath9k: how to change channels dynamically

ath9k-devel Serene Gud 2 participants 2 messages Apr 10, 2011

lore
Share & tools
lore

Serene Gud

author
#0 lore raw

--- On Sun, 4/10/11, Serene Gud <[email protected]> wrote:

From: Serene Gud <[email protected]>
Subject: Re: [ath9k-devel] ath9k: how to change channels dynamically
To: "Larry Vaden" <[email protected]>
Cc: "Adrian Chadd" <[email protected]>, ath9k-devel at lists.ath9k.org
Date: Sunday, April 10, 2011, 11:36 AM

--- On Wed, 4/6/11, Larry Vaden <[email protected]> wrote:

On Wed, Apr 6, 2011 at 11:54 AM, Serene Gud <[email protected]> wrote:

--- On Wed, 4/6/11, Larry Vaden <[email protected]> wrote:

On Wed, Apr 6, 2011 at 11:31 AM, Serene Gud <[email protected]> wrote:

--- On Mon, 4/4/11, Adrian Chadd <[email protected]> wrote:

it depends what you're trying to do.
Are you trying to dynamically change channel based on channel usage? Then you can just look at mac80211; it already knows how to change channels. It'll just call the driver to change the channel as appropriate. You don't need to necessarily modify ath9k to do it.

Are you trying to do some kind of synthetic, slow frequency hopping? (eg with quick channel changes?) Then that's a different story.

Adrian

Hey Adrian and people,

C'mon please suggest me which function/files will help me modify channel hopping functionality in ath9k driver?

Thanks!
SGS

I thought Adrian's answer was concise and to the point. ?That said, here's some pseudo code:
. make a decision which yields the next operating frequency

. stuff it in mac80211 or thereabouts. prn until you get it right!?End of story.

Signature · 51 lines
Larry Vaden, CoFounder
Internet Texoma, Inc.
Serving Rural Texomaland Since 1995


We Care About Your Connection!

Exactly Larry,

It was too to the point. I am sorry but I do not have much knowledge about kernel programming and I do not know which functions in the file will change it. I do not know where should I stuff it in mac80211 or inside ath9k files. I tried doing it in some of the existing files but i do not know their basis. No matter where I do, the channel is picked up from the hostapd. Kindly be a little more detailed.


Thank you so much for your time!
-SGS




SGS,
What Adrian is saying is you don't need to tinker with ath9k.
The previously referenced <http://devices.natetrue.com/wiviz/> shows you one way to do it and an URL to the Ubiquiti SDK was provided, enabling you to see the source code.

You can write code that emulates a very fast operator at a keyboard and stuff the operating frequency you have decided is best.
best regards/ldv
-- 
Larry Vaden, CoFounder

Internet Texoma, Inc.
Serving Rural Texomaland Since 1995
We Care About Your Connection!




Thanks for all the help!

I now want to introduce periodic frequency hopping; like I want my system to switch channels after a particular period, where I want to define that period. Do I need to do that in mac80211 or ath9k?

Thanks!
SGS



I am using Fedora14 and not OpenWrt.

Thanks!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20110410/7cee61b2/attachment-0001.htm 
#1 lore raw
Quoted 5 lines · Serene Gud

I am using Fedora14 and not OpenWrt.

Thanks!

There is some considerable discussion of channel switching in the .pdf for IEEE Std 802.11TM-2007 which you can obtain by visiting <
http://standards.ieee.org/getieee802/download/802.11-2007.pdf>.

Otherwise, the call documented in wizviz is prolly compatible with F-14, I dunno for sure.

F-14 is currently running

Linux shell.texoma.net 2.6.35.11-83.fc14.i686 #1 SMP Mon Feb 7 07:04:18 UTC 2011 i686 i686 i386 GNU/Linux

and the latest OpenWrt is running

Linux hq-0900-ap1 2.6.37.6 #6 Sat Apr 9 14:59:58 CDT 2011 mips GNU/Linux

so, with any luck, the call will work for you.

regards/ldv

Signature · 7 lines
Larry Vaden, CoFounder
Internet Texoma, Inc.
Serving Rural Texomaland Since 1995
We Care About Your Connection!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20110410/e10f01e6/attachment.htm