[openwrt/openwrt] wifi-scripts: only enable RSN override when parameters differ

LEDE Commits lede-commits at lists.infradead.org
Thu Nov 13 04:55:52 PST 2025


nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/ff44aa490a85c57fa0cc81873085104052b61e99

commit ff44aa490a85c57fa0cc81873085104052b61e99
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Thu Nov 13 12:25:50 2025 +0000

    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 at mediatek.com>
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 .../config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc b/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc
index dd3143f0cd..fc78bfe36f 100644
--- a/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc
+++ b/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc
@@ -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;




More information about the lede-commits mailing list