diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-09-12 15:49:32 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-09-12 15:49:32 +0000 |
commit | 2223f6edd948ee1be00dfe412b9160ee31d08c0b (patch) | |
tree | 19dad4dbbbe426416111de1fdf573088df18c8e1 /package/broadcom-wl | |
parent | 91d6f27676c4d2dc432ea32729cc9dadc55e4d4c (diff) |
Add macfiltering to broadcom-wl
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8763 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-wl')
-rw-r--r-- | package/broadcom-wl/files/lib/wifi/broadcom.sh | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/package/broadcom-wl/files/lib/wifi/broadcom.sh b/package/broadcom-wl/files/lib/wifi/broadcom.sh index 61672472d..cb35ef1f7 100644 --- a/package/broadcom-wl/files/lib/wifi/broadcom.sh +++ b/package/broadcom-wl/files/lib/wifi/broadcom.sh @@ -5,6 +5,7 @@ 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 @@ -68,6 +69,18 @@ scan_broadcom() { radio=0 ;; esac + macfilter=0 + case "$macfilter" in + allow|2) + macfilter=allow; + ;; + deny|1) + macfilter=deny; + ;; + disable|0) + macfilter=disabled; + ;; + esac } disable_broadcom() { @@ -97,6 +110,8 @@ enable_broadcom() { config_get slottime "$device" slottime config_get rxant "$device" rxant config_get txant "$device" txant + config_get macfilter "$device" macfilter + config_get maclist "$device" maclist local vif_pre_up vif_post_up vif_do_up _c=0 @@ -232,8 +247,8 @@ rxant ${rxant:-3} txant ${txant:-3} radio ${radio:-1} -macfilter 0 -maclist none +macfilter ${macfilter:-disabled} +maclist ${maclist:-none} wds none ${wds:+wds $wds} ${channel:+channel $channel} |