]> www.infradead.org Git - linux.git/commitdiff
Staging: rtl8192e: Rename variable pNetwork
authorTree Davies <tdavies@darkphysics.net>
Fri, 30 Aug 2024 02:05:06 +0000 (19:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Sep 2024 08:34:24 +0000 (10:34 +0200)
Rename variable pNetwork to network
to fix checkpatch warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20240830020508.532945-2-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_HTProc.c
drivers/staging/rtl8192e/rtllib.h

index dfdb7a7dc14faa857e9c412f787e43487b232857..188e1fd9554d37169ac5121ca02f570c7e1afb7e 100644 (file)
@@ -559,7 +559,7 @@ void ht_initialize_bss_desc(struct bss_ht *bss_ht)
 }
 
 void ht_reset_self_and_save_peer_setting(struct rtllib_device *ieee,
-                                  struct rtllib_network *pNetwork)
+                                  struct rtllib_network *network)
 {
        struct rt_hi_throughput *ht_info = ieee->ht_info;
        u8      bIOTAction = 0;
@@ -567,32 +567,32 @@ void ht_reset_self_and_save_peer_setting(struct rtllib_device *ieee,
        /* unmark enable_ht flag here is the same reason why unmarked in
         * function rtllib_softmac_new_net. WB 2008.09.10
         */
-       if (pNetwork->bssht.bd_support_ht) {
+       if (network->bssht.bd_support_ht) {
                ht_info->current_ht_support = true;
-               ht_info->peer_ht_spec_ver = pNetwork->bssht.bd_ht_spec_ver;
+               ht_info->peer_ht_spec_ver = network->bssht.bd_ht_spec_ver;
 
-               if (pNetwork->bssht.bd_ht_cap_len > 0 &&
-                   pNetwork->bssht.bd_ht_cap_len <= sizeof(ht_info->peer_ht_cap_buf))
+               if (network->bssht.bd_ht_cap_len > 0 &&
+                   network->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);
+                              network->bssht.bd_ht_cap_buf,
+                              network->bssht.bd_ht_cap_len);
 
-               if (pNetwork->bssht.bd_ht_info_len > 0 &&
-                   pNetwork->bssht.bd_ht_info_len <=
+               if (network->bssht.bd_ht_info_len > 0 &&
+                   network->bssht.bd_ht_info_len <=
                    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);
+                              network->bssht.bd_ht_info_buf,
+                              network->bssht.bd_ht_info_len);
 
                ht_info->current_rt2rt_aggregation =
-                        pNetwork->bssht.bd_rt2rt_aggregation;
+                        network->bssht.bd_rt2rt_aggregation;
                ht_info->current_rt2rt_long_slot_time =
-                        pNetwork->bssht.bd_rt2rt_long_slot_time;
+                        network->bssht.bd_rt2rt_long_slot_time;
 
                ht_iot_peer_determine(ieee);
 
                ht_info->iot_action = 0;
-               bIOTAction = ht_iot_act_is_mgnt_use_cck_6m(ieee, pNetwork);
+               bIOTAction = ht_iot_act_is_mgnt_use_cck_6m(ieee, network);
                if (bIOTAction)
                        ht_info->iot_action |= HT_IOT_ACT_MGNT_USE_CCK_6M;
                bIOTAction = ht_iot_act_is_ccd_fsync(ieee);
@@ -609,14 +609,14 @@ void ht_reset_self_and_save_peer_setting(struct rtllib_device *ieee,
 }
 
 void HT_update_self_and_peer_setting(struct rtllib_device *ieee,
-                                    struct rtllib_network *pNetwork)
+                                    struct rtllib_network *network)
 {
        struct rt_hi_throughput *ht_info = ieee->ht_info;
        struct ht_info_ele *pPeerHTInfo =
-                (struct ht_info_ele *)pNetwork->bssht.bd_ht_info_buf;
+                (struct ht_info_ele *)network->bssht.bd_ht_info_buf;
 
        if (ht_info->current_ht_support) {
-               if (pNetwork->bssht.bd_ht_info_len != 0)
+               if (network->bssht.bd_ht_info_len != 0)
                        ht_info->current_op_mode = pPeerHTInfo->opt_mode;
        }
 }
index 0eb987e999c58fb0ce0c0c4a20f072a034347456..2da3e1e61651b724db658ac8802a1c0372af9c58 100644 (file)
@@ -1733,9 +1733,9 @@ void ht_on_assoc_rsp(struct rtllib_device *ieee);
 void ht_initialize_ht_info(struct rtllib_device *ieee);
 void ht_initialize_bss_desc(struct bss_ht *bss_ht);
 void ht_reset_self_and_save_peer_setting(struct rtllib_device *ieee,
-                                  struct rtllib_network *pNetwork);
+                                  struct rtllib_network *network);
 void HT_update_self_and_peer_setting(struct rtllib_device *ieee,
-                                    struct rtllib_network *pNetwork);
+                                    struct rtllib_network *network);
 u8 ht_get_highest_mcs_rate(struct rtllib_device *ieee, u8 *pMCSRateSet,
                       u8 *pMCSFilter);
 extern u8 MCS_FILTER_ALL[];