hiya,

I have svn trunk compiled locally for a wgt634u (target-mipsel_uClibc-0.9.29)
with ath_pci from kmod-madwifi_2.6.25.20+r3314-brcm47xx-2_mipsel.ipk 

The /etc/config/wirless sets up 2 "vaps" - ath0 is an ap and ath1 is ahdemo.
wifi-device "option channel 3" does not set the channel on the vaps (they 
remain at channel 1).


Manually running iwconfig athN channel 3 reveals that setting ath0 has no 
effect; setting ath1 does set the channel.  ?!


I was able to get the config to work by reverting madwifi.sh back to set the 
channel on all devices, not just the first.

--- package/madwifi/files/lib/wifi/madwifi.sh   (revision 14412)
+++ package/madwifi/files/lib/wifi/madwifi.sh   (working copy)
@@ -104,7 +104,6 @@
                }
                config_set "$vif" ifname "$ifname"

-               # only need to change freq band and channel on the first vif
                config_get hwmode "$device" hwmode
                [ -z "$hwmode" ] && config_get hwmode "$device" mode

@@ -123,9 +122,7 @@
                iwpriv "$ifname" mode "$hwmode"
                iwpriv "$ifname" pureg "$pureg"

-               [ "$first" = 1 ] && {
-                       iwconfig "$ifname" channel "$channel" >/dev/null 
2>/dev/null
-               }
+               iwconfig "$ifname" channel "$channel" >/dev/null 2>/dev/null

                config_get_bool hidden "$vif" hidden 0
                iwpriv "$ifname" hide_ssid "$hidden"

Am I missing something obvious?


Thanks.


_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to