staging: rtl8192e: rename BufferSize to buffer_size in ba_param_set union
authorWilliam Durand <will+git@drnd.me>
Fri, 19 Feb 2021 10:12:04 +0000 (10:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:25:26 +0000 (09:25 +0100)
Fixes a checkpatch CHECK message.

Signed-off-by: William Durand <will+git@drnd.me>
Link: https://lore.kernel.org/r/20210219101206.18036-5-will+git@drnd.me
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_BA.h
drivers/staging/rtl8192e/rtl819x_BAProc.c

index a36e448..af25b48 100644 (file)
@@ -34,7 +34,7 @@ union ba_param_set {
                u16 AMSDU_Support:1;
                u16 ba_policy:1;
                u16 TID:4;
-               u16 BufferSize:10;
+               u16 buffer_size:10;
        } field;
 };
 
index b695a56..17520fc 100644 (file)
@@ -284,9 +284,9 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb)
 
        if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev) ||
           (ieee->pHTInfo->IOTAction & HT_IOT_ACT_ALLOW_PEER_AGG_ONE_PKT))
-               pBA->BaParamSet.field.BufferSize = 1;
+               pBA->BaParamSet.field.buffer_size = 1;
        else
-               pBA->BaParamSet.field.BufferSize = 32;
+               pBA->BaParamSet.field.buffer_size = 32;
 
        ActivateBAEntry(ieee, pBA, 0);
        rtllib_send_ADDBARsp(ieee, dst, pBA, ADDBA_STATUS_SUCCESS);
@@ -487,7 +487,7 @@ void TsInitAddBA(struct rtllib_device *ieee, struct tx_ts_record *pTS,
        pBA->BaParamSet.field.ba_policy = Policy;
        pBA->BaParamSet.field.TID =
                         pTS->TsCommonInfo.TSpec.f.TSInfo.field.ucTSID;
-       pBA->BaParamSet.field.BufferSize = 32;
+       pBA->BaParamSet.field.buffer_size = 32;
        pBA->BaTimeoutValue = 0;
        pBA->BaStartSeqCtrl.field.seq_num = (pTS->TxCurSeq + 3) % 4096;