]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
wifi-scripts: map the configured pairwise cipher for station mode
authorFelix Fietkau <nbd@nbd.name>
Fri, 10 Jul 2026 12:46:09 +0000 (14:46 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 16 Jul 2026 09:50:22 +0000 (11:50 +0200)
Only an exact GCMP cipher was mapped to the network block; other explicit
ciphers (CCMP-256, GCMP-256, TKIP variants) left pairwise unset, so
wpa_supplicant offered its default set and could not associate with an AP
restricted to the configured cipher. Pass wpa_pairwise through, keeping the
GCMP special case that also pins group.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/supplicant.uc

index 9fc44fb4f255b2ac1263a2679b1508fffe257133..a104538c098331f0a1fca83f7469cc2e89889046 100644 (file)
@@ -192,6 +192,8 @@ function setup_sta(data, config) {
        if (config.wpa_pairwise == 'GCMP') {
                config.pairwise = 'GCMP';
                config.group = 'GCMP';
+       } else if (config.wpa_pairwise) {
+               config.pairwise = config.wpa_pairwise;
        }
 
        config.key_mgmt ??= 'NONE';