Without this patch, the
if (!config.wpa)
config.wpa_pairwise = null;
is overwritten immediately.
Signed-off-by: Leon M. Busch-George <leon@georgemail.eu>
Link: https://github.com/openwrt/openwrt/pull/21215
Signed-off-by: Robert Marko <robimarko@gmail.com>
config.wpa = v;
break;
}
- if (!config.wpa)
- config.wpa_pairwise = null;
- config.wpa_pairwise = (config.hw_mode == 'ad') ? 'GCMP' : 'CCMP';
+ config.wpa_pairwise = null;
+ if (config.wpa)
+ config.wpa_pairwise = (config.hw_mode == 'ad') ? 'GCMP' : 'CCMP';
+
config.auth_type = encryption[0] ?? 'none';
let wpa3_pairwise = config.wpa_pairwise;