[backfire] merge r25543
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 15 Feb 2011 08:50:45 +0000 (08:50 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 15 Feb 2011 08:50:45 +0000 (08:50 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@25544 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/hostapd/files/hostapd.sh

index db08e7bce2b131a9a044128985177166043853b0..98c3f61e5889e212248e4ce7e0d6671cee5e3e69 100644 (file)
@@ -47,8 +47,8 @@ hostapd_set_bss_options() {
        esac
 
        # enforce CCMP for 11ng and 11na
        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
        esac
 
        # use crypto/auth settings for building the hostapd config