diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-01-07 04:26:14 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-01-07 04:26:14 +0000 |
commit | aa8b64d13a61dba0f686a628a0668e4b14f9bea0 (patch) | |
tree | 7ad4029112ea4e702ec4b2614208af358cffe202 /package/broadcom-wl/files/lib | |
parent | 8975e982f164c24695e69c3072ddb5254be6456d (diff) | |
download | master-187ad058-aa8b64d13a61dba0f686a628a0668e4b14f9bea0.tar.gz master-187ad058-aa8b64d13a61dba0f686a628a0668e4b14f9bea0.tar.bz2 master-187ad058-aa8b64d13a61dba0f686a628a0668e4b14f9bea0.zip |
make broadcom-wl robust against implicit kernel config changes (e.g. netfilter), upgrade it from minor version .2 to .3 (adds fixed bssid support for ad-hoc)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13912 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-wl/files/lib')
-rw-r--r-- | package/broadcom-wl/files/lib/wifi/broadcom.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/package/broadcom-wl/files/lib/wifi/broadcom.sh b/package/broadcom-wl/files/lib/wifi/broadcom.sh index e0d741b952..4c03aff04c 100644 --- a/package/broadcom-wl/files/lib/wifi/broadcom.sh +++ b/package/broadcom-wl/files/lib/wifi/broadcom.sh @@ -232,6 +232,14 @@ enable_broadcom() { append vif_post_up "monitor $monitor" "$N" append vif_post_up "passive $passive" "$N" } + + [ "$mode" = "adhoc" ] && { + config_get bssid "$vif" bssid + [ -n "$bssid" ] && { + append vif_pre_up "des_bssid $bssid" "$N" + append vif_pre_up "allow_mode 1" "$N" + } + } || append vif_pre_up "allow_mode 0" "$N" append vif_post_up "enabled 1" "$N" |