Staging: rtl8192e: Rename variable PMKCacheIdx
authorTree Davies <tdavies@darkphysics.net>
Sat, 6 Jan 2024 05:55:54 +0000 (21:55 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jan 2024 18:17:11 +0000 (10:17 -0800)
Rename variable PMKCacheIdx to pmk_cache_idx to fix checkpatch
warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20240106055556.430948-20-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_softmac.c

index 5305486c95946ef2be664db7492c8a0f19d7ba68..533af4b28aa744bd30695991cd970423a8886f57 100644 (file)
@@ -700,7 +700,7 @@ rtllib_association_req(struct rtllib_network *beacon,
        unsigned int cxvernum_ie_len = 0;
        struct lib80211_crypt_data *crypt;
        int encrypt;
-       int     PMKCacheIdx;
+       int     pmk_cache_idx;
 
        unsigned int rate_len = (beacon->rates_len ?
                                (beacon->rates_len + 2) : 0) +
@@ -748,8 +748,8 @@ rtllib_association_req(struct rtllib_network *beacon,
        if (beacon->BssCcxVerNumber >= 2)
                cxvernum_ie_len = 5 + 2;
 
-       PMKCacheIdx = SecIsInPMKIDList(ieee, ieee->current_network.bssid);
-       if (PMKCacheIdx >= 0) {
+       pmk_cache_idx = SecIsInPMKIDList(ieee, ieee->current_network.bssid);
+       if (pmk_cache_idx >= 0) {
                wpa_ie_len += 18;
                netdev_info(ieee->dev, "[PMK cache]: WPA2 IE length: %x\n",
                            wpa_ie_len);
@@ -878,11 +878,11 @@ rtllib_association_req(struct rtllib_network *beacon,
        if (wpa_ie_len) {
                skb_put_data(skb, ieee->wpa_ie, ieee->wpa_ie_len);
 
-               if (PMKCacheIdx >= 0) {
+               if (pmk_cache_idx >= 0) {
                        tag = skb_put(skb, 18);
                        *tag = 1;
                        *(tag + 1) = 0;
-                       memcpy((tag + 2), &ieee->PMKIDList[PMKCacheIdx].PMKID,
+                       memcpy((tag + 2), &ieee->PMKIDList[pmk_cache_idx].PMKID,
                               16);
                }
        }