Search Linux Wireless

Switching channel in IBSS network doesn't work in ath9k

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux