aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-10-15 17:25:07 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-10-15 17:25:07 +0000
commite27b59f1301d965bb2f4bd3831d3d86d4662062d (patch)
tree604313d5aa7dd776ccf6acb8d4728f8c0f0ef931 /package
parent82d1c7f615b64508df592271b68a3d4f60df0762 (diff)
downloadupstream-e27b59f1301d965bb2f4bd3831d3d86d4662062d.tar.gz
upstream-e27b59f1301d965bb2f4bd3831d3d86d4662062d.tar.bz2
upstream-e27b59f1301d965bb2f4bd3831d3d86d4662062d.zip
add support for wds vifs for broadcom wl
SVN-Revision: 5122
Diffstat (limited to 'package')
-rw-r--r--package/broadcom-wl/files/lib/wifi/broadcom.sh9
1 files changed, 8 insertions, 1 deletions
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}