netifd: wireless: default to GCMP WPA cipher on 802.11ad
authorDaniel Golle <daniel@makrotopia.org>
Tue, 5 Jan 2021 01:11:21 +0000 (01:11 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 5 Jan 2021 02:10:55 +0000 (02:10 +0000)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
scripts/netifd-wireless.sh

index 73bce3d3e2b1170cbbd87f729e56cdc9a9c5752a..d915402a8d3ff38925efaf6664d7dcc55747ce30 100644 (file)
@@ -208,7 +208,13 @@ wireless_vif_parse_encryption() {
        auth_mode_open=1
        auth_mode_shared=0
        auth_type=none
-       wpa_cipher=CCMP
+
+       if [ "$hwmode" = "ad" ]; then
+               wpa_cipher="GCMP"
+       else
+               wpa_cipher="CCMP"
+       fi
+
        case "$encryption" in
                *tkip+aes|*tkip+ccmp|*aes+tkip|*ccmp+tkip) wpa_cipher="CCMP TKIP";;
                *aes|*ccmp) wpa_cipher="CCMP";;