]> www.infradead.org Git - users/hch/configfs.git/commitdiff
wifi: wlcore: store AP encryption key type
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 28 May 2024 09:18:02 +0000 (10:18 +0100)
committerKalle Valo <kvalo@kernel.org>
Tue, 18 Jun 2024 10:22:11 +0000 (13:22 +0300)
Updates for WL18xx firmware 8.9.1.x.x need to know the AP encryption
key type. Store this when a new key is set. Patch extracted from:

https://git.ti.com/cgit/wilink8-wlan/build-utilites/tree/patches/kernel_patches/4.19.38/0023-wlcore-Fixing-PN-drift-on-encrypted-link-after-recov.patch?h=r8.9&id=a2ee50aa5190ed3b334373d6cd09b1bff56ffcf7

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/E1sBsy2-00E8vo-KK@rmk-PC.armlinux.org.uk
drivers/net/wireless/ti/wlcore/main.c

index 3defe49c51207c57be554e1430e8cab9ee8ace7b..8f82666f379cdfba0fdb942864e1f625c9b548f1 100644 (file)
@@ -3537,6 +3537,10 @@ int wlcore_set_key(struct wl1271 *wl, enum set_key_cmd cmd,
                        return ret;
                }
 
+               /* Store AP encryption key type */
+               if (wlvif->bss_type == BSS_TYPE_AP_BSS)
+                       wlvif->encryption_type = key_type;
+
                /*
                 * reconfiguring arp response if the unicast (or common)
                 * encryption key type was changed