wifi-scripts: only enable RSN override when parameters differ
authorFelix Fietkau <[email protected]>
Thu, 13 Nov 2025 12:25:50 +0000 (12:25 +0000)
committerFelix Fietkau <[email protected]>
Thu, 13 Nov 2025 12:26:59 +0000 (12:26 +0000)
commitff44aa490a85c57fa0cc81873085104052b61e99
tree955a5424cb5f6c33cc6b4d3aa517dd07ae5106ec
parente81936f5bc140292833111d455df53e28c39da64
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 (李峻宇) <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc