hostapd: wpa_supplicant: Enable proper GCMP cipher support
authorRobert Marko <robimarko@gmail.com>
Sun, 17 Mar 2019 20:01:17 +0000 (21:01 +0100)
committerAlexander Couzens <lynxis@fe80.eu>
Sun, 20 Sep 2020 00:48:00 +0000 (02:48 +0200)
This patch enables hostapd.sh to properly configure wpa_supplicant
for when GCMP is used as cipher in station mode.
Without this wpa_supplicant will be unable to connect to AP.
This is needed for wil6210 as it does not support CCMP.

Signed-off-by: Robert Marko <robimarko@gmail.com>
package/network/services/hostapd/files/hostapd.sh

index b33e8e1edc047812c38899b8aa0fb4bc512d01e0..2b37597e6b325b1ff94fbd0754409b9fa116b8ed 100644 (file)
@@ -1162,6 +1162,14 @@ wpa_supplicant_add_network() {
                ;;
        esac
 
+       case "$wpa_cipher" in
+               GCMP)
+                       append network_data "pairwise=GCMP" "$N$T"
+                       append network_data "group=GCMP" "$N$T"
+               ;;
+               *) ;;
+       esac
+
        [ "$mode" = mesh ] || {
                case "$wpa" in
                        1)