add support for wds vifs for broadcom wl

SVN-Revision: 5122
This commit is contained in:
Felix Fietkau 2006-10-15 17:25:07 +00:00
parent 82d1c7f615
commit e27b59f130

View file

@ -32,6 +32,7 @@ bridge_interface() {(
scan_broadcom() { scan_broadcom() {
local device="$1" local device="$1"
local wds=
config_get vifs "$device" vifs config_get vifs "$device" vifs
for vif in $vifs; do for vif in $vifs; do
@ -49,9 +50,14 @@ scan_broadcom() {
ap=1 ap=1
ap_if="${ap_if:+$ap_if }$vif" ap_if="${ap_if:+$ap_if }$vif"
;; ;;
wds)
config_get addr "$vif" bssid
[ -z "$addr" ] || append wds "$addr"
;;
*) echo "$device($vif): Invalid mode";; *) echo "$device($vif): Invalid mode";;
esac esac
done done
config_set "$device" wds "$wds"
local _c= local _c=
for vif in ${adhoc_if:-$sta_if $ap_if}; do for vif in ${adhoc_if:-$sta_if $ap_if}; do
@ -111,6 +117,7 @@ enable_broadcom() {
config_get channel "$device" channel config_get channel "$device" channel
config_get country "$device" country config_get country "$device" country
config_get maxassoc "$device" maxassoc config_get maxassoc "$device" maxassoc
config_get wds "$device" wds
_c=0 _c=0
nas="$(which nas)" nas="$(which nas)"
@ -199,7 +206,7 @@ ${wet:+wet 1}
radio ${radio:-1} radio ${radio:-1}
macfilter 0 macfilter 0
maclist none maclist none
wds none wds ${wds:-none}
channel ${channel:-0} channel ${channel:-0}
country ${country:-IL0} country ${country:-IL0}
maxassoc ${maxassoc:-128} maxassoc ${maxassoc:-128}