mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-02-10 12:52:56 +01:00
wifi-scripts: only enable RSN override when parameters differ
When encryption is set to 'sae' without explicit pairwise cipher in non-HE/EHT mode, both the main RSNE and override RSNE would advertise identical parameters (SAE+CCMP+MFP=2), adding unnecessary overhead. Check that the pairwise ciphers differ before enabling override. This preserves the intended behavior for HE/EHT modes (GCMP-256+CCMP vs CCMP) while avoiding pointless override IEs. Reported-by: Michael-cy Lee (李峻宇) <Michael-cy.Lee@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
e81936f5bc
commit
ff44aa490a
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ export function parse_encryption(config, dev_config) {
|
|||
if (!wpa3_pairwise)
|
||||
break;
|
||||
|
||||
if (config.rsn_override)
|
||||
if (config.rsn_override && wpa3_pairwise != config.wpa_pairwise)
|
||||
config.rsn_override_pairwise = wpa3_pairwise;
|
||||
else
|
||||
config.wpa_pairwise = wpa3_pairwise;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue