[package] mac80211: Declare some variables as local and remove unused
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>
Mon, 29 Jun 2009 21:13:10 +0000 (21:13 +0000)
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>
Mon, 29 Jun 2009 21:13:10 +0000 (21:13 +0000)
SVN-Revision: 16627

package/mac80211/files/lib/wifi/mac80211.sh

index 2721e4d7cbc61c3161615bc83764fe9c0fb8b050..5d4fcee2713206697a4484652cb9fe0979b304d1 100644 (file)
@@ -3,7 +3,7 @@ append DRIVERS "mac80211"
 
 scan_mac80211() {
        local device="$1"
-       local adhoc sta ap
+       local adhoc sta ap monitor mesh
 
        config_get vifs "$device" vifs
        for vif in $vifs; do
@@ -20,7 +20,7 @@ scan_mac80211() {
                esac
        done
 
-       config_set "$device" vifs "${ap:+$ap }${adhoc:+$adhoc }${ahdemo:+$ahdemo }${sta:+$sta }${wds:+$wds }${monitor:+$monitor }${mesh:+$mesh}"
+       config_set "$device" vifs "${ap:+$ap }${adhoc:+$adhoc }${sta:+$sta }${monitor:+$monitor }${mesh:+$mesh}"
 }