aboutsummaryrefslogtreecommitdiffstats
path: root/package/hostapd/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-06-30 21:24:30 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-06-30 21:24:30 +0000
commit5f895af9fb2a65c6e51ac0e6e6085cf95ae9d1b9 (patch)
tree33511c27baabffa2767100b974887e43ad23729e /package/hostapd/files
parent6c48e481657b83e2ca8e6b1a2d2583fea487eb03 (diff)
downloadupstream-5f895af9fb2a65c6e51ac0e6e6085cf95ae9d1b9.tar.gz
upstream-5f895af9fb2a65c6e51ac0e6e6085cf95ae9d1b9.tar.bz2
upstream-5f895af9fb2a65c6e51ac0e6e6085cf95ae9d1b9.zip
hostapd: enforce CCMP WPA cipher if hwmode is 11ng or 11na
SVN-Revision: 22000
Diffstat (limited to 'package/hostapd/files')
-rw-r--r--package/hostapd/files/hostapd.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh
index 9edb070814..fdb047be6a 100644
--- a/package/hostapd/files/hostapd.sh
+++ b/package/hostapd/files/hostapd.sh
@@ -7,6 +7,9 @@ hostapd_set_bss_options() {
config_get wpa_group_rekey "$vif" wpa_group_rekey
config_get_bool ap_isolate "$vif" isolate 0
+ config_get device "$vif" device
+ config_get hwmode "$device" hwmode
+
if [ "$ap_isolate" -gt 0 ]; then
append "$var" "ap_isolate=$ap_isolate" "$N"
fi
@@ -43,6 +46,11 @@ hostapd_set_bss_options() {
*tkip) crypto="TKIP";;
esac
+ # enforce CCMP for 11ng and 11na
+ case "$hwmode" in
+ *ng|*na) crypto="CCMP";;
+ esac
+
# use crypto/auth settings for building the hostapd config
case "$enc" in
*psk*)