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

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20240126223106.986093-11-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 18dab893270ff19fb800116e02d2ff5bc861cff3..a4580445305d91767f6e1344b0d38f7e4aba3f67 100644 (file)
@@ -98,7 +98,7 @@ struct rt_hi_throughput {
        u8 cur_short_gi_40mhz;
        u8 cur_short_gi_20mhz;
        enum ht_spec_ver peer_ht_spec_ver;
-       struct ht_capab_ele SelfHTCap;
+       struct ht_capab_ele self_ht_cap;
        u8 peer_ht_cap_buf[32];
        u8 peer_ht_info_buf[32];
        u8 ampdu_enable;
index 98f0ac80f1fd8eea84256f656d8f3e6cfe574efe..76f115f56680afd514431d2add20b9a2156609ad 100644 (file)
@@ -516,8 +516,8 @@ void ht_initialize_ht_info(struct rtllib_device *ieee)
        ht_info->current_mpdu_density = 0;
        ht_info->CurrentAMPDUFactor = ht_info->ampdu_factor;
 
-       memset((void *)(&ht_info->SelfHTCap), 0,
-              sizeof(ht_info->SelfHTCap));
+       memset((void *)(&ht_info->self_ht_cap), 0,
+              sizeof(ht_info->self_ht_cap));
        memset((void *)(&ht_info->peer_ht_cap_buf), 0,
               sizeof(ht_info->peer_ht_cap_buf));
        memset((void *)(&ht_info->peer_ht_info_buf), 0,
index 545f79387991fbc11c46b89b56572a89628988c1..60598b41fb9faff53a8e8da70be873bb28c6f0de 100644 (file)
@@ -728,8 +728,8 @@ rtllib_association_req(struct rtllib_network *beacon,
        }
 
        if (ieee->ht_info->current_ht_support && ieee->ht_info->enable_ht) {
-               ht_cap_buf = (u8 *)&ieee->ht_info->SelfHTCap;
-               ht_cap_len = sizeof(ieee->ht_info->SelfHTCap);
+               ht_cap_buf = (u8 *)&ieee->ht_info->self_ht_cap;
+               ht_cap_len = sizeof(ieee->ht_info->self_ht_cap);
                ht_construct_capability_element(ieee, ht_cap_buf, &ht_cap_len,
                                             encrypt, true);
                if (ieee->ht_info->current_rt2rt_aggregation) {