Skip to contentSkip to conversation

ath9k: how to change channels dynamically

ath9k-devel Kanika Grover 4 participants 11 messages Apr 3, 2011 – Apr 10, 2011

lore
Share & tools
lore
#0 lore raw

Hi all,

I am using Fedora 14. I am new to ath9k, please help me figure out which will be the files/modules that I need to change if I have to introduce channel hopping/channel switching in my ath9k driver. I have been looking at the ath9k code for a while but haven't been able to figure out the dependencies of the files completely. Is there a flowchart available of how the functions have been placed in ath9k?

Also, would it be better to use the whole kernel source installed from yum downloader or would it be better to use compat wireless.

thanks!

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

#1 lore raw
Quoted 9 lines · Kanika Grover

Hi all,

I am using Fedora 14. I am new to ath9k, please help me figure out which will be the files/modules that I need to change if I have to introduce channel hopping/channel switching in my ath9k driver. I have been looking at the ath9k code for a while but haven't been able to figure out the dependencies of the files completely. Is there a flowchart available of how the functions have been placed in ath9k?

Quoted 5 lines

Also, would it be better to use the whole kernel source installed from yum downloader or would it be better to use compat wireless.

thanks!

While I doubt it tells anywhere near the whole story you are looking to read and understand, you might want to start at <
http://devices.natetrue.com/wiviz/>. wiviz is found in Ubiquiti's SDK if not elsewhere. Said SDK is at <
http://www.ubnt.com/downloads/firmwares/XN-fw/v5.3/SDK.UBNT.v5.3.tar.bz2>.

HTH.

BTW, what is your application for channel/frequency hopping?

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/20110403/f5fa3697/attachment.htm 
author
#2 lore raw

Thanks for the information. But I need to know more details of the ath9k driver functionality.

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

From: Larry Vaden <[email protected]>
Subject: Re: [ath9k-devel] ath9k: how to change channels dynamically
To: "Kanika Grover" <[email protected]>
Cc: ath9k-devel at lists.ath9k.org
Date: Monday, April 4, 2011, 8:01 AM

On Sun, Apr 3, 2011 at 5:35 PM, Kanika Grover <[email protected]> wrote:

Hi all,

I am using Fedora 14. I am new to ath9k, please help me figure out which will be the files/modules that I need to change if I have to introduce channel hopping/channel switching in my ath9k driver. I have been looking at the ath9k code for a while but haven't been able to figure out the dependencies of the files completely. Is there a flowchart available of how the functions have been placed in ath9k?

Also, would it be better to use the whole kernel source installed from yum downloader or would it be better to use compat wireless.

thanks!

While I doubt it tells anywhere near the whole story you are looking to read and understand, you might want to start at <http://devices.natetrue.com/wiviz/>. ?wiviz is found in Ubiquiti's SDK if not elsewhere. ?Said SDK is at <http://www.ubnt.com/downloads/firmwares/XN-fw/v5.3/SDK.UBNT.v5.3.tar.bz2>.

HTH.
BTW, what is your application for channel/frequency hopping? regards/ldv?

Signature · 9 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/20110404/87bfec2c/attachment.htm 
#3 lore raw
Quoted 2 lines · Serene Gud

Thanks for the information. But I need to know more details of the ath9k driver functionality.

this thread will be helpful
"[ath9k-devel] functions flows in ath9k"

Quoted 35 lines

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

From: Larry Vaden <[email protected]>
Subject: Re: [ath9k-devel] ath9k: how to change channels dynamically
To: "Kanika Grover" <[email protected]>
Cc: ath9k-devel at lists.ath9k.org
Date: Monday, April 4, 2011, 8:01 AM

On Sun, Apr 3, 2011 at 5:35 PM, Kanika Grover <[email protected]> wrote:

Hi all,

I am using Fedora 14. I am new to ath9k, please help me figure out which will be the files/modules that I need to change if I have to introduce channel hopping/channel switching in my ath9k driver. I have been looking at the ath9k code for a while but haven't been able to figure out the dependencies of the files completely. Is there a flowchart available of how the functions have been placed in ath9k?

Also, would it be better to use the whole kernel source installed from yum downloader or would it be better to use compat wireless.

thanks!

While I doubt it tells anywhere near the whole story you are looking to read and understand, you might want to start at <http://devices.natetrue.com/wiviz/>. ?wiviz is found in Ubiquiti's SDK if not elsewhere. ?Said SDK is at <http://www.ubnt.com/downloads/firmwares/XN-fw/v5.3/SDK.UBNT.v5.3.tar.bz2>.
HTH.
BTW, what is your application for channel/frequency hopping?
regards/ldv
--
Larry Vaden, CoFounder
Internet Texoma, Inc.
Serving Rural Texomaland Since 1995
We Care About Your Connection!

_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

#4 lore raw
In reply to Kanika Grover

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

Quoted 12 lines · Kanika Grover

Hi all,

I am using Fedora 14. I am new to ath9k, please help me figure out which will be the files/modules that I need to change if I have to introduce channel hopping/channel switching in my ath9k driver. I have been looking at the ath9k code for a while but haven't been able to figure out the dependencies of the files completely. Is there a flowchart available of how the functions have been placed in ath9k?

Also, would it be better to use the whole kernel source installed from yum downloader or would it be better to use compat wireless.

Quoted 9 lines

thanks!

_______________________________________________
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/20110405/31b7cdab/attachment.htm

author
#5 lore raw

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

From: Adrian Chadd <[email protected]>
Subject: Re: [ath9k-devel] ath9k: how to change channels dynamically
To: "Kanika Grover" <[email protected]>
Cc: ath9k-devel at lists.ath9k.org
Date: Tuesday, April 5, 2011, 8:55 AM

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

_______________________________________________

ath9k-devel mailing list

ath9k-devel at lists.ath9k.org

https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Hey Adrian,

Yes, I am trying to change the channel based on channel usage, but I do not exactly know which files/functions (and how they are connected to others; function calls) in mac80211 and ath9k I need to address.

Can you give me some idea as to where in the code I should look into?

Thanks,
SGS

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

author
#6 lore raw
In reply to Adrian Chadd

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

From: Adrian Chadd <[email protected]>
Subject: Re: [ath9k-devel] ath9k: how to change channels dynamically
To: "Kanika Grover" <[email protected]>
Cc: ath9k-devel at lists.ath9k.org
Date: Monday, April 4, 2011, 10:25 PM

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

_______________________________________________

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/20110406/e85feeda/attachment.htm

#7 lore raw
Quoted 26 lines · Serene Gud

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

From: Adrian Chadd <[email protected]>
Subject: Re: [ath9k-devel] ath9k: how to change channels dynamically
To: "Kanika Grover" <[email protected]>
Cc: ath9k-devel at lists.ath9k.org
Date: Monday, April 4, 2011, 10:25 PM

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

Quoted 9 lines

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 · 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/20110406/3d2bbd43/attachment.htm 
author
#8 lore raw

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

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

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

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

From: Adrian Chadd <[email protected]>

Subject: Re: [ath9k-devel] ath9k: how to change channels dynamically
To: "Kanika Grover" <[email protected]>
Cc: ath9k-devel at lists.ath9k.org

Date: Monday, April 4, 2011, 10:25 PM

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 · 17 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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20110406/6ab0de46/attachment.htm 
#9 lore raw
Quoted 78 lines · Serene Gud

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

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

On Wed, Apr 6, 2011 at 11:31 AM, Serene Gud <serene_gud at yahoo.co.in<http://mc/[email protected]>

Quoted 1 line

wrote:

--- On *Mon, 4/4/11, Adrian Chadd <adrian at freebsd.org<http://mc/[email protected]>

Quoted 1 line · * wrote:

From: Adrian Chadd <adrian at freebsd.org<http://mc/[email protected]>

Quoted 1 line

Subject: Re: [ath9k-devel] ath9k: how to change channels dynamically
To: "Kanika Grover" <serene_gud at yahoo.co.in<http://mc/[email protected]>

Quoted 1 line

Cc: ath9k-devel at lists.ath9k.org<http://mc/[email protected]>
Date: Monday, April 4, 2011, 10:25 PM

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.

--
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.

Quoted 4 lines

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

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/20110406/cd849402/attachment.htm 
author
#10 lore raw

--- 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 · 45 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


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