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

staging: rtl8192e: rename DialogToken to dialog_token in ba_record struct

Fixes a checkpatch CHECK issue.
Signed-off-by: default avatarWilliam Durand <will+git@drnd.me>
Link: https://lore.kernel.org/r/20210219231128.27119-4-will+git@drnd.meSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ba05a619
...@@ -51,7 +51,7 @@ union delba_param_set { ...@@ -51,7 +51,7 @@ union delba_param_set {
struct ba_record { struct ba_record {
struct timer_list timer; struct timer_list timer;
u8 b_valid; u8 b_valid;
u8 DialogToken; u8 dialog_token;
union ba_param_set BaParamSet; union ba_param_set BaParamSet;
u16 BaTimeoutValue; u16 BaTimeoutValue;
union sequence_control BaStartSeqCtrl; union sequence_control BaStartSeqCtrl;
......
...@@ -60,7 +60,7 @@ void ResetBaEntry(struct ba_record *pBA) ...@@ -60,7 +60,7 @@ void ResetBaEntry(struct ba_record *pBA)
pBA->b_valid = false; pBA->b_valid = false;
pBA->BaParamSet.short_data = 0; pBA->BaParamSet.short_data = 0;
pBA->BaTimeoutValue = 0; pBA->BaTimeoutValue = 0;
pBA->DialogToken = 0; pBA->dialog_token = 0;
pBA->BaStartSeqCtrl.short_data = 0; pBA->BaStartSeqCtrl.short_data = 0;
} }
static struct sk_buff *rtllib_ADDBA(struct rtllib_device *ieee, u8 *Dst, static struct sk_buff *rtllib_ADDBA(struct rtllib_device *ieee, u8 *Dst,
...@@ -98,7 +98,7 @@ static struct sk_buff *rtllib_ADDBA(struct rtllib_device *ieee, u8 *Dst, ...@@ -98,7 +98,7 @@ static struct sk_buff *rtllib_ADDBA(struct rtllib_device *ieee, u8 *Dst,
tag = skb_put(skb, 9); tag = skb_put(skb, 9);
*tag++ = ACT_CAT_BA; *tag++ = ACT_CAT_BA;
*tag++ = type; *tag++ = type;
*tag++ = pBA->DialogToken; *tag++ = pBA->dialog_token;
if (type == ACT_ADDBARSP) { if (type == ACT_ADDBARSP) {
RT_TRACE(COMP_DBG, "====>to send ADDBARSP\n"); RT_TRACE(COMP_DBG, "====>to send ADDBARSP\n");
...@@ -277,7 +277,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb) ...@@ -277,7 +277,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb)
rtllib_FlushRxTsPendingPkts(ieee, pTS); rtllib_FlushRxTsPendingPkts(ieee, pTS);
DeActivateBAEntry(ieee, pBA); DeActivateBAEntry(ieee, pBA);
pBA->DialogToken = *pDialogToken; pBA->dialog_token = *pDialogToken;
pBA->BaParamSet = *pBaParamSet; pBA->BaParamSet = *pBaParamSet;
pBA->BaTimeoutValue = *pBaTimeoutVal; pBA->BaTimeoutValue = *pBaTimeoutVal;
pBA->BaStartSeqCtrl = *pBaStartSeqCtrl; pBA->BaStartSeqCtrl = *pBaStartSeqCtrl;
...@@ -299,7 +299,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb) ...@@ -299,7 +299,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb)
BA.BaParamSet = *pBaParamSet; BA.BaParamSet = *pBaParamSet;
BA.BaTimeoutValue = *pBaTimeoutVal; BA.BaTimeoutValue = *pBaTimeoutVal;
BA.DialogToken = *pDialogToken; BA.dialog_token = *pDialogToken;
BA.BaParamSet.field.ba_policy = BA_POLICY_IMMEDIATE; BA.BaParamSet.field.ba_policy = BA_POLICY_IMMEDIATE;
rtllib_send_ADDBARsp(ieee, dst, &BA, rc); rtllib_send_ADDBARsp(ieee, dst, &BA, rc);
return 0; return 0;
...@@ -362,7 +362,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) ...@@ -362,7 +362,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb)
__func__); __func__);
return -1; return -1;
} else if (!pPendingBA->b_valid || } else if (!pPendingBA->b_valid ||
(*pDialogToken != pPendingBA->DialogToken)) { (*pDialogToken != pPendingBA->dialog_token)) {
netdev_warn(ieee->dev, netdev_warn(ieee->dev,
"%s(): ADDBA Rsp. BA invalid, DELBA!\n", "%s(): ADDBA Rsp. BA invalid, DELBA!\n",
__func__); __func__);
...@@ -385,7 +385,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) ...@@ -385,7 +385,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb)
} }
pAdmittedBA->DialogToken = *pDialogToken; pAdmittedBA->dialog_token = *pDialogToken;
pAdmittedBA->BaTimeoutValue = *pBaTimeoutVal; pAdmittedBA->BaTimeoutValue = *pBaTimeoutVal;
pAdmittedBA->BaStartSeqCtrl = pPendingBA->BaStartSeqCtrl; pAdmittedBA->BaStartSeqCtrl = pPendingBA->BaStartSeqCtrl;
pAdmittedBA->BaParamSet = *pBaParamSet; pAdmittedBA->BaParamSet = *pBaParamSet;
...@@ -482,7 +482,7 @@ void TsInitAddBA(struct rtllib_device *ieee, struct tx_ts_record *pTS, ...@@ -482,7 +482,7 @@ void TsInitAddBA(struct rtllib_device *ieee, struct tx_ts_record *pTS,
DeActivateBAEntry(ieee, pBA); DeActivateBAEntry(ieee, pBA);
pBA->DialogToken++; pBA->dialog_token++;
pBA->BaParamSet.field.amsdu_support = 0; pBA->BaParamSet.field.amsdu_support = 0;
pBA->BaParamSet.field.ba_policy = Policy; pBA->BaParamSet.field.ba_policy = Policy;
pBA->BaParamSet.field.tid = pTS->TsCommonInfo.TSpec.f.TSInfo.field.ucTSID; pBA->BaParamSet.field.tid = pTS->TsCommonInfo.TSpec.f.TSInfo.field.ucTSID;
......
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