Fix macfiltering for broadcom devices (#2822)

SVN-Revision: 9805
This commit is contained in:
Florian Fainelli 2007-12-19 17:49:51 +00:00
parent a952a8dac6
commit 9065915d0c

View file

@ -5,7 +5,6 @@ scan_broadcom() {
local wds local wds
local adhoc sta apmode local adhoc sta apmode
local adhoc_if sta_if ap_if local adhoc_if sta_if ap_if
local macfilter
config_get vifs "$device" vifs config_get vifs "$device" vifs
for vif in $vifs; do for vif in $vifs; do
@ -69,18 +68,6 @@ scan_broadcom() {
radio=0 radio=0
;; ;;
esac esac
macfilter=0
case "$macfilter" in
allow|2)
macfilter=2;
;;
deny|1)
macfilter=1;
;;
disable|0)
macfilter=0;
;;
esac
} }
disable_broadcom() { disable_broadcom() {
@ -128,6 +115,18 @@ enable_broadcom() {
slottime="${slottime:--1}" 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 for vif in $vifs; do
config_get mode "$vif" mode config_get mode "$vif" mode
append vif_pre_up "vif $_c" "$N" append vif_pre_up "vif $_c" "$N"