Commit b35fe92f authored by Tree Davies's avatar Tree Davies Committed by Greg Kroah-Hartman

Staging: rtl8192e: Rename variable TSpec

Rename variable TSpec to tspec to fix checkpatch warning Avoid CamelCase.
Signed-off-by: default avatarTree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231127054305.148276-5-tdavies@darkphysics.netSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1628dd0f
...@@ -474,7 +474,7 @@ void rtllib_ts_init_add_ba(struct rtllib_device *ieee, struct tx_ts_record *ts, ...@@ -474,7 +474,7 @@ void rtllib_ts_init_add_ba(struct rtllib_device *ieee, struct tx_ts_record *ts,
ba->dialog_token++; ba->dialog_token++;
ba->ba_param_set.field.amsdu_support = 0; ba->ba_param_set.field.amsdu_support = 0;
ba->ba_param_set.field.ba_policy = policy; ba->ba_param_set.field.ba_policy = policy;
ba->ba_param_set.field.tid = ts->TsCommonInfo.TSpec.ucTSID; ba->ba_param_set.field.tid = ts->TsCommonInfo.tspec.ucTSID;
ba->ba_param_set.field.buffer_size = 32; ba->ba_param_set.field.buffer_size = 32;
ba->ba_timeout_value = 0; ba->ba_timeout_value = 0;
ba->ba_start_seq_ctrl.field.seq_num = (ts->TxCurSeq + 3) % 4096; ba->ba_start_seq_ctrl.field.seq_num = (ts->TxCurSeq + 3) % 4096;
......
...@@ -19,7 +19,7 @@ enum tr_select { ...@@ -19,7 +19,7 @@ enum tr_select {
struct ts_common_info { struct ts_common_info {
struct list_head List; struct list_head List;
u8 addr[ETH_ALEN]; u8 addr[ETH_ALEN];
struct qos_tsinfo TSpec; struct qos_tsinfo tspec;
}; };
struct tx_ts_record { struct tx_ts_record {
......
...@@ -94,7 +94,7 @@ static void TsAddBaProcess(struct timer_list *t) ...@@ -94,7 +94,7 @@ static void TsAddBaProcess(struct timer_list *t)
static void ResetTsCommonInfo(struct ts_common_info *pTsCommonInfo) static void ResetTsCommonInfo(struct ts_common_info *pTsCommonInfo)
{ {
eth_zero_addr(pTsCommonInfo->addr); eth_zero_addr(pTsCommonInfo->addr);
memset(&pTsCommonInfo->TSpec, 0, sizeof(struct qos_tsinfo)); memset(&pTsCommonInfo->tspec, 0, sizeof(struct qos_tsinfo));
} }
static void ResetTxTsEntry(struct tx_ts_record *ts) static void ResetTxTsEntry(struct tx_ts_record *ts)
...@@ -198,8 +198,8 @@ static struct ts_common_info *SearchAdmitTRStream(struct rtllib_device *ieee, ...@@ -198,8 +198,8 @@ static struct ts_common_info *SearchAdmitTRStream(struct rtllib_device *ieee,
continue; continue;
list_for_each_entry(pRet, psearch_list, List) { list_for_each_entry(pRet, psearch_list, List) {
if (memcmp(pRet->addr, addr, 6) == 0 && if (memcmp(pRet->addr, addr, 6) == 0 &&
pRet->TSpec.ucTSID == TID && pRet->tspec.ucTSID == TID &&
pRet->TSpec.ucDirection == dir) pRet->tspec.ucDirection == dir)
break; break;
} }
if (&pRet->List != psearch_list) if (&pRet->List != psearch_list)
...@@ -220,7 +220,7 @@ static void MakeTSEntry(struct ts_common_info *pTsCommonInfo, u8 *addr, ...@@ -220,7 +220,7 @@ static void MakeTSEntry(struct ts_common_info *pTsCommonInfo, u8 *addr,
memcpy(pTsCommonInfo->addr, addr, 6); memcpy(pTsCommonInfo->addr, addr, 6);
if (pTSPEC) if (pTSPEC)
memcpy((u8 *)(&(pTsCommonInfo->TSpec)), (u8 *)pTSPEC, memcpy((u8 *)(&(pTsCommonInfo->tspec)), (u8 *)pTSPEC,
sizeof(struct qos_tsinfo)); sizeof(struct qos_tsinfo));
} }
...@@ -228,8 +228,8 @@ bool rtllib_get_ts(struct rtllib_device *ieee, struct ts_common_info **ppTS, ...@@ -228,8 +228,8 @@ bool rtllib_get_ts(struct rtllib_device *ieee, struct ts_common_info **ppTS,
u8 *addr, u8 TID, enum tr_select TxRxSelect, bool bAddNewTs) u8 *addr, u8 TID, enum tr_select TxRxSelect, bool bAddNewTs)
{ {
u8 UP = 0; u8 UP = 0;
struct qos_tsinfo TSpec; struct qos_tsinfo tspec;
struct qos_tsinfo *ts_info = &TSpec; struct qos_tsinfo *ts_info = &tspec;
struct list_head *pUnusedList; struct list_head *pUnusedList;
struct list_head *pAddmitList; struct list_head *pAddmitList;
enum direction_value Dir; enum direction_value Dir;
...@@ -308,7 +308,7 @@ bool rtllib_get_ts(struct rtllib_device *ieee, struct ts_common_info **ppTS, ...@@ -308,7 +308,7 @@ bool rtllib_get_ts(struct rtllib_device *ieee, struct ts_common_info **ppTS,
ts_info->ucTSID = UP; ts_info->ucTSID = UP;
ts_info->ucDirection = Dir; ts_info->ucDirection = Dir;
MakeTSEntry(*ppTS, addr, &TSpec); MakeTSEntry(*ppTS, addr, &tspec);
list_add_tail(&((*ppTS)->List), pAddmitList); list_add_tail(&((*ppTS)->List), pAddmitList);
return true; return true;
......
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