aboutsummaryrefslogtreecommitdiffstats
path: root/package/broadcom-wl
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-12-19 17:49:51 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-12-19 17:49:51 +0000
commit1dec6c4b4620417d3acc870b2ce3dfcc2cf090d2 (patch)
treed9c4b314fb453534395027e4456559d77fba31ec /package/broadcom-wl
parent2073a9161a33331ca02d8c9fa084fefbd141ca40 (diff)
downloadupstream-1dec6c4b4620417d3acc870b2ce3dfcc2cf090d2.tar.gz
upstream-1dec6c4b4620417d3acc870b2ce3dfcc2cf090d2.tar.bz2
upstream-1dec6c4b4620417d3acc870b2ce3dfcc2cf090d2.zip
Fix macfiltering for broadcom devices (#2822)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9805 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-wl')
-rw-r--r--package/broadcom-wl/files/lib/wifi/broadcom.sh25
1 files changed, 12 insertions, 13 deletions
diff --git a/package/broadcom-wl/files/lib/wifi/broadcom.sh b/package/broadcom-wl/files/lib/wifi/broadcom.sh
index 0bffb42908..f52e9b0d75 100644
--- a/package/broadcom-wl/files/lib/wifi/broadcom.sh
+++ b/package/broadcom-wl/files/lib/wifi/broadcom.sh
@@ -5,7 +5,6 @@ scan_broadcom() {
local wds
local adhoc sta apmode
local adhoc_if sta_if ap_if
- local macfilter
config_get vifs "$device" vifs
for vif in $vifs; do
@@ -69,18 +68,6 @@ scan_broadcom() {
radio=0
;;
esac
- macfilter=0
- case "$macfilter" in
- allow|2)
- macfilter=2;
- ;;
- deny|1)
- macfilter=1;
- ;;
- disable|0)
- macfilter=0;
- ;;
- esac
}
disable_broadcom() {
@@ -127,6 +114,18 @@ enable_broadcom() {
} || {
slottime="${slottime:--1}"
}
+
+ case "$macfilter" in
+ allow|2)
+ macfilter=2;
+ ;;
+ deny|1)
+ macfilter=1;
+ ;;
+ disable|none|0)
+ macfilter=0;
+ ;;
+ esac
for vif in $vifs; do
config_get mode "$vif" mode