Skip to contentSkip to conversation

iwconfig drives which modules in the kernel/ath9k

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

lore
Share & tools
lore

Serene Gud

author
#0 lore raw

Hi all,

I am able to print out the present operating frequency from the ath9k/main.c file in dmesg and if I change the frequency using iwconfig, the output of of dmesg shows that the frequency has been changed. As far as I could figure out struct ieee80211_channel is defined in ./include/net/cfg80211.h which defines one element as center_freq. But what I do not know is that which file has the code that is affected by the "iwconfig wlan0 channel #" command because struct ieee80211_channel is used in may files in ./net/mac80211 ./net/wireless and ./drivers/net/wireless/ath/ath9k folders mainly.

If anybody knows, kindly share...
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20110411/0afea230/attachment.htm

#1 lore raw
Quoted 13 lines · Serene Gud

Hi all,

I am able to print out the present operating frequency from the ath9k/main.c file in dmesg and if I change the frequency using iwconfig, the output of of dmesg shows that the frequency has been changed. As far as I could figure out struct ieee80211_channel is defined in ./include/net/cfg80211.h which defines one element as center_freq. But what I do not know is that which file has the code that is affected by the "iwconfig wlan0 channel #" command because struct ieee80211_channel is used in may files in ./net/mac80211 ./net/wireless and ./drivers/net/wireless/ath/ath9k folders mainly.

Quoted 1 line

*driver in main.c see ath_set_channel which is called by ath9k_config (this

is called by mac80211 callback .config)
*then look at ieee80211_set_channel in mac80211
* look at wext-* files (complex)

Quoted 9 lines

If anybody knows, kindly share...
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/20110411/81763b1e/attachment.htm

author
#2 lore raw

--- On Mon, 4/11/11, Mohammed Shafi <[email protected]> wrote:

From: Mohammed Shafi <[email protected]>
Subject: Re: [ath9k-devel] iwconfig drives which modules in the kernel/ath9k
To: "Serene Gud" <[email protected]>
Cc: "ath9k" <[email protected]>
Date: Monday, April 11, 2011, 9:49 AM

On Mon, Apr 11, 2011 at 3:16 AM, Serene Gud <[email protected]> wrote:

Hi all,

I am able to print out the present operating frequency from the ath9k/main.c file in dmesg and if I change the frequency using iwconfig, the output of of dmesg shows that the frequency has been changed. As far as I could figure out struct ieee80211_channel is defined in ./include/net/cfg80211.h which defines one element as center_freq. But what I do not know is that which file has the code that is affected by the "iwconfig wlan0 channel #" command because struct ieee80211_channel is used in may files in ./net/mac80211 ./net/wireless and ./drivers/net/wireless/ath/ath9k folders mainly.

*driver in main.c see ath_set_channel which is called by ath9k_config (this is called by mac80211 callback .config) *then look at ieee80211_set_channel in mac80211
* look at wext-* files (complex)

If anybody knows, kindly share...
Thanks!

_______________________________________________

ath9k-devel mailing list

ath9k-devel at lists.ath9k.org

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

Yes, I am printing the value of operating frequency from ath_set_channel in ath9k/main.c and it comes up in the dmesg every time I change the value with iwconfig.

Thanks a lot for the telling me about ieee80211_set_channel in mac80211 !

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

author
#3 lore raw

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

From: Serene Gud <[email protected]>
Subject: Re: [ath9k-devel] iwconfig drives which modules in the kernel/ath9k
To: "Mohammed Shafi" <[email protected]>
Cc: "ath9k" <[email protected]>
Date: Monday, April 11, 2011, 11:03 AM

--- On Mon, 4/11/11, Mohammed Shafi <[email protected]> wrote:

From: Mohammed Shafi <[email protected]>
Subject: Re: [ath9k-devel] iwconfig drives which modules in the kernel/ath9k
To: "Serene Gud" <[email protected]>
Cc: "ath9k" <[email protected]>
Date: Monday, April 11, 2011, 9:49 AM

On Mon, Apr 11, 2011 at 3:16 AM, Serene Gud <[email protected]> wrote:

Hi all,

I am able to print out the present operating frequency from the ath9k/main.c file in dmesg and if I change the frequency using iwconfig, the output of of dmesg shows that the frequency has been changed. As far as I could figure out struct ieee80211_channel is defined in ./include/net/cfg80211.h which defines one element as center_freq. But what I do not know is that which file has the code that is affected by the "iwconfig wlan0 channel #" command because struct ieee80211_channel is used in may files in ./net/mac80211 ./net/wireless and ./drivers/net/wireless/ath/ath9k folders mainly.

*driver in main.c see ath_set_channel which is called by ath9k_config (this is called by mac80211 callback .config) *then look at ieee80211_set_channel in mac80211
* look at wext-* files (complex)

If anybody knows, kindly share...
Thanks!

_______________________________________________

ath9k-devel mailing list

ath9k-devel at lists.ath9k.org

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

Yes, I am printing the value of operating frequency from ath_set_channel in ath9k/main.c and it comes up in the dmesg every time I change the value with iwconfig.

Thanks a lot for the telling me about ieee80211_set_channel in mac80211 !

In case I need to test and see if I can manually insert a channel value in ieee80211_set_channel, what is the best way of doing it?

My purpose is to know which is the function/struct that I exactly need to address when I need to put my function that will make the channel change without the use of iwconfig command but on the basis of the data values provided in the function; dynamically without intervention.
_______________________________________________
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/20110411/bd52de51/attachment.htm