madwifi: allow disabling of hardware ibss merges by setting the wifi-iface option...
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 16 Oct 2008 21:26:24 +0000 (21:26 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 16 Oct 2008 21:26:24 +0000 (21:26 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12993 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/madwifi/files/lib/wifi/madwifi.sh

index df34531..e4e9982 100755 (executable)
@@ -85,7 +85,10 @@ enable_atheros() {
                config_get eap_type "$vif" eap_type
                config_get mode "$vif" mode
                
-               [ "$mode" = sta ] && config_get nosbeacon "$device" nosbeacon
+               case "$mode" in
+                       sta) config_get nosbeacon "$device" nosbeacon;;
+                       adhoc) config_get nosbeacon "$vif" sw_merge;;
+               esac
                
                config_get ifname "$vif" ifname
                ifname=$(wlanconfig "$ifname" create wlandev "$device" wlanmode "$mode" ${nosbeacon:+nosbeacon})
This page took 0.027698 seconds and 4 git commands to generate.