]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Staging: rtl8192e: Rename variable bRTSEnable
authorTree Davies <tdavies@darkphysics.net>
Wed, 12 Jun 2024 03:22:11 +0000 (20:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Jun 2024 13:25:21 +0000 (15:25 +0200)
Rename variable bRTSEnable to rts_enable
to fix checkpatch warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20240612032230.9738-6-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
drivers/staging/rtl8192e/rtllib.h
drivers/staging/rtl8192e/rtllib_tx.c

index 27dfa268cd686ed19ba8db4ef80e92ef4739d6d0..0263f3d7179cbf9a9238aec07d1f8782fe8b444b 100644 (file)
@@ -892,7 +892,7 @@ void  rtl92e_fill_tx_desc(struct net_device *dev, struct tx_desc *pdesc,
                pTxFwInfo->RxAMD = 0;
        }
 
-       pTxFwInfo->RtsEnable =  (cb_desc->bRTSEnable) ? 1 : 0;
+       pTxFwInfo->RtsEnable =  (cb_desc->rts_enable) ? 1 : 0;
        pTxFwInfo->CtsEnable = (cb_desc->bCTSEnable) ? 1 : 0;
        pTxFwInfo->RtsSTBC = (cb_desc->bRTSSTBC) ? 1 : 0;
        pTxFwInfo->RtsHT = (cb_desc->rts_rate & 0x80) ? 1 : 0;
index 6dc641f78202e92b7bd5f421ae16917d28430092..a305848dabd5c7b79686347d309e7ce60708b59e 100644 (file)
@@ -111,7 +111,7 @@ struct cb_desc {
 
        /* Tx Firmware Related flags (10-11)*/
        u8 bCTSEnable:1;
-       u8 bRTSEnable:1;
+       u8 rts_enable:1;
        u8 bUseShortGI:1;
        u8 bUseShortPreamble:1;
        u8 tx_enable_fw_calc_dur:1;
index 83082a990fbd80fda2505e014dd2a90cc23de4c4..be8de6703e5d23257545de90d88332a521cc7c12 100644 (file)
@@ -386,10 +386,10 @@ static void rtllib_query_protectionmode(struct rtllib_device *ieee,
 
        if (ieee->mode < WIRELESS_MODE_N_24G) {
                if (skb->len > ieee->rts) {
-                       tcb_desc->bRTSEnable = true;
+                       tcb_desc->rts_enable = true;
                        tcb_desc->rts_rate = MGN_24M;
                } else if (ieee->current_network.buseprotection) {
-                       tcb_desc->bRTSEnable = true;
+                       tcb_desc->rts_enable = true;
                        tcb_desc->bCTSEnable = true;
                        tcb_desc->rts_rate = MGN_24M;
                }
@@ -402,16 +402,16 @@ static void rtllib_query_protectionmode(struct rtllib_device *ieee,
                if (ht_info->iot_action & HT_IOT_ACT_FORCED_CTS2SELF) {
                        tcb_desc->bCTSEnable    = true;
                        tcb_desc->rts_rate  =   MGN_24M;
-                       tcb_desc->bRTSEnable = true;
+                       tcb_desc->rts_enable = true;
                        break;
                } else if (ht_info->iot_action & (HT_IOT_ACT_FORCED_RTS |
                           HT_IOT_ACT_PURE_N_MODE)) {
-                       tcb_desc->bRTSEnable = true;
+                       tcb_desc->rts_enable = true;
                        tcb_desc->rts_rate  =   MGN_24M;
                        break;
                }
                if (ieee->current_network.buseprotection) {
-                       tcb_desc->bRTSEnable = true;
+                       tcb_desc->rts_enable = true;
                        tcb_desc->bCTSEnable = true;
                        tcb_desc->rts_rate = MGN_24M;
                        break;
@@ -423,18 +423,18 @@ static void rtllib_query_protectionmode(struct rtllib_device *ieee,
                                                      ht_op_mode == 3)) ||
                             (!ht_info->cur_bw_40mhz && ht_op_mode == 3)) {
                                tcb_desc->rts_rate = MGN_24M;
-                               tcb_desc->bRTSEnable = true;
+                               tcb_desc->rts_enable = true;
                                break;
                        }
                }
                if (skb->len > ieee->rts) {
                        tcb_desc->rts_rate = MGN_24M;
-                       tcb_desc->bRTSEnable = true;
+                       tcb_desc->rts_enable = true;
                        break;
                }
                if (tcb_desc->ampdu_enable) {
                        tcb_desc->rts_rate = MGN_24M;
-                       tcb_desc->bRTSEnable = false;
+                       tcb_desc->rts_enable = false;
                        break;
                }
                goto NO_PROTECTION;
@@ -443,7 +443,7 @@ static void rtllib_query_protectionmode(struct rtllib_device *ieee,
                tcb_desc->bUseShortPreamble = true;
        return;
 NO_PROTECTION:
-       tcb_desc->bRTSEnable    = false;
+       tcb_desc->rts_enable    = false;
        tcb_desc->bCTSEnable    = false;
        tcb_desc->rts_rate      = 0;
        tcb_desc->RTSSC         = 0;