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

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20240126223106.986093-9-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 29e1206078fe6e10ad653951bacdc358dad19e8a..18dab893270ff19fb800116e02d2ff5bc861cff3 100644 (file)
@@ -100,7 +100,7 @@ struct rt_hi_throughput {
        enum ht_spec_ver peer_ht_spec_ver;
        struct ht_capab_ele SelfHTCap;
        u8 peer_ht_cap_buf[32];
-       u8 PeerHTInfoBuf[32];
+       u8 peer_ht_info_buf[32];
        u8 ampdu_enable;
        u8 current_ampdu_enable;
        u8 ampdu_factor;
index cea3284dd7873cc1213e3eb135c2338f34b2352e..98f0ac80f1fd8eea84256f656d8f3e6cfe574efe 100644 (file)
@@ -442,11 +442,11 @@ void ht_on_assoc_rsp(struct rtllib_device *ieee)
        else
                pPeerHTCap = (struct ht_capab_ele *)(ht_info->peer_ht_cap_buf);
 
-       if (!memcmp(ht_info->PeerHTInfoBuf, EWC11NHTInfo, sizeof(EWC11NHTInfo)))
+       if (!memcmp(ht_info->peer_ht_info_buf, EWC11NHTInfo, sizeof(EWC11NHTInfo)))
                pPeerHTInfo = (struct ht_info_ele *)
-                            (&ht_info->PeerHTInfoBuf[4]);
+                            (&ht_info->peer_ht_info_buf[4]);
        else
-               pPeerHTInfo = (struct ht_info_ele *)(ht_info->PeerHTInfoBuf);
+               pPeerHTInfo = (struct ht_info_ele *)(ht_info->peer_ht_info_buf);
 
 #ifdef VERBOSE_DEBUG
        print_hex_dump_bytes("%s: ", __func__, DUMP_PREFIX_NONE,
@@ -520,8 +520,8 @@ void ht_initialize_ht_info(struct rtllib_device *ieee)
               sizeof(ht_info->SelfHTCap));
        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));
+       memset((void *)(&ht_info->peer_ht_info_buf), 0,
+              sizeof(ht_info->peer_ht_info_buf));
 
        ht_info->sw_bw_in_progress = false;
 
@@ -579,8 +579,8 @@ void ht_reset_self_and_save_peer_setting(struct rtllib_device *ieee,
 
                if (pNetwork->bssht.bd_ht_info_len > 0 &&
                    pNetwork->bssht.bd_ht_info_len <=
-                   sizeof(ht_info->PeerHTInfoBuf))
-                       memcpy(ht_info->PeerHTInfoBuf,
+                   sizeof(ht_info->peer_ht_info_buf))
+                       memcpy(ht_info->peer_ht_info_buf,
                               pNetwork->bssht.bd_ht_info_buf,
                               pNetwork->bssht.bd_ht_info_len);
 
index aa98d22db90af1908a1760e6023e4723d92cf6b4..9ee6364f7b001642c543cd1485905578b431480f 100644 (file)
@@ -1609,7 +1609,7 @@ rtllib_rx_assoc_resp(struct rtllib_device *ieee, struct sk_buff *skb,
                                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,
+                               memcpy(ieee->ht_info->peer_ht_info_buf,
                                       network->bssht.bd_ht_info_buf,
                                       network->bssht.bd_ht_info_len);
                                ieee->handle_assoc_response(ieee->dev,