[RAMEN9610-20759]wlbt: Changes to set key type as IGTK for BIP_GMAC ciphers
authorSushant B Butta <b.sushant@samsung.com>
Wed, 16 Oct 2019 14:53:44 +0000 (20:23 +0530)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:37 +0000 (20:23 +0300)
Currently driver sets the key type as IGTK for cipher suite :
(0x000FAC, 6 :WLAN_CIPHER_SUITE_AES_CMAC).
Driver should set the key type to IGTK for cipher suites
WLAN_CIPHER_SUITE_BIP_GMAC_128, WLAN_CIPHER_SUITE_BIP_GMAC_256 also.

Change-Id: Idfeb67fe9c170a12ebba89d59c2235a1b37f36e5
SCSC-Bug-Id: HOST-11211
Signed-off-by: Sushant B Butta <b.sushant@samsung.com>
drivers/net/wireless/scsc/cfg80211_ops.c

index 2257b2a3435174f1576691b21e935ea019c1c941..14bc103948401824064426e087072f30db2d0bd2 100755 (executable)
@@ -257,7 +257,8 @@ int slsi_add_key(struct wiphy *wiphy, struct net_device *dev,
                        r = -EINVAL;
                        goto exit;
                }
-       } else if (params->cipher == WLAN_CIPHER_SUITE_AES_CMAC) {
+       } else if (params->cipher == WLAN_CIPHER_SUITE_AES_CMAC || params->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_128 ||
+                               params->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_256) {
                key_type = FAPI_KEYTYPE_IGTK;
        }