Staging: rtl8192e: Rename variable PeerHTCapBuf
authorTree Davies <tdavies@darkphysics.net>
Fri, 26 Jan 2024 22:30:55 +0000 (14:30 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Feb 2024 16:28:17 +0000 (17:28 +0100)
Rename variable PeerHTCapBuf to peer_ht_cap_buf to fix checkpatch
warning Avoid CamelCase.

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

index 68577bffb936d079279e95ac4ee8e372da6c34d4..29e1206078fe6e10ad653951bacdc358dad19e8a 100644 (file)
@@ -99,7 +99,7 @@ struct rt_hi_throughput {
        u8 cur_short_gi_20mhz;
        enum ht_spec_ver peer_ht_spec_ver;
        struct ht_capab_ele SelfHTCap;
-       u8 PeerHTCapBuf[32];
+       u8 peer_ht_cap_buf[32];
        u8 PeerHTInfoBuf[32];
        u8 ampdu_enable;
        u8 current_ampdu_enable;
index 6d0912f90198f463685e9788f480f1efe6ae187f..cea3284dd7873cc1213e3eb135c2338f34b2352e 100644 (file)
@@ -437,10 +437,10 @@ void ht_on_assoc_rsp(struct rtllib_device *ieee)
        }
        netdev_dbg(ieee->dev, "%s(): HT_ENABLE\n", __func__);
 
-       if (!memcmp(ht_info->PeerHTCapBuf, EWC11NHTCap, sizeof(EWC11NHTCap)))
-               pPeerHTCap = (struct ht_capab_ele *)(&ht_info->PeerHTCapBuf[4]);
+       if (!memcmp(ht_info->peer_ht_cap_buf, EWC11NHTCap, sizeof(EWC11NHTCap)))
+               pPeerHTCap = (struct ht_capab_ele *)(&ht_info->peer_ht_cap_buf[4]);
        else
-               pPeerHTCap = (struct ht_capab_ele *)(ht_info->PeerHTCapBuf);
+               pPeerHTCap = (struct ht_capab_ele *)(ht_info->peer_ht_cap_buf);
 
        if (!memcmp(ht_info->PeerHTInfoBuf, EWC11NHTInfo, sizeof(EWC11NHTInfo)))
                pPeerHTInfo = (struct ht_info_ele *)
@@ -518,8 +518,8 @@ void ht_initialize_ht_info(struct rtllib_device *ieee)
 
        memset((void *)(&ht_info->SelfHTCap), 0,
               sizeof(ht_info->SelfHTCap));
-       memset((void *)(&ht_info->PeerHTCapBuf), 0,
-              sizeof(ht_info->PeerHTCapBuf));
+       memset((void *)(&ht_info->peer_ht_cap_buf), 0,
+              sizeof(ht_info->peer_ht_cap_buf));
        memset((void *)(&ht_info->PeerHTInfoBuf), 0,
               sizeof(ht_info->PeerHTInfoBuf));
 
@@ -572,8 +572,8 @@ void ht_reset_self_and_save_peer_setting(struct rtllib_device *ieee,
                ht_info->peer_ht_spec_ver = pNetwork->bssht.bd_ht_spec_ver;
 
                if (pNetwork->bssht.bd_ht_cap_len > 0 &&
-                   pNetwork->bssht.bd_ht_cap_len <= sizeof(ht_info->PeerHTCapBuf))
-                       memcpy(ht_info->PeerHTCapBuf,
+                   pNetwork->bssht.bd_ht_cap_len <= sizeof(ht_info->peer_ht_cap_buf))
+                       memcpy(ht_info->peer_ht_cap_buf,
                               pNetwork->bssht.bd_ht_cap_buf,
                               pNetwork->bssht.bd_ht_cap_len);
 
index c231e7acd6064ed92ee27b1188f737ec0156a366..aa98d22db90af1908a1760e6023e4723d92cf6b4 100644 (file)
@@ -1606,7 +1606,7 @@ rtllib_rx_assoc_resp(struct rtllib_device *ieee, struct sk_buff *skb,
                                        kfree(network);
                                        return 1;
                                }
-                               memcpy(ieee->ht_info->PeerHTCapBuf,
+                               memcpy(ieee->ht_info->peer_ht_cap_buf,
                                       network->bssht.bd_ht_cap_buf,
                                       network->bssht.bd_ht_cap_len);
                                memcpy(ieee->ht_info->PeerHTInfoBuf,