Re: [ath9k-devel] how to open an existing net_device wlan0

2011-05-12 Thread Serene Gud
I have looked into the code given in ./drivers/net files where the net_devices 
are initialized with the help of init_modules. 
Most of them are like the one given on the following link:

http://forum.kernelnewbies.org/read.php?12,951,951,quote=1

But should I do the same? because I only want to open the already initialized 
and registered net_device... and change its settings...

Any kind of suggestions are really appreciated!

Thanks again

--- On Thu, 5/12/11, Serene Gud serene_...@yahoo.co.in wrote:

From: Serene Gud serene_...@yahoo.co.in
Subject: [ath9k-devel] how to open an existing net_device wlan0
To: ath9k ath9k-devel@lists.ath9k.org
Date: Thursday, May 12, 2011, 7:27 PM

Hi all,

First of all I would like to thank everyone for their replies. Most of the 
information that I receive proves useful. I had no experience of working with 
the ath9k or the kernel code but now it seems that I have progressed quite a 
bit. I am able to do most of the changes that I wanted to, but some

Though I am able to initialize net_device structure from ieee80211_sub_if_data 
input in the present files like iface.c, main.c and mlme.c in ./net/mac80211 in 
the kernel code. But i want to shift my functionality to a separate module so 
that I can just insert the module and run my function.

Please help me with the following:

I want to use the net_device information. I guess the net_devices get 
registered at the boot up time, which makes me think that even my wireless card 
would get initialized. So, all I want to do is: open up my
 wireless card net_device so that I can access its parameters. 

Kindly suggest as to how this can be implemented.

Thanks!

-Inline Attachment Follows-

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


Re: [ath9k-devel] How to initialize net_device structure type

2011-05-09 Thread Serene Gud


--- On Thu, 4/28/11, Mohammed Shafi shafi.wirel...@gmail.com wrote:


On Thu, Apr 28, 2011 at 8:43 PM, Serene Gud serene_...@yahoo.co.in wrote:

Hi all,

I am trying to make some function calls in net/mac80211/main.c which involve 
the net_device struct as one parameter, but I am unable to pass any arguments 
for it.


Can anybody suggest me how to initialize struct net_Device *dev?
 may be iface.c ? I am not sure







Hi all,

I am still unable to initialize the net_device structure. Also, now i 
doubt if it is possible to make a call to the functions defined in cfg.c
 (net/mac80211/cfg.c). All thefunctions in there were declared 'static';
 so I removed the static keyword so that I could make a call to the 
function in  main.c (net/mac80211/main.c) but now I am wondering if it 
is possible to do this or I am just trying something which cannot be 
done.

Thanks for the help!


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


Re: [ath9k-devel] How to initialize net_device structure type

2011-05-09 Thread Serene Gud


--- On Mon, 5/9/11, Serene Gud serene_...@yahoo.co.in wrote:


On Thu, Apr 28, 2011 at 8:43 PM, Serene Gud serene_...@yahoo.co.in wrote:

Hi all,

I am trying to make some function calls in net/mac80211/main.c which involve 
the net_device struct as one parameter, but I am unable to pass any arguments 
for it.


Can anybody suggest me how to initialize struct net_Device *dev?
 may be iface.c ? I am not sure







Hi all,

I am still unable to initialize the net_device structure. Also, now i 
doubt if it is possible to make a call to the functions defined in cfg.c
 (net/mac80211/cfg.c). All thefunctions in there were declared 'static';
 so I removed the static keyword so that I could make a call to the 
function in  main.c (net/mac80211/main.c) but now I am wondering if it 
is possible to do this or I am just trying something which cannot be 
done.

Thanks for the help!
Is it possible to do:

dev-name=wlan0;

where dev is an instance of struct net_device (struct net_device *dev;)



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


[ath9k-devel] Error messgaes at boot up

2011-05-09 Thread Serene Gud
Hi all,

The following are the changes that I have made to the kernel code:

in net/mac80211/cfg.c:
    I removed the key word 'static' from the function ieee80211_set_channel

in net/mac80211/ieee80211_i.h:
   I added the prototype for the function ieee80211_set_channel;

/* start*/
int ieee80211_set_channel(struct wiphy *wiphy,
 struct net_device *netdev,
 struct ieee80211_channel *chan,
 enum nl80211_channel_type channel_type);
/* end*/


in net/mac80211/main.c:
   Inside the  ieee80211_hw_config function; I made a call to the function 
in the following way:
/* start*/    
        struct ieee80211_sub_if_data *sdata=NULL;
    struct wiphy *wiphy;
    struct net_device *netdev;
    bool done;

    wiphy=local-hw.wiphy;
    netdev = alloc_netdev_mq(sizeof(*sdata) + local-hw.vif_data_size,
   wlan%d, ether_setup, local-hw.queues);
    chan=local-oper_channel;
    channel_type=local-hw.conf.channel_type;

    done = ieee80211_set_channel(wiphy,netdev,chan,channel_type);

    if(!done)
    printk(successful call to set_channel!!!\n);
/* end */


When I do the 'make' there is no error.
But when I reboot the system, it does not start and gives some errors that are 
difficult to understand...
What am I doing wrong?


Please suggest,
Thanks!

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


[ath9k-devel] How to initialize net_device structure type

2011-04-28 Thread Serene Gud
Hi all,

I am trying to make some function calls in net/mac80211/main.c which involve 
the net_device struct as one parameter, but I am unable to pass any arguments 
for it.

Can anybody suggest me how to initialize struct net_Device *dev?

Thanks,
-Serene
___
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel


[ath9k-devel] How to exercise the CSA capability on my AP?

2011-04-16 Thread Serene Gud
Hi all,

I have found the following code for the station node

http://marc.info/?l=linux-wirelessm=123121452014298w=4

But I do not understand how to exercise this CSA, as I have added this 
code to the Station but then how will the AP switch channel and let the 
station know that it too has to do the same?

What is the code for the AP for CSA functionality.

Thank you all.
___
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel


[ath9k-devel] which kernel version has CSA (802.11h) code in mac80211

2011-04-13 Thread Serene Gud
Hi all,

My kernel is 2.6.38.2 but I am unable to find the CSA (802.11h) in my kernel.
Can you please suggest which kernels it is present in?

Thanks!
-Serene
___
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel


Re: [ath9k-devel] iwconfig drives which modules in the kernel/ath9k

2011-04-12 Thread Serene Gud
Thank you AdrianI'll try to find that particular code segment.


--- On Mon, 4/11/11, Adrian Chadd adr...@freebsd.org wrote:

From: Adrian Chadd adr...@freebsd.org
Subject: Re: [ath9k-devel] iwconfig drives which modules in the kernel/ath9k
To: Sujith m.suj...@gmail.com
Cc: Serene Gud serene_...@yahoo.co.in, ath9k ath9k-devel@lists.ath9k.org
Date: Monday, April 11, 2011, 10:26 PM

On 12 April 2011 11:09, Sujith m.suj...@gmail.com wrote:

Adrian Chadd wrote:

 There's actually something in 802.11h that handles switching channels.



 Does mac80211 handle sending/receiving CSA?



Yep.

Cool.

Serene, see if you can find the code that handles CSA. This is where the AP 
makes the decision to change channel and informs all associated stations about 
the new details. The stations then try re-associating to the new channel.


That may do exactly what you're after!


Adrian

Thank you Adrian! I'll try to find that particular code segment.

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


Re: [ath9k-devel] iwconfig drives which modules in the kernel/ath9k

2011-04-12 Thread Serene Gud


--- On Mon, 4/11/11, Larry Vaden va...@texoma.net wrote:
On Mon, Apr 11, 2011 at 10:26 PM, Adrian Chadd adr...@freebsd.org wrote:
 On 12 April 2011 11:09, Sujith m.suj...@gmail.com wrote:

 Adrian Chadd wrote:
  There's actually something in 802.11h that handles switching channels.
 
  Does mac80211 handle sending/receiving CSA?

 Yep.

 Cool.

 Serene, see if you can find the code that handles CSA. This is where the AP
 makes the decision to change channel and informs all associated stations
 about the new details. The stations then try re-associating to the new
 channel.

 That may do exactly what you're after!


 Adrian

This sounds exactly like what Ubiquiti calls AirSelect, with the
following parms:

Enable AirSelect:    
Frequency List:    
Hop Interval: miliseconds
Announce Count:
___
I tried that but it just didnt work on my machine 

--Serene


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


Re: [ath9k-devel] iwconfig drives which modules in the kernel/ath9k

2011-04-12 Thread Serene Gud


--- On Mon, 4/11/11, Sujith m.suj...@gmail.com wrote:
Adrian Chadd wrote:
 There's actually something in 802.11h that handles switching channels.
 
 Does mac80211 handle sending/receiving CSA?

Yep.

Sujith


Sujith,

Can you please throw some more light and suggest me as to how do I go about it. 
I have gone through the code in the following files:

/net/mac80211/mlme.c

and also I found out that:

brcm/include/proto/802.11.h 

contains some information about csa; the four elements: channel_mode, 
regulatory class, new channel number and  channel switch count.

Also, can you please tell me if all these options are by default enabled.

Thank you so much!
-Serene
___
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel


Re: [ath9k-devel] iwconfig drives which modules in the kernel/ath9k

2011-04-12 Thread Serene Gud


--- On Tue, 4/12/11, Serene Gud serene_...@yahoo.co.in wrote:

From: Serene Gud serene_...@yahoo.co.in
Subject: Re: [ath9k-devel] iwconfig drives which modules in the kernel/ath9k
To: Adrian Chadd adr...@freebsd.org, Sujith m.suj...@gmail.com
Cc: ath9k ath9k-devel@lists.ath9k.org
Date: Tuesday, April 12, 2011, 3:33 PM



--- On Mon, 4/11/11, Sujith m.suj...@gmail.com wrote:
Adrian Chadd wrote:
 There's actually something in 802.11h that handles switching channels.
 
 Does mac80211 handle sending/receiving CSA?

Yep.

Sujith


Sujith,

Can you please throw some more light and suggest me as to how do I go about it. 
I have gone through the code in the following files:

/net/mac80211/mlme.c

and also I found out that:

brcm/include/proto/802.11.h 

contains some information about csa; the four elements: channel_mode, 
regulatory class, new channel number and  channel switch count.

Also, can you please tell me if all these
 options are by default enabled.

Thank you so much!
-Serene
Anybody else who knows the above information. Please come up...

Thanks!


-Inline Attachment Follows-

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


Re: [ath9k-devel] iwconfig drives which modules in the kernel/ath9k

2011-04-11 Thread Serene Gud


--- On Mon, 4/11/11, Mohammed Shafi shafi.at...@gmail.com wrote:

From: Mohammed Shafi shafi.at...@gmail.com
Subject: Re: [ath9k-devel] iwconfig drives which modules in the kernel/ath9k
To: Serene Gud serene_...@yahoo.co.in
Cc: ath9k ath9k-devel@lists.ath9k.org
Date: Monday, April 11, 2011, 9:49 AM



On Mon, Apr 11, 2011 at 3:16 AM, Serene Gud serene_...@yahoo.co.in 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@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 !


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


Re: [ath9k-devel] iwconfig drives which modules in the kernel/ath9k

2011-04-11 Thread Serene Gud
I M using linux kernel downloaded from kernel.org instead of compat-wireless.

But I was able to find tthe following:

./include/net/cfg80211.h:int cfg80211_wext_giwname
./include/net/cfg80211.h:int cfg80211_wext_siwmode
./include/net/cfg80211.h:int cfg80211_wext_giwmode
./include/net/cfg80211.h:int cfg80211_wext_siwscan
./include/net/cfg80211.h:int cfg80211_wext_giwscan
./include/net/cfg80211.h:int cfg80211_wext_siwmlme
./include/net/cfg80211.h:int cfg80211_wext_giwrange
./include/net/cfg80211.h:int cfg80211_wext_siwgenie

Not sure of how to use them 8-|



--- On Mon, 4/11/11, Mohammed Shafi shafi.at...@gmail.com wrote:

From: Mohammed Shafi
 shafi.at...@gmail.com
Subject: Re: [ath9k-devel] iwconfig drives which modules in the kernel/ath9k
To: Serene Gud serene_...@yahoo.co.in
Date: Monday, April 11, 2011, 9:53 AM

also wext-core.c
static const struct iw_ioctl_description standard_ioctl[] = {
    [IW_IOCTL_IDX(SIOCSIWCOMMIT)] = {


On Mon, Apr 11, 2011 at 8:21 PM, Mohammed Shafi shafi.at...@gmail.com wrote:

in wext-compat.c 
static const iw_handler cfg80211_handlers[] = {
    [IW_IOCTL_IDX(SIOCGIWNAME)] = (iw_handler) cfg80211_wext_giwname,

    [IW_IOCTL_IDX(SIOCSIWFREQ)] = (iw_handler) cfg80211_wext_siwfreq,

    [IW_IOCTL_IDX(SIOCGIWFREQ)] = (iw_handler) cfg80211_wext_giwfreq,
    [IW_IOCTL_IDX(SIOCSIWMODE)] = (iw_handler) cfg80211_wext_siwmode,
    [IW_IOCTL_IDX(SIOCGIWMODE)] = (iw_handler) cfg80211_wext_giwmode,


    [IW_IOCTL_IDX(SIOCGIWRANGE)]    = (iw_handler) cfg80211_wext_giw

On Mon, Apr 11, 2011 at 8:19 PM, Mohammed Shafi shafi.at...@gmail.com wrote:




On Mon, Apr 11, 2011 at 3:16 AM, Serene Gud serene_...@yahoo.co.in 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@lists.ath9k.org

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








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


Re: [ath9k-devel] iwconfig drives which modules in the kernel/ath9k

2011-04-11 Thread Serene Gud


--- On Mon, 4/11/11, Serene Gud serene_...@yahoo.co.in wrote:

From: Serene Gud serene_...@yahoo.co.in
Subject: Re: [ath9k-devel] iwconfig drives which modules in the kernel/ath9k
To: Mohammed Shafi shafi.at...@gmail.com
Cc: ath9k ath9k-devel@lists.ath9k.org
Date: Monday, April 11, 2011, 11:03 AM



--- On Mon, 4/11/11, Mohammed Shafi shafi.at...@gmail.com wrote:

From: Mohammed Shafi shafi.at...@gmail.com
Subject: Re: [ath9k-devel] iwconfig drives which modules in the kernel/ath9k
To: Serene Gud serene_...@yahoo.co.in
Cc: ath9k ath9k-devel@lists.ath9k.org
Date: Monday, April 11, 2011, 9:49 AM



On Mon, Apr 11, 2011 at 3:16 AM, Serene Gud serene_...@yahoo.co.in 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@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@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
___
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel


[ath9k-devel] iwconfig drives which modules in the kernel/ath9k

2011-04-10 Thread 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.

If anybody knows, kindly share...
Thanks!
___
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel


Re: [ath9k-devel] ath9k: how to change channels dynamically

2011-04-06 Thread Serene Gud


--- On Mon, 4/4/11, Adrian Chadd adr...@freebsd.org wrote:

From: Adrian Chadd adr...@freebsd.org
Subject: Re: [ath9k-devel] ath9k: how to change channels dynamically
To: Kanika Grover serene_...@yahoo.co.in
Cc: ath9k-devel@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@lists.ath9k.org

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




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


Re: [ath9k-devel] ath9k: how to change channels dynamically

2011-04-06 Thread Serene Gud


--- On Wed, 4/6/11, Larry Vaden va...@texoma.net wrote:

From: Larry Vaden va...@texoma.net
Subject: Re: [ath9k-devel] ath9k: how to change channels dynamically
To: Serene Gud serene_...@yahoo.co.in
Cc: Adrian Chadd adr...@freebsd.org, ath9k-devel@lists.ath9k.org
Date: Wednesday, April 6, 2011, 11:48 AM



On Wed, Apr 6, 2011 at 11:31 AM, Serene Gud serene_...@yahoo.co.in wrote:



--- On Mon, 4/4/11, Adrian Chadd adr...@freebsd.org wrote:


From: Adrian Chadd adr...@freebsd.org

Subject: Re: [ath9k-devel] ath9k: how to change channels dynamically
To: Kanika Grover serene_...@yahoo.co.in
Cc: ath9k-devel@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.
-- 
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


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


Re: [ath9k-devel] ath9k: how to change channels dynamically

2011-04-05 Thread Serene Gud


--- On Tue, 4/5/11, Adrian Chadd adr...@freebsd.org wrote:

From: Adrian Chadd adr...@freebsd.org
Subject: Re: [ath9k-devel] ath9k: how to change channels dynamically
To: Kanika Grover serene_...@yahoo.co.in
Cc: ath9k-devel@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@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

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


Re: [ath9k-devel] ath9k performance issues

2011-04-05 Thread Serene Gud


--- On Tue, 4/5/11, Felix Fietkau n...@openwrt.org wrote:

From: Felix Fietkau n...@openwrt.org
Subject: Re: [ath9k-devel] ath9k performance issues
To: Bernhard Walle bernh...@bwalle.de
Cc: ath9k-devel@lists.ath9k.org
Date: Tuesday, April 5, 2011, 9:29 PM

On 2011-04-05 5:44 PM, Bernhard Walle wrote:
 Hello,

 we're using a PCIe AR9280 card on a Octeon MIPS CPU. The system
 that does the transmission has a high CPU utilization:

 iperf in UDP mode with 50M bandwith has ~90 % CPU utilization with a
 high softirq proportion.

 Using an Intel card (5300) has a lower CPU utilization (~60 %), but it's
 no option to use it because the Linux driver has no access point mode.

 Are there any tweaks to decrease the CPU utilization with the ath9k
 driver? Any recommendations for the application to send the network
 packets more efficient?
What kernel version are you using? Are you using the in-kernel ath9k or 
are you using compat-wireless? I have added quite a few performance 
optimizations over time, as I'm working with much slower MIPS CPUs than 
the octeon.
In my tests, a 300 MHz MIPS 24K CPU is good enough for handling around 
90 mbit/s of traffic with only around 70% CPU utilization.

- Felix


Now thats interesting Felix :) , how have you managed to get all these?

--SGS


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


Re: [ath9k-devel] ath9k performance issues

2011-04-05 Thread Serene Gud


On 2011-04-05 6:03 PM, Serene Gud wrote:


     On 2011-04-05 5:44 PM, Bernhard Walle wrote:
       Hello,
      
       we're using a PCIe AR9280 card on a Octeon MIPS CPU. The system
       that does the transmission has a high CPU utilization:
      
       iperf in UDP mode with 50M bandwith has ~90 % CPU utilization with a
       high softirq proportion.
      
       Using an Intel card (5300) has a lower CPU utilization (~60 %),
     but it's
       no option to use it because the Linux driver has no access point
     mode.
      
       Are there any tweaks to decrease the CPU utilization with the ath9k
       driver? Any recommendations for the application to send the network
       packets more efficient?
     What kernel version are you using? Are you using the in-kernel ath9k or
     are you using compat-wireless? I have added quite a few performance
     optimizations over time, as I'm working with much slower MIPS CPUs than
     the octeon.
     In my tests, a 300 MHz MIPS 24K CPU is good enough for handling around
     90 mbit/s of traffic with only around 70% CPU utilization.

     - Felix


     Now thats interesting Felix :) , how have you managed to get all these?
What do you mean with 'get all these'?

- Felix


Sorry, I am new to these things; what I wanted to ask you was that with the 
kind of CPU info that you have; how were you able to get 90 mbit/s of traffic. 
I am using a much faster CPU with 1.66 Ghz 512K still I usually get 65mbit/s. I 
am using in-kernel ath9K. Are you using compat-wireless? Are there any other 
changes that you have made to your system? 
I have no idea if we can make the tx bitrate stable? If you have done that, 
kindly share.

Thanks!
SGS

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


Re: [ath9k-devel] ath9k performance issues

2011-04-05 Thread Serene Gud


--- On Tue, 4/5/11, Felix Fietkau n...@openwrt.org wrote:
On 2011-04-05 6:54 PM, Serene Gud wrote:


     On 2011-04-05 6:03 PM, Serene Gud wrote:

      
       On 2011-04-05 5:44 PM, Bernhard Walle wrote:
        Hello,
       
        we're using a PCIe AR9280 card on a Octeon MIPS CPU. The system
        that does the transmission has a high CPU utilization:
       
        iperf in UDP mode with 50M bandwith has ~90 % CPU utilization
     with a
        high softirq proportion.
       
        Using an Intel card (5300) has a lower CPU utilization (~60 %),
       but it's
        no option to use it because the Linux driver has no access point
       mode.
       
        Are there any tweaks to decrease the CPU utilization with the ath9k
        driver? Any recommendations for the application to send the network
        packets more efficient?
       What kernel version are you using? Are you using the in-kernel
     ath9k or
       are you using compat-wireless? I have added quite a few performance
       optimizations over time, as I'm working with much slower MIPS
     CPUs than
       the octeon.
       In my tests, a 300 MHz MIPS 24K CPU is good enough for handling
     around
       90 mbit/s of traffic with only around 70% CPU utilization.
      
       - Felix
      
      
       Now thats interesting Felix :) , how have you managed to get all
     these?
     What do you mean with 'get all these'?

     - Felix


     Sorry, I am new to these things; what I wanted to ask you was that
     with the kind of CPU info that you have; how were you able to get 90
     mbit/s of traffic. I am using a much faster CPU with 1.66 Ghz 512K
     still I usually get 65mbit/s. I am using in-kernel ath9K. Are you
     using compat-wireless? Are there any other changes that you have
     made to your system?
The device I used was using an AR7130 MIPS CPU. I set it up as an access 
point (with 4addr/wds mode enabled), then used another device as a 
4-addr client. Both were set up for bridging wireless to wired.
After that I ran iperf TCP sessions between two laptops (each connected 
to one of the embedded devices).

Thanks Felix. I set up an Access point with master mode enables (with the help 
of hostapd). 

     I have no idea if we can make the tx bitrate stable? If you have
     done that, kindly share.
Are you using the ath9k rate control or are you using minstrel_ht? My 
tests were done with minstrel_ht. You can enable it by disabling the 
config option for the ath9k rate control.

My client had an intel card which uses it own rate control so I am using a USB 
wireless card now which uses minstrel but my Access point on the other hand 
uses ath9k_rate_control. I guess I should make them both use the same rate 
control algo. 

--SGS

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


Re: [ath9k-devel] ath9k: how to change channels dynamically

2011-04-04 Thread Serene Gud
Thanks for the information. But I need to know more details of the ath9k driver 
functionality.

--- On Mon, 4/4/11, Larry Vaden va...@texoma.net wrote:

From: Larry Vaden va...@texoma.net
Subject: Re: [ath9k-devel] ath9k: how to change channels dynamically
To: Kanika Grover serene_...@yahoo.co.in
Cc: ath9k-devel@lists.ath9k.org
Date: Monday, April 4, 2011, 8:01 AM

On Sun, Apr 3, 2011 at 5:35 PM, Kanika Grover serene_...@yahoo.co.in 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@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel