mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 22:43:04 +00:00
rtl8188eu: Remove trailing white space from all source files
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
77e736c66a
commit
f5f3863bc5
205 changed files with 55371 additions and 55581 deletions
|
@ -1,7 +1,7 @@
|
|||
/******************************************************************************
|
||||
*
|
||||
* Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of version 2 of the GNU General Public License as
|
||||
* published by the Free Software Foundation.
|
||||
|
@ -63,7 +63,7 @@ enum WIFI_FRAME_TYPE {
|
|||
WIFI_MGT_TYPE = (0),
|
||||
WIFI_CTRL_TYPE = (BIT(2)),
|
||||
WIFI_DATA_TYPE = (BIT(3)),
|
||||
WIFI_QOS_DATA_TYPE = (BIT(7)|BIT(3)), //!< QoS Data
|
||||
WIFI_QOS_DATA_TYPE = (BIT(7)|BIT(3)), //!< QoS Data
|
||||
};
|
||||
|
||||
enum WIFI_FRAME_SUBTYPE {
|
||||
|
@ -189,7 +189,7 @@ enum WIFI_STATUS_CODE {
|
|||
#define WLAN_STATUS_AP_UNABLE_TO_HANDLE_NEW_STA 17
|
||||
#define WLAN_STATUS_ASSOC_DENIED_RATES 18 */
|
||||
|
||||
//entended
|
||||
//entended
|
||||
/* IEEE 802.11b */
|
||||
#define WLAN_STATUS_ASSOC_DENIED_NOSHORT 19
|
||||
#define WLAN_STATUS_ASSOC_DENIED_NOPBCC 20
|
||||
|
@ -341,7 +341,7 @@ enum WIFI_REG_DOMAIN {
|
|||
#define GetFrameType(pbuf) (le16_to_cpu(*(unsigned short *)(pbuf)) & (BIT(3) | BIT(2)))
|
||||
|
||||
#define SetFrameType(pbuf,type) \
|
||||
do { \
|
||||
do { \
|
||||
*(unsigned short *)(pbuf) &= __constant_cpu_to_le16(~(BIT(3) | BIT(2))); \
|
||||
*(unsigned short *)(pbuf) |= __constant_cpu_to_le16(type); \
|
||||
} while (0)
|
||||
|
@ -404,7 +404,7 @@ enum WIFI_REG_DOMAIN {
|
|||
#define SetAMsdu(pbuf, amsdu) \
|
||||
do { \
|
||||
*(unsigned short *)(pbuf) |= cpu_to_le16( (amsdu & 1) << 7); \
|
||||
} while (0)
|
||||
} while (0)
|
||||
|
||||
#define GetAid(pbuf) (cpu_to_le16(*(unsigned short *)((SIZE_PTR)(pbuf) + 2)) & 0x3fff)
|
||||
|
||||
|
@ -436,7 +436,7 @@ __inline static int IS_MCAST(unsigned char *da)
|
|||
|
||||
__inline static unsigned char * get_da(unsigned char *pframe)
|
||||
{
|
||||
unsigned char *da;
|
||||
unsigned char *da;
|
||||
unsigned int to_fr_ds = (GetToDs(pframe) << 1) | GetFrDs(pframe);
|
||||
|
||||
switch (to_fr_ds) {
|
||||
|
@ -460,7 +460,7 @@ __inline static unsigned char * get_da(unsigned char *pframe)
|
|||
|
||||
__inline static unsigned char * get_sa(unsigned char *pframe)
|
||||
{
|
||||
unsigned char *sa;
|
||||
unsigned char *sa;
|
||||
unsigned int to_fr_ds = (GetToDs(pframe) << 1) | GetFrDs(pframe);
|
||||
|
||||
switch (to_fr_ds) {
|
||||
|
@ -483,7 +483,7 @@ __inline static unsigned char * get_sa(unsigned char *pframe)
|
|||
|
||||
__inline static unsigned char * get_hdr_bssid(unsigned char *pframe)
|
||||
{
|
||||
unsigned char *sa;
|
||||
unsigned char *sa;
|
||||
unsigned int to_fr_ds = (GetToDs(pframe) << 1) | GetFrDs(pframe);
|
||||
|
||||
switch (to_fr_ds) {
|
||||
|
@ -499,7 +499,7 @@ __inline static unsigned char * get_hdr_bssid(unsigned char *pframe)
|
|||
case 0x03: // ToDs=1, FromDs=1
|
||||
sa = GetAddr1Ptr(pframe);
|
||||
break;
|
||||
default:
|
||||
default:
|
||||
sa =NULL; //???????
|
||||
break;
|
||||
}
|
||||
|
@ -626,7 +626,7 @@ __inline static int IsFrameTypeCtrl(unsigned char *pframe)
|
|||
#define _WEP_104_PRIVACY_ 5
|
||||
#define _WEP_WPA_MIXED_PRIVACY_ 6 // WEP + WPA
|
||||
*/
|
||||
|
||||
|
||||
/*-----------------------------------------------------------------------------
|
||||
Below is the definition for WMM
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -635,7 +635,7 @@ __inline static int IsFrameTypeCtrl(unsigned char *pframe)
|
|||
|
||||
|
||||
/*-----------------------------------------------------------------------------
|
||||
Below is the definition for 802.11n
|
||||
Below is the definition for 802.11n
|
||||
------------------------------------------------------------------------------*/
|
||||
|
||||
//#ifdef CONFIG_80211N_HT
|
||||
|
@ -680,12 +680,12 @@ struct rtw_ieee80211_bar {
|
|||
* This structure refers to "HT capabilities element" as
|
||||
* described in 802.11n draft section 7.3.2.52
|
||||
*/
|
||||
|
||||
|
||||
struct rtw_ieee80211_ht_cap {
|
||||
unsigned short cap_info;
|
||||
unsigned char ampdu_params_info;
|
||||
unsigned char supp_mcs_set[16];
|
||||
unsigned short extended_ht_cap_info;
|
||||
unsigned short cap_info;
|
||||
unsigned char ampdu_params_info;
|
||||
unsigned char supp_mcs_set[16];
|
||||
unsigned short extended_ht_cap_info;
|
||||
unsigned int tx_BF_cap_info;
|
||||
unsigned char antenna_selection_info;
|
||||
} __attribute__ ((packed));
|
||||
|
@ -697,7 +697,7 @@ struct rtw_ieee80211_ht_cap {
|
|||
* described in 802.11n draft section 7.3.2.53
|
||||
*/
|
||||
struct ieee80211_ht_addt_info {
|
||||
unsigned char control_chan;
|
||||
unsigned char control_chan;
|
||||
unsigned char ht_param;
|
||||
unsigned short operation_mode;
|
||||
unsigned short stbc_param;
|
||||
|
@ -708,9 +708,9 @@ struct ieee80211_ht_addt_info {
|
|||
struct HT_caps_element
|
||||
{
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
{
|
||||
struct
|
||||
{
|
||||
unsigned short HT_caps_info;
|
||||
unsigned char AMPDU_para;
|
||||
unsigned char MCS_rate[16];
|
||||
|
@ -761,17 +761,17 @@ struct ADDBA_request
|
|||
#pragma pack(1)
|
||||
|
||||
struct rtw_ieee80211_ht_cap {
|
||||
unsigned short cap_info;
|
||||
unsigned char ampdu_params_info;
|
||||
unsigned char supp_mcs_set[16];
|
||||
unsigned short extended_ht_cap_info;
|
||||
unsigned short cap_info;
|
||||
unsigned char ampdu_params_info;
|
||||
unsigned char supp_mcs_set[16];
|
||||
unsigned short extended_ht_cap_info;
|
||||
unsigned int tx_BF_cap_info;
|
||||
unsigned char antenna_selection_info;
|
||||
};
|
||||
|
||||
|
||||
struct ieee80211_ht_addt_info {
|
||||
unsigned char control_chan;
|
||||
unsigned char control_chan;
|
||||
unsigned char ht_param;
|
||||
unsigned short operation_mode;
|
||||
unsigned short stbc_param;
|
||||
|
@ -781,9 +781,9 @@ struct ieee80211_ht_addt_info {
|
|||
struct HT_caps_element
|
||||
{
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
{
|
||||
struct
|
||||
{
|
||||
unsigned short HT_caps_info;
|
||||
unsigned char AMPDU_para;
|
||||
unsigned char MCS_rate[16];
|
||||
|
@ -833,7 +833,7 @@ typedef enum _HT_CAP_AMPDU_FACTOR {
|
|||
MAX_AMPDU_FACTOR_8K = 0,
|
||||
MAX_AMPDU_FACTOR_16K = 1,
|
||||
MAX_AMPDU_FACTOR_32K = 2,
|
||||
MAX_AMPDU_FACTOR_64K = 3,
|
||||
MAX_AMPDU_FACTOR_64K = 3,
|
||||
}HT_CAP_AMPDU_FACTOR;
|
||||
|
||||
/* 802.11n HT capabilities masks */
|
||||
|
@ -861,9 +861,9 @@ typedef enum _HT_CAP_AMPDU_FACTOR {
|
|||
#define IEEE80211_HT_CAP_MCS_TX_UEQM 0x10
|
||||
/* 802.11n HT IE masks */
|
||||
#define IEEE80211_HT_IE_CHA_SEC_OFFSET 0x03
|
||||
#define IEEE80211_HT_IE_CHA_SEC_NONE 0x00
|
||||
#define IEEE80211_HT_IE_CHA_SEC_ABOVE 0x01
|
||||
#define IEEE80211_HT_IE_CHA_SEC_BELOW 0x03
|
||||
#define IEEE80211_HT_IE_CHA_SEC_NONE 0x00
|
||||
#define IEEE80211_HT_IE_CHA_SEC_ABOVE 0x01
|
||||
#define IEEE80211_HT_IE_CHA_SEC_BELOW 0x03
|
||||
#define IEEE80211_HT_IE_CHA_WIDTH 0x04
|
||||
#define IEEE80211_HT_IE_HT_PROTECTION 0x0003
|
||||
#define IEEE80211_HT_IE_NON_GF_STA_PRSNT 0x0004
|
||||
|
@ -1106,7 +1106,7 @@ typedef enum _HT_CAP_AMPDU_FACTOR {
|
|||
|
||||
#define P2P_FINDPHASE_EX_NONE 0 // default value, used when: (1)p2p disabed or (2)p2p enabled but only do 1 scan phase
|
||||
#define P2P_FINDPHASE_EX_FULL 1 // used when p2p enabled and want to do 1 scan phase and P2P_FINDPHASE_EX_MAX-1 find phase
|
||||
#define P2P_FINDPHASE_EX_SOCIAL_FIRST (P2P_FINDPHASE_EX_FULL+1)
|
||||
#define P2P_FINDPHASE_EX_SOCIAL_FIRST (P2P_FINDPHASE_EX_FULL+1)
|
||||
#define P2P_FINDPHASE_EX_MAX 4
|
||||
#define P2P_FINDPHASE_EX_SOCIAL_LAST P2P_FINDPHASE_EX_MAX
|
||||
|
||||
|
@ -1140,7 +1140,7 @@ enum P2P_ROLE {
|
|||
P2P_ROLE_DISABLE = 0,
|
||||
P2P_ROLE_DEVICE = 1,
|
||||
P2P_ROLE_CLIENT = 2,
|
||||
P2P_ROLE_GO = 3
|
||||
P2P_ROLE_GO = 3
|
||||
};
|
||||
|
||||
enum P2P_STATE {
|
||||
|
@ -1152,7 +1152,7 @@ enum P2P_STATE {
|
|||
P2P_STATE_FIND_PHASE_SEARCH = 5, // In the search state of find phase
|
||||
P2P_STATE_TX_PROVISION_DIS_REQ = 6, // In P2P provisioning discovery
|
||||
P2P_STATE_RX_PROVISION_DIS_RSP = 7,
|
||||
P2P_STATE_RX_PROVISION_DIS_REQ = 8,
|
||||
P2P_STATE_RX_PROVISION_DIS_REQ = 8,
|
||||
P2P_STATE_GONEGO_ING = 9, // Doing the group owner negoitation handshake
|
||||
P2P_STATE_GONEGO_OK = 10, // finish the group negoitation handshake with success
|
||||
P2P_STATE_GONEGO_FAIL = 11, // finish the group negoitation handshake with failure
|
||||
|
@ -1165,8 +1165,8 @@ enum P2P_STATE {
|
|||
P2P_STATE_RECV_INVITE_REQ_GO = 18, // receiving the P2P Inviation request and this wifi is GO.
|
||||
P2P_STATE_RECV_INVITE_REQ_JOIN = 19, // receiving the P2P Inviation request to join an existing P2P Group.
|
||||
P2P_STATE_RX_INVITE_RESP_FAIL = 20, // recveing the P2P Inviation response with failure
|
||||
P2P_STATE_RX_INFOR_NOREADY = 21, // receiving p2p negoitation response with information is not available
|
||||
P2P_STATE_TX_INFOR_NOREADY = 22, // sending p2p negoitation response with information is not available
|
||||
P2P_STATE_RX_INFOR_NOREADY = 21, // receiving p2p negoitation response with information is not available
|
||||
P2P_STATE_TX_INFOR_NOREADY = 22, // sending p2p negoitation response with information is not available
|
||||
};
|
||||
|
||||
enum P2P_WPSINFO {
|
||||
|
@ -1183,7 +1183,7 @@ enum P2P_PROTO_WK_ID
|
|||
P2P_FIND_PHASE_WK = 0,
|
||||
P2P_RESTORE_STATE_WK = 1,
|
||||
P2P_PRE_TX_PROVDISC_PROCESS_WK = 2,
|
||||
P2P_PRE_TX_NEGOREQ_PROCESS_WK = 3,
|
||||
P2P_PRE_TX_NEGOREQ_PROCESS_WK = 3,
|
||||
P2P_PRE_TX_INVITEREQ_PROCESS_WK = 4,
|
||||
P2P_AP_P2P_CH_SWITCH_PROCESS_WK =5,
|
||||
P2P_RO_CH_WK = 6,
|
||||
|
@ -1221,7 +1221,7 @@ enum P2P_PS_MODE
|
|||
#define WFD_DEVINFO_SOURCE 0x0000
|
||||
#define WFD_DEVINFO_PSINK 0x0001
|
||||
#define WFD_DEVINFO_SSINK 0x0002
|
||||
#define WFD_DEVINFO_DUAL 0x0003
|
||||
#define WFD_DEVINFO_DUAL 0x0003
|
||||
|
||||
#define WFD_DEVINFO_SESSION_AVAIL 0x0010
|
||||
#define WFD_DEVINFO_WSD 0x0040
|
||||
|
@ -1251,4 +1251,3 @@ enum P2P_PS_MODE
|
|||
#endif
|
||||
|
||||
#endif // _WIFI_H_
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue