# TODO: move this parsing function somewhere generic, so that
# later it can be reused by drivers that don't use hostapd
-
+
# crypto defaults: WPA2 vs WPA1
case "$enc" in
wpa2*|WPA2*|*PSK2*|*psk2*)
*tkip|*TKIP) crypto="TKIP";;
*aes|*AES|*ccmp|*CCMP) crypto="CCMP";;
esac
-
+
# use crypto/auth settings for building the hostapd config
case "$enc" in
*psk*|*PSK*)