aboutsummaryrefslogtreecommitdiffstats
path: root/package/hostapd/files/hostapd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'package/hostapd/files/hostapd.sh')
-rw-r--r--package/hostapd/files/hostapd.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh
index d80729f6c9..acb92aac17 100644
--- a/package/hostapd/files/hostapd.sh
+++ b/package/hostapd/files/hostapd.sh
@@ -50,8 +50,8 @@ hostapd_set_bss_options() {
esac
# enforce CCMP for 11ng and 11na
- case "$hwmode" in
- *ng|*na) crypto="CCMP";;
+ case "$hwmode:$crypto" in
+ *ng:TKIP|*na:TKIP) crypto="CCMP TKIP";;
esac
# use crypto/auth settings for building the hostapd config