On 2011-07-18 3:54 PM, Daniel Golle wrote:
Hi!
When using madwifi, the txpowerlist and freqlist seem to be uninitialized
unless a vif is created and ifup'ed.
Example for txpowerlist:
root@OpenWrt:~# iwinfo wifi0 txpowerlist
* 0 dBm ( 1 mW)
10 dBm ( 10 mW)
15 dBm ( 31 mW)
20 dBm ( 100 mW)
25 dBm ( 316 mW)
30 dBm (1000 mW)
35 dBm (3162 mW)
40 dBm (10000 mW)
root@OpenWrt:~# wlanconfig ath0 create wlandev wifi0 mode sta
root@OpenWrt:~# ifconfig ath0 up
root@OpenWrt:~# wlanconfig ath0 destroy
root@OpenWrt:~# iwinfo wifi0 txpowerlist
* 0 dBm ( 1 mW)
8 dBm ( 6 mW)
10 dBm ( 10 mW)
12 dBm ( 15 mW)
14 dBm ( 25 mW)
16 dBm ( 39 mW)
18 dBm ( 63 mW)
20 dBm ( 100 mW)
To work-around this bug, I created a simple way to initialize the wifi driver
even if the device is disabled and/or there are no vifs, so they there are sane
values in the webinterface from the first moment on and the users won't get too
confused.
I guess the right way[tm] to do this would be fixing madwifi, but we all know
that won't happen...
How about putting this into a separate init script instead of adding
hackery to a generic script?
- Felix
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel