Folks, I have a trouble setting the channel on Buffalo WZR-HP-G300NH (says its AR9100) and WHR-HP-G300N (says its AR9280) on recent revision of the OpenWrt (r37180) with compat-wireless-2013-06-27.
The problem is that I CAN NOT set the channel on an interface,
regardless of the up/down state of the interface.
--------
// Make sure I start with fresh state
root@gh3:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1D:73:B3:3E:90
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:207 errors:0 dropped:1 overruns:59125 frame:0
TX packets:65 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:38989 (38.0 KiB) TX bytes:16045 (15.6 KiB)
Interrupt:4
eth0.1 Link encap:Ethernet HWaddr 00:1D:73:B3:3E:90
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:196 errors:0 dropped:0 overruns:0 frame:0
TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:32203 (31.4 KiB) TX bytes:14746 (14.4 KiB)
eth1 Link encap:Ethernet HWaddr 00:1D:73:B3:3E:91
inet addr:192.168.0.38 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:981 errors:0 dropped:80 overruns:0 frame:0
TX packets:285 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:171850 (167.8 KiB) TX bytes:34008 (33.2 KiB)
Interrupt:5
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1536 (1.5 KiB) TX bytes:1536 (1.5 KiB)
// Create a managed interface
root@gh3:~# iw phy0 interface add wlan0 type managed
// Confirm its creation and state (down)
root@gh3:~# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:1D:73:B3:3E:90
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
// Try to set the channel
root@gh3:~# iw wlan0 set channel 11
command failed: Device or resource busy (-16)
// Bring the interface up, and set channel
root@gh3:~# ifconfig wlan0 up
root@gh3:~# iw wlan0 set channel 11
command failed: Device or resource busy (-16)
// Try it directly on phy
root@gh3:~# iw phy0 set channel 11
command failed: Device or resource busy (-16)
--------
After some attempts, I found out that the only way to set the channel
is to do it through a monitor interface that is UP, and all other interfaces
on the original phy down.
--------
root@gh3:~# iw wlan0 interface add wlan0.mon type monitor
root@gh3:~# ifconfig wlan0 down
root@gh3:~# ifconfig wlan0.mon up
root@gh3:~# iw wlan0.mon set channel 11
root@gh3:~#
--------
BTW,
--------
root@gh3:~# iw --version
iw version 3.10
--------
So, is this a broken iw? or broken ath9k driver?
Oh, and one more (maybe) trivial question.
How can I find out the current state (e.g. channel) of a phy or interface
with iw?
Any comments and pointers are welcome.
--- shinoda
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
