X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=package%2Fbroadcom-wl%2Ffiles%2Flib%2Fwifi%2Fbroadcom.sh;h=4f96b251bebb6fbb43dcf278fdde0d020651ebb7;hp=2250ba8799e013bd0473a904f420f88757eff571;hb=eb163997457e834e2d3bfbead2dc7cde3b2be261;hpb=a372e5f732b133be5bfbc59b26bef051464cdba2 diff --git a/package/broadcom-wl/files/lib/wifi/broadcom.sh b/package/broadcom-wl/files/lib/wifi/broadcom.sh index 2250ba8799..4f96b251be 100644 --- a/package/broadcom-wl/files/lib/wifi/broadcom.sh +++ b/package/broadcom-wl/files/lib/wifi/broadcom.sh @@ -32,6 +32,7 @@ bridge_interface() {( scan_broadcom() { local device="$1" + local wds= config_get vifs "$device" vifs for vif in $vifs; do @@ -49,9 +50,14 @@ scan_broadcom() { ap=1 ap_if="${ap_if:+$ap_if }$vif" ;; + wds) + config_get addr "$vif" bssid + [ -z "$addr" ] || append wds "$addr" + ;; *) echo "$device($vif): Invalid mode";; esac done + config_set "$device" wds "$wds" local _c= for vif in ${adhoc_if:-$sta_if $ap_if}; do @@ -111,6 +117,7 @@ enable_broadcom() { config_get channel "$device" channel config_get country "$device" country config_get maxassoc "$device" maxassoc + config_get wds "$device" wds _c=0 nas="$(which nas)" @@ -199,7 +206,7 @@ ${wet:+wet 1} radio ${radio:-1} macfilter 0 maclist none -wds none +wds ${wds:-none} channel ${channel:-0} country ${country:-IL0} maxassoc ${maxassoc:-128}