Staging: rtl8192e: Rename function GetTs()
Rename function GetTs to rtllib_get_ts to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies <tdavies@darkphysics.net> Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/20230921032515.96152-10-tdavies@darkphysics.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
dcda7ec951
commit
a747b92490
@ -253,7 +253,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb)
|
||||
ieee->ht_info->bCurrentHTSupport);
|
||||
goto OnADDBAReq_Fail;
|
||||
}
|
||||
if (!GetTs(ieee, (struct ts_common_info **)&ts, dst,
|
||||
if (!rtllib_get_ts(ieee, (struct ts_common_info **)&ts, dst,
|
||||
(u8)(pBaParamSet->field.tid), RX_DIR, true)) {
|
||||
rc = ADDBA_STATUS_REFUSED;
|
||||
netdev_warn(ieee->dev, "%s(): can't get TS\n", __func__);
|
||||
@ -337,7 +337,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb)
|
||||
goto OnADDBARsp_Reject;
|
||||
}
|
||||
|
||||
if (!GetTs(ieee, (struct ts_common_info **)&pTS, dst,
|
||||
if (!rtllib_get_ts(ieee, (struct ts_common_info **)&pTS, dst,
|
||||
(u8)(pBaParamSet->field.tid), TX_DIR, false)) {
|
||||
netdev_warn(ieee->dev, "%s(): can't get TS\n", __func__);
|
||||
ReasonCode = DELBA_REASON_UNKNOWN_BA;
|
||||
@ -432,7 +432,7 @@ int rtllib_rx_DELBA(struct rtllib_device *ieee, struct sk_buff *skb)
|
||||
if (pDelBaParamSet->field.initiator == 1) {
|
||||
struct rx_ts_record *ts;
|
||||
|
||||
if (!GetTs(ieee, (struct ts_common_info **)&ts, dst,
|
||||
if (!rtllib_get_ts(ieee, (struct ts_common_info **)&ts, dst,
|
||||
(u8)pDelBaParamSet->field.tid, RX_DIR, false)) {
|
||||
netdev_warn(ieee->dev,
|
||||
"%s(): can't get TS for RXTS. dst:%pM TID:%d\n",
|
||||
@ -445,7 +445,7 @@ int rtllib_rx_DELBA(struct rtllib_device *ieee, struct sk_buff *skb)
|
||||
} else {
|
||||
struct tx_ts_record *pTxTs;
|
||||
|
||||
if (!GetTs(ieee, (struct ts_common_info **)&pTxTs, dst,
|
||||
if (!rtllib_get_ts(ieee, (struct ts_common_info **)&pTxTs, dst,
|
||||
(u8)pDelBaParamSet->field.tid, TX_DIR, false)) {
|
||||
netdev_warn(ieee->dev, "%s(): can't get TS for TXTS\n",
|
||||
__func__);
|
||||
|
@ -244,7 +244,7 @@ static void MakeTSEntry(struct ts_common_info *pTsCommonInfo, u8 *addr,
|
||||
pTsCommonInfo->TClasNum = TCLAS_Num;
|
||||
}
|
||||
|
||||
bool GetTs(struct rtllib_device *ieee, struct ts_common_info **ppTS,
|
||||
bool rtllib_get_ts(struct rtllib_device *ieee, struct ts_common_info **ppTS,
|
||||
u8 *addr, u8 TID, enum tr_select TxRxSelect, bool bAddNewTs)
|
||||
{
|
||||
u8 UP = 0;
|
||||
|
@ -1842,7 +1842,7 @@ void rtllib_ba_setup_timeout(struct timer_list *t);
|
||||
void rtllib_tx_ba_inact_timeout(struct timer_list *t);
|
||||
void rtllib_rx_ba_inact_timeout(struct timer_list *t);
|
||||
void rtllib_reset_ba_entry(struct ba_record *pBA);
|
||||
bool GetTs(struct rtllib_device *ieee, struct ts_common_info **ppTS, u8 *addr,
|
||||
bool rtllib_get_ts(struct rtllib_device *ieee, struct ts_common_info **ppTS, u8 *addr,
|
||||
u8 TID, enum tr_select TxRxSelect, bool bAddNewTs);
|
||||
void TSInitialize(struct rtllib_device *ieee);
|
||||
void TsStartAddBaProcess(struct rtllib_device *ieee,
|
||||
|
@ -921,7 +921,7 @@ static int rtllib_rx_check_duplicate(struct rtllib_device *ieee,
|
||||
} else {
|
||||
struct rx_ts_record *ts = NULL;
|
||||
|
||||
if (GetTs(ieee, (struct ts_common_info **)&ts, hdr->addr2,
|
||||
if (rtllib_get_ts(ieee, (struct ts_common_info **)&ts, hdr->addr2,
|
||||
(u8)Frame_QoSTID((u8 *)(skb->data)), RX_DIR, true)) {
|
||||
if ((fc & (1 << 11)) && (frag == ts->rx_last_frag_num) &&
|
||||
(WLAN_GET_SEQ_SEQ(sc) == ts->rx_last_seq_num))
|
||||
@ -1381,7 +1381,7 @@ static int rtllib_rx_InfraAdhoc(struct rtllib_device *ieee, struct sk_buff *skb,
|
||||
&& (!bToOtherSTA)) {
|
||||
TID = Frame_QoSTID(skb->data);
|
||||
SeqNum = WLAN_GET_SEQ_SEQ(sc);
|
||||
GetTs(ieee, (struct ts_common_info **)&ts, hdr->addr2, TID,
|
||||
rtllib_get_ts(ieee, (struct ts_common_info **)&ts, hdr->addr2, TID,
|
||||
RX_DIR, true);
|
||||
if (TID != 0 && TID != 3)
|
||||
ieee->bis_any_nonbepkts = true;
|
||||
|
@ -289,7 +289,7 @@ static void rtllib_tx_query_agg_cap(struct rtllib_device *ieee,
|
||||
if (!ieee->GetNmodeSupportBySecCfg(ieee->dev))
|
||||
return;
|
||||
if (ht_info->bCurrentAMPDUEnable) {
|
||||
if (!GetTs(ieee, (struct ts_common_info **)(&pTxTs), hdr->addr1,
|
||||
if (!rtllib_get_ts(ieee, (struct ts_common_info **)(&pTxTs), hdr->addr1,
|
||||
skb->priority, TX_DIR, true)) {
|
||||
netdev_info(ieee->dev, "%s: can't get TS\n", __func__);
|
||||
return;
|
||||
@ -498,7 +498,7 @@ static u16 rtllib_query_seqnum(struct rtllib_device *ieee, struct sk_buff *skb,
|
||||
if (IsQoSDataFrame(skb->data)) {
|
||||
struct tx_ts_record *pTS = NULL;
|
||||
|
||||
if (!GetTs(ieee, (struct ts_common_info **)(&pTS), dst,
|
||||
if (!rtllib_get_ts(ieee, (struct ts_common_info **)(&pTS), dst,
|
||||
skb->priority, TX_DIR, true))
|
||||
return 0;
|
||||
seqnum = pTS->TxCurSeq;
|
||||
|
Loading…
x
Reference in New Issue
Block a user