summaryrefslogtreecommitdiff
path: root/package/broadcom-wl/files/lib
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-01-07 04:26:14 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-01-07 04:26:14 +0000
commit59a00d52a96ad6c30c607bbcecca7d4ed6e9d9c6 (patch)
treeb26429d31285b2d27af2abff074b1679cf84d3c1 /package/broadcom-wl/files/lib
parent06911d77e50073285edaf8a32a552c8800862e4e (diff)
downloadmtk-20170518-59a00d52a96ad6c30c607bbcecca7d4ed6e9d9c6.zip
mtk-20170518-59a00d52a96ad6c30c607bbcecca7d4ed6e9d9c6.tar.gz
mtk-20170518-59a00d52a96ad6c30c607bbcecca7d4ed6e9d9c6.tar.bz2
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)
SVN-Revision: 13912
Diffstat (limited to 'package/broadcom-wl/files/lib')
-rw-r--r--package/broadcom-wl/files/lib/wifi/broadcom.sh8
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 e0d741b..4c03aff 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"