mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 22:43:04 +00:00
rtl8188eu: Fix C90 comments in include/*.h
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
49ab4b6c4f
commit
f9d86b986b
81 changed files with 3809 additions and 3960 deletions
|
@ -148,9 +148,9 @@ extern u8 RSN_CIPHER_SUITE_CCMP[];
|
|||
extern u8 RSN_CIPHER_SUITE_WEP104[];
|
||||
|
||||
enum ratr_table_mode {
|
||||
RATR_INX_WIRELESS_NGB = 0, // BGN 40 Mhz 2SS 1SS
|
||||
RATR_INX_WIRELESS_NG = 1, // GN or N
|
||||
RATR_INX_WIRELESS_NB = 2, // BGN 20 Mhz 2SS 1SS or BN
|
||||
RATR_INX_WIRELESS_NGB = 0, /* BGN 40 Mhz 2SS 1SS */
|
||||
RATR_INX_WIRELESS_NG = 1, /* GN or N */
|
||||
RATR_INX_WIRELESS_NB = 2, /* BGN 20 Mhz 2SS 1SS or BN */
|
||||
RATR_INX_WIRELESS_N = 3,
|
||||
RATR_INX_WIRELESS_GB = 4,
|
||||
RATR_INX_WIRELESS_G = 5,
|
||||
|
@ -161,21 +161,21 @@ enum ratr_table_mode {
|
|||
|
||||
enum NETWORK_TYPE {
|
||||
WIRELESS_INVALID = 0,
|
||||
//Sub-Element
|
||||
WIRELESS_11B = BIT(0), // tx: cck only , rx: cck only, hw: cck
|
||||
WIRELESS_11G = BIT(1), // tx: ofdm only, rx: ofdm & cck, hw: cck & ofdm
|
||||
WIRELESS_11A = BIT(2), // tx: ofdm only, rx: ofdm only, hw: ofdm only
|
||||
WIRELESS_11_24N = BIT(3), // tx: MCS only, rx: MCS & cck, hw: MCS & cck
|
||||
WIRELESS_11_5N = BIT(4), // tx: MCS only, rx: MCS & ofdm, hw: ofdm only
|
||||
//WIRELESS_AUTO = BIT(5),
|
||||
/* Sub-Element */
|
||||
WIRELESS_11B = BIT(0), /* tx: cck only , rx: cck only, hw: cck */
|
||||
WIRELESS_11G = BIT(1), /* tx: ofdm only, rx: ofdm & cck, hw: cck & ofdm */
|
||||
WIRELESS_11A = BIT(2), /* tx: ofdm only, rx: ofdm only, hw: ofdm only */
|
||||
WIRELESS_11_24N = BIT(3), /* tx: MCS only, rx: MCS & cck, hw: MCS & cck */
|
||||
WIRELESS_11_5N = BIT(4), /* tx: MCS only, rx: MCS & ofdm, hw: ofdm only */
|
||||
/* WIRELESS_AUTO = BIT(5), */
|
||||
WIRELESS_AC = BIT(6),
|
||||
|
||||
//Combination
|
||||
WIRELESS_11BG = (WIRELESS_11B|WIRELESS_11G), // tx: cck & ofdm, rx: cck & ofdm & MCS, hw: cck & ofdm
|
||||
WIRELESS_11G_24N = (WIRELESS_11G|WIRELESS_11_24N), // tx: ofdm & MCS, rx: ofdm & cck & MCS, hw: cck & ofdm
|
||||
WIRELESS_11A_5N = (WIRELESS_11A|WIRELESS_11_5N), // tx: ofdm & MCS, rx: ofdm & MCS, hw: ofdm only
|
||||
WIRELESS_11BG_24N = (WIRELESS_11B|WIRELESS_11G|WIRELESS_11_24N), // tx: ofdm & cck & MCS, rx: ofdm & cck & MCS, hw: ofdm & cck
|
||||
WIRELESS_11AGN = (WIRELESS_11A|WIRELESS_11G|WIRELESS_11_24N|WIRELESS_11_5N), // tx: ofdm & MCS, rx: ofdm & MCS, hw: ofdm only
|
||||
/* Combination */
|
||||
WIRELESS_11BG = (WIRELESS_11B|WIRELESS_11G), /* tx: cck & ofdm, rx: cck & ofdm & MCS, hw: cck & ofdm */
|
||||
WIRELESS_11G_24N = (WIRELESS_11G|WIRELESS_11_24N), /* tx: ofdm & MCS, rx: ofdm & cck & MCS, hw: cck & ofdm */
|
||||
WIRELESS_11A_5N = (WIRELESS_11A|WIRELESS_11_5N), /* tx: ofdm & MCS, rx: ofdm & MCS, hw: ofdm only */
|
||||
WIRELESS_11BG_24N = (WIRELESS_11B|WIRELESS_11G|WIRELESS_11_24N), /* tx: ofdm & cck & MCS, rx: ofdm & cck & MCS, hw: ofdm & cck */
|
||||
WIRELESS_11AGN = (WIRELESS_11A|WIRELESS_11G|WIRELESS_11_24N|WIRELESS_11_5N), /* tx: ofdm & MCS, rx: ofdm & MCS, hw: ofdm only */
|
||||
WIRELESS_11ABGN = (WIRELESS_11A|WIRELESS_11B|WIRELESS_11G|WIRELESS_11_24N|WIRELESS_11_5N),
|
||||
};
|
||||
|
||||
|
@ -232,7 +232,7 @@ struct ieee_param {
|
|||
struct rtw_ieee80211_ht_cap ht_cap;
|
||||
} add_sta;
|
||||
struct {
|
||||
u8 reserved[2];//for set max_num_sta
|
||||
u8 reserved[2];/* for set max_num_sta */
|
||||
u8 buf[0];
|
||||
} bcn_ie;
|
||||
#endif
|
||||
|
@ -640,13 +640,13 @@ struct ieee80211_snap_hdr {
|
|||
* information for frames received. Not setting these will not cause
|
||||
* any adverse affects. */
|
||||
struct ieee80211_rx_stats {
|
||||
//u32 mac_time[2];
|
||||
/* u32 mac_time[2]; */
|
||||
s8 rssi;
|
||||
u8 signal;
|
||||
u8 noise;
|
||||
u8 received_channel;
|
||||
u16 rate; /* in 100 kbps */
|
||||
//u8 control;
|
||||
/* u8 control; */
|
||||
u8 mask;
|
||||
u8 freq;
|
||||
u16 len;
|
||||
|
@ -662,8 +662,8 @@ struct ieee80211_frag_entry {
|
|||
u32 first_frag_time;
|
||||
uint seq;
|
||||
uint last_frag;
|
||||
uint qos; //jackson
|
||||
uint tid; //jackson
|
||||
uint qos; /* jackson */
|
||||
uint tid; /* jackson */
|
||||
struct sk_buff *skb;
|
||||
u8 src_addr[ETH_ALEN];
|
||||
u8 dst_addr[ETH_ALEN];
|
||||
|
@ -820,7 +820,7 @@ struct ieee80211_authentication {
|
|||
u16 algorithm;
|
||||
u16 transaction;
|
||||
u16 status;
|
||||
//struct ieee80211_info_element_hdr info_element;
|
||||
/* struct ieee80211_info_element_hdr info_element; */
|
||||
} __attribute__ ((packed));
|
||||
|
||||
|
||||
|
@ -841,7 +841,7 @@ struct ieee80211_assoc_request_frame {
|
|||
struct rtw_ieee80211_hdr_3addr header;
|
||||
u16 capability;
|
||||
u16 listen_interval;
|
||||
//u8 current_ap[ETH_ALEN];
|
||||
/* u8 current_ap[ETH_ALEN]; */
|
||||
struct ieee80211_info_element_hdr info_element;
|
||||
} __attribute__ ((packed));
|
||||
|
||||
|
@ -850,7 +850,6 @@ struct ieee80211_assoc_response_frame {
|
|||
u16 capability;
|
||||
u16 status;
|
||||
u16 aid;
|
||||
// struct ieee80211_info_element info_element; /* supported rates */
|
||||
} __attribute__ ((packed));
|
||||
|
||||
struct ieee80211_txb {
|
||||
|
@ -875,7 +874,7 @@ struct ieee80211_txb {
|
|||
#define MAX_NETWORK_COUNT 128
|
||||
#define MAX_CHANNEL_NUMBER 161
|
||||
#define IEEE80211_SOFTMAC_SCAN_TIME 400
|
||||
//(HZ / 2)
|
||||
/* HZ / 2) */
|
||||
#define IEEE80211_SOFTMAC_ASSOC_RETRY_TIME (HZ * 2)
|
||||
|
||||
#define CRC_LENGTH 4U
|
||||
|
@ -972,7 +971,7 @@ struct tx_pending {
|
|||
#define IEEE_G (1<<2)
|
||||
#define IEEE_MODE_MASK (IEEE_A|IEEE_B|IEEE_G)
|
||||
|
||||
//Baron move to ieee80211.c
|
||||
/* Baron move to ieee80211.c */
|
||||
int ieee80211_is_empty_essid(const char *essid, int essid_len);
|
||||
int ieee80211_get_hdrlen(u16 fc);
|
||||
|
||||
|
@ -982,14 +981,14 @@ enum rtw_ieee80211_category {
|
|||
RTW_WLAN_CATEGORY_QOS = 1,
|
||||
RTW_WLAN_CATEGORY_DLS = 2,
|
||||
RTW_WLAN_CATEGORY_BACK = 3,
|
||||
RTW_WLAN_CATEGORY_PUBLIC = 4, //IEEE 802.11 public action frames
|
||||
RTW_WLAN_CATEGORY_PUBLIC = 4, /* IEEE 802.11 public action frames */
|
||||
RTW_WLAN_CATEGORY_RADIO_MEASUREMENT = 5,
|
||||
RTW_WLAN_CATEGORY_FT = 6,
|
||||
RTW_WLAN_CATEGORY_HT = 7,
|
||||
RTW_WLAN_CATEGORY_SA_QUERY = 8,
|
||||
RTW_WLAN_CATEGORY_TDLS = 12,
|
||||
RTW_WLAN_CATEGORY_WMM = 17,
|
||||
RTW_WLAN_CATEGORY_P2P = 0x7f,//P2P action frames
|
||||
RTW_WLAN_CATEGORY_P2P = 0x7f,/* P2P action frames */
|
||||
};
|
||||
|
||||
/* SPECTRUM_MGMT action code */
|
||||
|
@ -1003,16 +1002,16 @@ enum rtw_ieee80211_spectrum_mgmt_actioncode {
|
|||
};
|
||||
|
||||
enum _PUBLIC_ACTION{
|
||||
ACT_PUBLIC_BSSCOEXIST = 0, // 20/40 BSS Coexistence
|
||||
ACT_PUBLIC_BSSCOEXIST = 0, /* 20/40 BSS Coexistence */
|
||||
ACT_PUBLIC_DSE_ENABLE = 1,
|
||||
ACT_PUBLIC_DSE_DEENABLE = 2,
|
||||
ACT_PUBLIC_DSE_REG_LOCATION = 3,
|
||||
ACT_PUBLIC_EXT_CHL_SWITCH = 4,
|
||||
ACT_PUBLIC_DSE_MSR_REQ = 5,
|
||||
ACT_PUBLIC_DSE_MSR_RPRT = 6,
|
||||
ACT_PUBLIC_MP = 7, // Measurement Pilot
|
||||
ACT_PUBLIC_MP = 7, /* Measurement Pilot */
|
||||
ACT_PUBLIC_DSE_PWR_CONSTRAINT = 8,
|
||||
ACT_PUBLIC_VENDOR = 9, // for WIFI_DIRECT
|
||||
ACT_PUBLIC_VENDOR = 9, /* for WIFI_DIRECT */
|
||||
ACT_PUBLIC_GAS_INITIAL_REQ = 10,
|
||||
ACT_PUBLIC_GAS_INITIAL_RSP = 11,
|
||||
ACT_PUBLIC_GAS_COMEBACK_REQ = 12,
|
||||
|
@ -1104,44 +1103,17 @@ enum rtw_ieee80211_back_parties {
|
|||
|
||||
/* Represent channel details, subset of ieee80211_channel */
|
||||
struct rtw_ieee80211_channel {
|
||||
//enum ieee80211_band band;
|
||||
//u16 center_freq;
|
||||
u16 hw_value;
|
||||
u32 flags;
|
||||
//int max_antenna_gain;
|
||||
//int max_power;
|
||||
//int max_reg_power;
|
||||
//bool beacon_found;
|
||||
//u32 orig_flags;
|
||||
//int orig_mag;
|
||||
//int orig_mpwr;
|
||||
};
|
||||
|
||||
#define CHAN_FMT \
|
||||
/*"band:%d, "*/ \
|
||||
/*"center_freq:%u, "*/ \
|
||||
"hw_value:%u, " \
|
||||
"flags:0x%08x" \
|
||||
/*"max_antenna_gain:%d\n"*/ \
|
||||
/*"max_power:%d\n"*/ \
|
||||
/*"max_reg_power:%d\n"*/ \
|
||||
/*"beacon_found:%u\n"*/ \
|
||||
/*"orig_flags:0x%08x\n"*/ \
|
||||
/*"orig_mag:%d\n"*/ \
|
||||
/*"orig_mpwr:%d\n"*/
|
||||
|
||||
#define CHAN_ARG(channel) \
|
||||
/*(channel)->band*/ \
|
||||
/*, (channel)->center_freq*/ \
|
||||
(channel)->hw_value \
|
||||
, (channel)->flags \
|
||||
/*, (channel)->max_antenna_gain*/ \
|
||||
/*, (channel)->max_power*/ \
|
||||
/*, (channel)->max_reg_power*/ \
|
||||
/*, (channel)->beacon_found*/ \
|
||||
/*, (channel)->orig_flags*/ \
|
||||
/*, (channel)->orig_mag*/ \
|
||||
/*, (channel)->orig_mpwr*/ \
|
||||
|
||||
/* Parsed Information Elements */
|
||||
struct rtw_ieee802_11_elems {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue