Add bssid, frag and rts options and fix mac access control Signed-off-by: Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr>
SVN-Revision: 16221
This commit is contained in:
parent
73493cbc83
commit
3d8f202050
@ -75,7 +75,13 @@ enable_prism2() {
|
|||||||
[ "$mode" = "wds" ] || iwconfig "$device" essid "$ssid"
|
[ "$mode" = "wds" ] || iwconfig "$device" essid "$ssid"
|
||||||
|
|
||||||
case "$mode" in
|
case "$mode" in
|
||||||
sta) iwconfig "$device" mode managed;;
|
sta)
|
||||||
|
iwconfig "$device" mode managed
|
||||||
|
config_get addr "$device" bssid
|
||||||
|
[ -z "$addr" ] || {
|
||||||
|
iwconfig "$device" ap "$addr"
|
||||||
|
}
|
||||||
|
;;
|
||||||
ap) iwconfig "$device" mode master;;
|
ap) iwconfig "$device" mode master;;
|
||||||
wds) iwpriv "$device" wds_add "$ssid";;
|
wds) iwpriv "$device" wds_add "$ssid";;
|
||||||
*) iwconfig "$device" mode "$mode";;
|
*) iwconfig "$device" mode "$mode";;
|
||||||
@ -86,8 +92,15 @@ enable_prism2() {
|
|||||||
[ -n "$rate" ] && iwconfig "$device" rate "${rate%%.*}"
|
[ -n "$rate" ] && iwconfig "$device" rate "${rate%%.*}"
|
||||||
|
|
||||||
config_get_bool hidden "$vif" hidden 0
|
config_get_bool hidden "$vif" hidden 0
|
||||||
iwpriv "$ifname" enh_sec "$hidden"
|
iwpriv "$device" enh_sec "$hidden"
|
||||||
|
|
||||||
|
config_get frag "$vif" frag
|
||||||
|
[ -n "$frag" ] && iwconfig "$device" frag "${frag%%.*}"
|
||||||
|
|
||||||
|
config_get rts "$vif" rts
|
||||||
|
[ -n "$rts" ] && iwconfig "$device" rts "${rts%%.*}"
|
||||||
|
|
||||||
|
config_get maclist "$vif" maclist
|
||||||
[ -n "$maclist" ] && {
|
[ -n "$maclist" ] && {
|
||||||
# flush MAC list
|
# flush MAC list
|
||||||
iwpriv "$device" maccmd 3
|
iwpriv "$device" maccmd 3
|
||||||
@ -95,6 +108,7 @@ enable_prism2() {
|
|||||||
iwpriv "$device" addmac "$mac"
|
iwpriv "$device" addmac "$mac"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
config_get macpolicy "$vif" macpolicy
|
||||||
case "$macpolicy" in
|
case "$macpolicy" in
|
||||||
allow)
|
allow)
|
||||||
iwpriv $device maccmd 2
|
iwpriv $device maccmd 2
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
|
|
||||||
|
|
||||||
# Driver interface for Host AP driver
|
# Driver interface for Host AP driver
|
||||||
#CONFIG_DRIVER_HOSTAP=y
|
CONFIG_DRIVER_HOSTAP=y
|
||||||
|
|
||||||
# Driver interface for Agere driver
|
# Driver interface for Agere driver
|
||||||
#CONFIG_DRIVER_HERMES=y
|
#CONFIG_DRIVER_HERMES=y
|
||||||
|
Loading…
Reference in New Issue
Block a user