[package] hostapd: allow mixed TKIP/CCMP for 11n
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 15 Feb 2011 08:49:45 +0000 (08:49 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 15 Feb 2011 08:49:45 +0000 (08:49 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25543 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/hostapd/files/hostapd.sh

index d80729f..acb92aa 100644 (file)
@@ -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