hostapd: enforce CCMP WPA cipher if hwmode is 11ng or 11na
SVN-Revision: 22000
This commit is contained in:
parent
6c48e48165
commit
5f895af9fb
1 changed files with 8 additions and 0 deletions
|
@ -7,6 +7,9 @@ hostapd_set_bss_options() {
|
||||||
config_get wpa_group_rekey "$vif" wpa_group_rekey
|
config_get wpa_group_rekey "$vif" wpa_group_rekey
|
||||||
config_get_bool ap_isolate "$vif" isolate 0
|
config_get_bool ap_isolate "$vif" isolate 0
|
||||||
|
|
||||||
|
config_get device "$vif" device
|
||||||
|
config_get hwmode "$device" hwmode
|
||||||
|
|
||||||
if [ "$ap_isolate" -gt 0 ]; then
|
if [ "$ap_isolate" -gt 0 ]; then
|
||||||
append "$var" "ap_isolate=$ap_isolate" "$N"
|
append "$var" "ap_isolate=$ap_isolate" "$N"
|
||||||
fi
|
fi
|
||||||
|
@ -43,6 +46,11 @@ hostapd_set_bss_options() {
|
||||||
*tkip) crypto="TKIP";;
|
*tkip) crypto="TKIP";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# enforce CCMP for 11ng and 11na
|
||||||
|
case "$hwmode" in
|
||||||
|
*ng|*na) crypto="CCMP";;
|
||||||
|
esac
|
||||||
|
|
||||||
# use crypto/auth settings for building the hostapd config
|
# use crypto/auth settings for building the hostapd config
|
||||||
case "$enc" in
|
case "$enc" in
|
||||||
*psk*)
|
*psk*)
|
||||||
|
|
Loading…
Reference in a new issue