Commit a860e1bb authored by William Durand's avatar William Durand Committed by Greg Kroah-Hartman

staging: rtl8192e: rename RxAdmittedBARecord to rx_admitted_ba_record in rx_ts_record struct

Rename RxAdmittedBARecord to rx_admitted_ba_record to silence a
checkpatch warning about CamelCase.
Signed-off-by: default avatarWilliam Durand <will+git@drnd.me>
Link: https://lore.kernel.org/r/20210301215335.767-7-will+git@drnd.meSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d36d3096
...@@ -44,7 +44,7 @@ static u8 TxTsDeleteBA(struct rtllib_device *ieee, struct tx_ts_record *pTxTs) ...@@ -44,7 +44,7 @@ static u8 TxTsDeleteBA(struct rtllib_device *ieee, struct tx_ts_record *pTxTs)
static u8 RxTsDeleteBA(struct rtllib_device *ieee, struct rx_ts_record *pRxTs) static u8 RxTsDeleteBA(struct rtllib_device *ieee, struct rx_ts_record *pRxTs)
{ {
struct ba_record *pBa = &pRxTs->RxAdmittedBARecord; struct ba_record *pBa = &pRxTs->rx_admitted_ba_record;
u8 bSendDELBA = false; u8 bSendDELBA = false;
if (pBa->b_valid) { if (pBa->b_valid) {
...@@ -265,7 +265,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb) ...@@ -265,7 +265,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb)
netdev_warn(ieee->dev, "%s(): can't get TS\n", __func__); netdev_warn(ieee->dev, "%s(): can't get TS\n", __func__);
goto OnADDBAReq_Fail; goto OnADDBAReq_Fail;
} }
pBA = &pTS->RxAdmittedBARecord; pBA = &pTS->rx_admitted_ba_record;
if (pBaParamSet->field.ba_policy == BA_POLICY_DELAYED) { if (pBaParamSet->field.ba_policy == BA_POLICY_DELAYED) {
rc = ADDBA_STATUS_INVALID_PARAM; rc = ADDBA_STATUS_INVALID_PARAM;
...@@ -514,7 +514,7 @@ void TsInitDelBA(struct rtllib_device *ieee, ...@@ -514,7 +514,7 @@ void TsInitDelBA(struct rtllib_device *ieee,
(struct rx_ts_record *)pTsCommonInfo; (struct rx_ts_record *)pTsCommonInfo;
if (RxTsDeleteBA(ieee, pRxTs)) if (RxTsDeleteBA(ieee, pRxTs))
rtllib_send_DELBA(ieee, pTsCommonInfo->Addr, rtllib_send_DELBA(ieee, pTsCommonInfo->Addr,
&pRxTs->RxAdmittedBARecord, &pRxTs->rx_admitted_ba_record,
TxRxSelect, DELBA_REASON_END_BA); TxRxSelect, DELBA_REASON_END_BA);
} }
} }
...@@ -544,12 +544,12 @@ void TxBaInactTimeout(struct timer_list *t) ...@@ -544,12 +544,12 @@ void TxBaInactTimeout(struct timer_list *t)
void RxBaInactTimeout(struct timer_list *t) void RxBaInactTimeout(struct timer_list *t)
{ {
struct rx_ts_record *pRxTs = from_timer(pRxTs, t, struct rx_ts_record *pRxTs = from_timer(pRxTs, t,
RxAdmittedBARecord.timer); rx_admitted_ba_record.timer);
struct rtllib_device *ieee = container_of(pRxTs, struct rtllib_device, struct rtllib_device *ieee = container_of(pRxTs, struct rtllib_device,
RxTsRecord[pRxTs->num]); RxTsRecord[pRxTs->num]);
RxTsDeleteBA(ieee, pRxTs); RxTsDeleteBA(ieee, pRxTs);
rtllib_send_DELBA(ieee, pRxTs->ts_common_info.Addr, rtllib_send_DELBA(ieee, pRxTs->ts_common_info.Addr,
&pRxTs->RxAdmittedBARecord, RX_DIR, &pRxTs->rx_admitted_ba_record, RX_DIR,
DELBA_REASON_TIMEOUT); DELBA_REASON_TIMEOUT);
} }
...@@ -47,7 +47,7 @@ struct rx_ts_record { ...@@ -47,7 +47,7 @@ struct rx_ts_record {
u16 rx_timeout_indicate_seq; u16 rx_timeout_indicate_seq;
struct list_head rx_pending_pkt_list; struct list_head rx_pending_pkt_list;
struct timer_list rx_pkt_pending_timer; struct timer_list rx_pkt_pending_timer;
struct ba_record RxAdmittedBARecord; struct ba_record rx_admitted_ba_record;
u16 RxLastSeqNum; u16 RxLastSeqNum;
u8 RxLastFragNum; u8 RxLastFragNum;
u8 num; u8 num;
......
...@@ -126,7 +126,7 @@ static void ResetRxTsEntry(struct rx_ts_record *pTS) ...@@ -126,7 +126,7 @@ static void ResetRxTsEntry(struct rx_ts_record *pTS)
ResetTsCommonInfo(&pTS->ts_common_info); ResetTsCommonInfo(&pTS->ts_common_info);
pTS->rx_indicate_seq = 0xffff; pTS->rx_indicate_seq = 0xffff;
pTS->rx_timeout_indicate_seq = 0xffff; pTS->rx_timeout_indicate_seq = 0xffff;
ResetBaEntry(&pTS->RxAdmittedBARecord); ResetBaEntry(&pTS->rx_admitted_ba_record);
} }
void TSInitialize(struct rtllib_device *ieee) void TSInitialize(struct rtllib_device *ieee)
...@@ -175,7 +175,7 @@ void TSInitialize(struct rtllib_device *ieee) ...@@ -175,7 +175,7 @@ void TSInitialize(struct rtllib_device *ieee)
timer_setup(&pRxTS->ts_common_info.InactTimer, TsInactTimeout, timer_setup(&pRxTS->ts_common_info.InactTimer, TsInactTimeout,
0); 0);
timer_setup(&pRxTS->RxAdmittedBARecord.timer, timer_setup(&pRxTS->rx_admitted_ba_record.timer,
RxBaInactTimeout, 0); RxBaInactTimeout, 0);
timer_setup(&pRxTS->rx_pkt_pending_timer, RxPktPendingTimeout, 0); timer_setup(&pRxTS->rx_pkt_pending_timer, RxPktPendingTimeout, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment