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

Staging: rtl8192e: Rename variable pTsCommonInfo

Rename variable pTsCommonInfo to ts_common_info to fix checkpatch
warning Avoid CamelCase.
Signed-off-by: default avatarTree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231127054305.148276-9-tdavies@darkphysics.netSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c831d3f6
...@@ -485,24 +485,24 @@ void rtllib_ts_init_add_ba(struct rtllib_device *ieee, struct tx_ts_record *ts, ...@@ -485,24 +485,24 @@ void rtllib_ts_init_add_ba(struct rtllib_device *ieee, struct tx_ts_record *ts,
} }
void rtllib_ts_init_del_ba(struct rtllib_device *ieee, void rtllib_ts_init_del_ba(struct rtllib_device *ieee,
struct ts_common_info *pTsCommonInfo, struct ts_common_info *ts_common_info,
enum tr_select TxRxSelect) enum tr_select TxRxSelect)
{ {
if (TxRxSelect == TX_DIR) { if (TxRxSelect == TX_DIR) {
struct tx_ts_record *ts = struct tx_ts_record *ts =
(struct tx_ts_record *)pTsCommonInfo; (struct tx_ts_record *)ts_common_info;
if (tx_ts_delete_ba(ieee, ts)) if (tx_ts_delete_ba(ieee, ts))
rtllib_send_DELBA(ieee, pTsCommonInfo->addr, rtllib_send_DELBA(ieee, ts_common_info->addr,
(ts->tx_admitted_ba_record.b_valid) ? (ts->tx_admitted_ba_record.b_valid) ?
(&ts->tx_admitted_ba_record) : (&ts->tx_admitted_ba_record) :
(&ts->tx_pending_ba_record), (&ts->tx_pending_ba_record),
TxRxSelect, DELBA_REASON_END_BA); TxRxSelect, DELBA_REASON_END_BA);
} else if (TxRxSelect == RX_DIR) { } else if (TxRxSelect == RX_DIR) {
struct rx_ts_record *ts = struct rx_ts_record *ts =
(struct rx_ts_record *)pTsCommonInfo; (struct rx_ts_record *)ts_common_info;
if (rx_ts_delete_ba(ieee, ts)) if (rx_ts_delete_ba(ieee, ts))
rtllib_send_DELBA(ieee, pTsCommonInfo->addr, rtllib_send_DELBA(ieee, ts_common_info->addr,
&ts->rx_admitted_ba_record, &ts->rx_admitted_ba_record,
TxRxSelect, DELBA_REASON_END_BA); TxRxSelect, DELBA_REASON_END_BA);
} }
......
...@@ -91,10 +91,10 @@ static void TsAddBaProcess(struct timer_list *t) ...@@ -91,10 +91,10 @@ static void TsAddBaProcess(struct timer_list *t)
netdev_dbg(ieee->dev, "%s(): ADDBA Req is started\n", __func__); netdev_dbg(ieee->dev, "%s(): ADDBA Req is started\n", __func__);
} }
static void ResetTsCommonInfo(struct ts_common_info *pTsCommonInfo) static void ResetTsCommonInfo(struct ts_common_info *ts_common_info)
{ {
eth_zero_addr(pTsCommonInfo->addr); eth_zero_addr(ts_common_info->addr);
memset(&pTsCommonInfo->tspec, 0, sizeof(struct qos_tsinfo)); memset(&ts_common_info->tspec, 0, sizeof(struct qos_tsinfo));
} }
static void ResetTxTsEntry(struct tx_ts_record *ts) static void ResetTxTsEntry(struct tx_ts_record *ts)
...@@ -211,16 +211,16 @@ static struct ts_common_info *SearchAdmitTRStream(struct rtllib_device *ieee, ...@@ -211,16 +211,16 @@ static struct ts_common_info *SearchAdmitTRStream(struct rtllib_device *ieee,
return NULL; return NULL;
} }
static void MakeTSEntry(struct ts_common_info *pTsCommonInfo, u8 *addr, static void MakeTSEntry(struct ts_common_info *ts_common_info, u8 *addr,
struct qos_tsinfo *pTSPEC) struct qos_tsinfo *pTSPEC)
{ {
if (!pTsCommonInfo) if (!ts_common_info)
return; return;
memcpy(pTsCommonInfo->addr, addr, 6); memcpy(ts_common_info->addr, addr, 6);
if (pTSPEC) if (pTSPEC)
memcpy((u8 *)(&(pTsCommonInfo->tspec)), (u8 *)pTSPEC, memcpy((u8 *)(&(ts_common_info->tspec)), (u8 *)pTSPEC,
sizeof(struct qos_tsinfo)); sizeof(struct qos_tsinfo));
} }
......
...@@ -1782,7 +1782,7 @@ int rtllib_rx_DELBA(struct rtllib_device *ieee, struct sk_buff *skb); ...@@ -1782,7 +1782,7 @@ int rtllib_rx_DELBA(struct rtllib_device *ieee, struct sk_buff *skb);
void rtllib_ts_init_add_ba(struct rtllib_device *ieee, struct tx_ts_record *ts, void rtllib_ts_init_add_ba(struct rtllib_device *ieee, struct tx_ts_record *ts,
u8 policy, u8 overwrite_pending); u8 policy, u8 overwrite_pending);
void rtllib_ts_init_del_ba(struct rtllib_device *ieee, void rtllib_ts_init_del_ba(struct rtllib_device *ieee,
struct ts_common_info *pTsCommonInfo, struct ts_common_info *ts_common_info,
enum tr_select TxRxSelect); enum tr_select TxRxSelect);
void rtllib_ba_setup_timeout(struct timer_list *t); void rtllib_ba_setup_timeout(struct timer_list *t);
void rtllib_tx_ba_inact_timeout(struct timer_list *t); void rtllib_tx_ba_inact_timeout(struct timer_list *t);
......
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