Commit 336b2577 authored by John Whitmore's avatar John Whitmore Committed by Greg Kroah-Hartman

staging:rtl8192u: remove typedef of enumeration TR_SELECT - Style

To clear a checkpatch issue removed the typedef of the enumeration TR_SELECT
this should not impact runtime code as it's only a coding style change.
Signed-off-by: default avatarJohn Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 67e6ee89
...@@ -2391,7 +2391,7 @@ int ieee80211_rx_DELBA(struct ieee80211_device *ieee, struct sk_buff *skb); ...@@ -2391,7 +2391,7 @@ int ieee80211_rx_DELBA(struct ieee80211_device *ieee, struct sk_buff *skb);
void TsInitAddBA(struct ieee80211_device *ieee, PTX_TS_RECORD pTS, void TsInitAddBA(struct ieee80211_device *ieee, PTX_TS_RECORD pTS,
u8 Policy, u8 bOverwritePending); u8 Policy, u8 bOverwritePending);
void TsInitDelBA(struct ieee80211_device *ieee, void TsInitDelBA(struct ieee80211_device *ieee,
PTS_COMMON_INFO pTsCommonInfo, TR_SELECT TxRxSelect); PTS_COMMON_INFO pTsCommonInfo, enum tr_select TxRxSelect);
void BaSetupTimeOut(struct timer_list *t); void BaSetupTimeOut(struct timer_list *t);
void TxBaInactTimeout(struct timer_list *t); void TxBaInactTimeout(struct timer_list *t);
void RxBaInactTimeout(struct timer_list *t); void RxBaInactTimeout(struct timer_list *t);
...@@ -2402,7 +2402,7 @@ bool GetTs( ...@@ -2402,7 +2402,7 @@ bool GetTs(
PTS_COMMON_INFO *ppTS, PTS_COMMON_INFO *ppTS,
u8 *Addr, u8 *Addr,
u8 TID, u8 TID,
TR_SELECT TxRxSelect, //Rx:1, Tx:0 enum tr_select TxRxSelect, //Rx:1, Tx:0
bool bAddNewTs bool bAddNewTs
); );
void TSInitialize(struct ieee80211_device *ieee); void TSInitialize(struct ieee80211_device *ieee);
......
...@@ -174,7 +174,7 @@ static struct sk_buff *ieee80211_ADDBA(struct ieee80211_device *ieee, u8 *Dst, P ...@@ -174,7 +174,7 @@ static struct sk_buff *ieee80211_ADDBA(struct ieee80211_device *ieee, u8 *Dst, P
*function: construct DELBA frame *function: construct DELBA frame
* input: u8* dst //DELBA frame's destination * input: u8* dst //DELBA frame's destination
* PBA_RECORD pBA //BA_RECORD entry which stores the necessary information for BA * PBA_RECORD pBA //BA_RECORD entry which stores the necessary information for BA
* TR_SELECT TxRxSelect //TX RX direction * enum tr_select TxRxSelect //TX RX direction
* u16 ReasonCode //status code. * u16 ReasonCode //status code.
* output: none * output: none
* return: sk_buff* skb //return constructed skb to xmit * return: sk_buff* skb //return constructed skb to xmit
...@@ -183,7 +183,7 @@ static struct sk_buff *ieee80211_DELBA( ...@@ -183,7 +183,7 @@ static struct sk_buff *ieee80211_DELBA(
struct ieee80211_device *ieee, struct ieee80211_device *ieee,
u8 *dst, u8 *dst,
PBA_RECORD pBA, PBA_RECORD pBA,
TR_SELECT TxRxSelect, enum tr_select TxRxSelect,
u16 ReasonCode u16 ReasonCode
) )
{ {
...@@ -290,14 +290,14 @@ static void ieee80211_send_ADDBARsp(struct ieee80211_device *ieee, u8 *dst, ...@@ -290,14 +290,14 @@ static void ieee80211_send_ADDBARsp(struct ieee80211_device *ieee, u8 *dst,
*function: send ADDBARSP frame out *function: send ADDBARSP frame out
* input: u8* dst //DELBA frame's destination * input: u8* dst //DELBA frame's destination
* PBA_RECORD pBA //BA_RECORD entry which stores the necessary information for BA * PBA_RECORD pBA //BA_RECORD entry which stores the necessary information for BA
* TR_SELECT TxRxSelect //TX or RX * enum tr_select TxRxSelect //TX or RX
* u16 ReasonCode //DEL ReasonCode * u16 ReasonCode //DEL ReasonCode
* output: none * output: none
* notice: If any possible, please hide pBA in ieee. And temporarily use Manage Queue as softmac_mgmt_xmit() usually does * notice: If any possible, please hide pBA in ieee. And temporarily use Manage Queue as softmac_mgmt_xmit() usually does
********************************************************************************************************************/ ********************************************************************************************************************/
static void ieee80211_send_DELBA(struct ieee80211_device *ieee, u8 *dst, static void ieee80211_send_DELBA(struct ieee80211_device *ieee, u8 *dst,
PBA_RECORD pBA, TR_SELECT TxRxSelect, PBA_RECORD pBA, enum tr_select TxRxSelect,
u16 ReasonCode) u16 ReasonCode)
{ {
struct sk_buff *skb; struct sk_buff *skb;
...@@ -638,7 +638,7 @@ TsInitAddBA( ...@@ -638,7 +638,7 @@ TsInitAddBA(
} }
void void
TsInitDelBA(struct ieee80211_device *ieee, PTS_COMMON_INFO pTsCommonInfo, TR_SELECT TxRxSelect) TsInitDelBA(struct ieee80211_device *ieee, PTS_COMMON_INFO pTsCommonInfo, enum tr_select TxRxSelect)
{ {
if (TxRxSelect == TX_DIR) { if (TxRxSelect == TX_DIR) {
PTX_TS_RECORD pTxTs = (PTX_TS_RECORD)pTsCommonInfo; PTX_TS_RECORD pTxTs = (PTX_TS_RECORD)pTsCommonInfo;
......
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
#define TCLAS_NUM 4 #define TCLAS_NUM 4
/* This define the Tx/Rx directions */ /* This define the Tx/Rx directions */
typedef enum _TR_SELECT { enum tr_select {
TX_DIR = 0, TX_DIR = 0,
RX_DIR = 1, RX_DIR = 1,
} TR_SELECT, *PTR_SELECT; };
typedef struct _TS_COMMON_INFO { typedef struct _TS_COMMON_INFO {
struct list_head List; struct list_head List;
......
...@@ -204,7 +204,7 @@ static void AdmitTS(struct ieee80211_device *ieee, ...@@ -204,7 +204,7 @@ static void AdmitTS(struct ieee80211_device *ieee,
static PTS_COMMON_INFO SearchAdmitTRStream(struct ieee80211_device *ieee, static PTS_COMMON_INFO SearchAdmitTRStream(struct ieee80211_device *ieee,
u8 *Addr, u8 TID, u8 *Addr, u8 TID,
TR_SELECT TxRxSelect) enum tr_select TxRxSelect)
{ {
//DIRECTION_VALUE dir; //DIRECTION_VALUE dir;
u8 dir; u8 dir;
...@@ -291,7 +291,7 @@ bool GetTs( ...@@ -291,7 +291,7 @@ bool GetTs(
PTS_COMMON_INFO *ppTS, PTS_COMMON_INFO *ppTS,
u8 *Addr, u8 *Addr,
u8 TID, u8 TID,
TR_SELECT TxRxSelect, //Rx:1, Tx:0 enum tr_select TxRxSelect, //Rx:1, Tx:0
bool bAddNewTs bool bAddNewTs
) )
{ {
...@@ -408,7 +408,7 @@ bool GetTs( ...@@ -408,7 +408,7 @@ bool GetTs(
} }
static void RemoveTsEntry(struct ieee80211_device *ieee, PTS_COMMON_INFO pTs, static void RemoveTsEntry(struct ieee80211_device *ieee, PTS_COMMON_INFO pTs,
TR_SELECT TxRxSelect) enum tr_select TxRxSelect)
{ {
//u32 flags = 0; //u32 flags = 0;
unsigned long flags = 0; unsigned long flags = 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