Switching channel in IBSS network doesn't work in ath9k
Hello all,
I'm using the attached patch to form an IBSS network between two ath9k nodes:
IFACE=wlan0
FREQ=5200
ADDR=$1
iw dev "$IFACE" ibss leave
ip link set "$IFACE" down
ip addr flush dev "$IFACE"
iw dev "$IFACE" set type ibss
ip addr add "$ADDR"/24 dev "$IFACE"
ip link set "$IFACE" up
iw dev "$IFACE" ibss join athtest "$FREQ" fixed-freq 02:02:6F:23:12:0A
This works fine the first time. If I change the FREQ value to something else, e.g. 2462 (channel 11), the nodes don't see each other. Removing and reinserting the ath9k module solves this. Interestingly iwconfig still shows the old frequency even if iw returned successfully.
Am I doing something wrong or is there a bug somewhere?
BTW: if you try the script, it expects an IP address as argument, e.g. "bash ibss.sh 172.16.5.1"
Thanks in advance
Joerg
P.S.: Is there a way to get an overview of the current interface configuration with iw? What is the equivalent of "iwconfig wlan0"?
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com
Quoted 2 lines
P.S.: Is there a way to get an overview of the current interface
configuration with iw? What is the equivalent of "iwconfig wlan0"?
There's none. Currently, iw iw written almost like a direct representation of cfg80211 commands. For things like "iw link", the code has added a bit of magic, so that this actually sends two cfg80211 command. But in general, it's a 1:1 relation.
So, you'd need to write some "give me greatest amount of info" command newly for iw.
Signature · 1 line
http://www.holgerschurig.de
Quoted 10 lines · Holger Schurig
Quoted 2 lines
P.S.: Is there a way to get an overview of the current interface ?configuration with iw? What is the equivalent of "iwconfig wlan0"?There's none. Currently, iw iw written almost like a direct representation of cfg80211 commands. For things like "iw link", the code has added a bit of magic, so that this actually sends two cfg80211 command. But in general, it's a 1:1 relation.
So, you'd need to write some "give me greatest amount of info" command newly for iw.
Actually I think a simple 'iw link' to do this for all interfaces would be good. I just haven't gotten around to it. I should be possible without upstream changes I believe.
Luis
Quoted 3 lines
Actually I think a simple 'iw link' to do this for all interfaces would be good. I just haven't gotten around to it. I should be possible without upstream changes I believe.
Do you think that "iw link" should also show then info when the device is in monitor mode (e.g. return the flags) or in IBSS mode? And probably also reporting parts of the survey data, e.g. noise floor?
That would be the equivalent of a "give me the greatest amount of info quickly" :-)
Signature · 1 line
http://www.holgerschurig.de
Quoted 10 lines · Holger Schurig
Quoted 3 lines
Actually I think a simple 'iw link' to do this for all interfaces would be good. I just haven't gotten around to it. I should be possible without upstream changes I believe.
Do you think that "iw link" should also show then info when the device is in monitor mode (e.g. return the flags) or in IBSS mode? ?And probably also reporting parts of the survey data, e.g. noise floor?
That would be the equivalent of a "give me the greatest amount of info quickly" :-)
I do but johill is the maintainer, see what he thinks :)
Luis
The iw feature was a side note. What about the channel switch? Can you reproduce this? Is this supposed to work?
--
Regards
Joerg
----- Ursprüngliche Mail ----
Quoted 16 lines
Von: Luis R. Rodriguez <[email protected]>
An: Holger Schurig <[email protected]>
CC: Joerg Pommnitz <[email protected]>; [email protected]; [email protected]
Gesendet: Freitag, den 11. Dezember 2009, 17:41:48 Uhr
Betreff: Re: Switching channel in IBSS network doesn't work in ath9kQuoted 8 lines · Holger Schurig
Quoted 3 lines
Actually I think a simple 'iw link' to do this for all interfaces would be good. I just haven't gotten around to it. I should be possible without upstream changes I believe.
Do you think that "iw link" should also show then info when the device is in monitor mode (e.g. return the flags) or in IBSS mode? And probably also reporting parts of the survey data, e.g. noise floor?
Quoted 6 lines
Quoted 2 lines
That would be the equivalent of a "give me the greatest amount of info quickly" :-)
I do but johill is the maintainer, see what he thinks :)
Luis
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com