mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 22:43:04 +00:00
rtl8188eu: Remove C90 comments from include/*.h
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
e2285839e9
commit
b2720d8002
73 changed files with 3323 additions and 3402 deletions
|
@ -151,9 +151,9 @@ extern u8 RSN_CIPHER_SUITE_CCMP[];
|
|||
extern u8 RSN_CIPHER_SUITE_WEP104[];
|
||||
|
||||
typedef 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,
|
||||
|
@ -165,21 +165,21 @@ typedef 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),
|
||||
};
|
||||
|
||||
|
@ -236,7 +236,7 @@ typedef 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
|
||||
|
@ -644,13 +644,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;
|
||||
|
@ -666,8 +666,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];
|
||||
|
@ -739,7 +739,7 @@ struct ieee80211_softmac_stats{
|
|||
#ifdef CONFIG_IEEE80211W
|
||||
#define BIP_MAX_KEYID 5
|
||||
#define BIP_AAD_SIZE 20
|
||||
#endif //CONFIG_IEEE80211W
|
||||
#endif /* CONFIG_IEEE80211W */
|
||||
|
||||
struct ieee80211_security {
|
||||
u16 active_key:2,
|
||||
|
@ -830,7 +830,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));
|
||||
|
||||
struct ieee80211_probe_response {
|
||||
|
@ -850,7 +850,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));
|
||||
|
||||
|
@ -859,7 +859,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 {
|
||||
|
@ -883,7 +882,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
|
||||
|
@ -993,7 +992,7 @@ typedef struct tx_pending_t{
|
|||
#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);
|
||||
|
||||
|
@ -1003,16 +1002,16 @@ 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_UNPROTECTED_WNM = 11, // add for CONFIG_IEEE80211W, none 11w also can use
|
||||
RTW_WLAN_CATEGORY_UNPROTECTED_WNM = 11, /* add for CONFIG_IEEE80211W, none 11w also can use */
|
||||
RTW_WLAN_CATEGORY_TDLS = 12,
|
||||
RTW_WLAN_CATEGORY_SELF_PROTECTED = 15, // add for CONFIG_IEEE80211W, none 11w also can use
|
||||
RTW_WLAN_CATEGORY_SELF_PROTECTED = 15, /* add for CONFIG_IEEE80211W, none 11w also can use */
|
||||
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 */
|
||||
|
@ -1026,16 +1025,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,
|
||||
|
@ -1127,17 +1126,17 @@ enum rtw_ieee80211_back_parties {
|
|||
|
||||
/* Represent channel details, subset of ieee80211_channel */
|
||||
struct rtw_ieee80211_channel {
|
||||
//enum ieee80211_band band;
|
||||
//u16 center_freq;
|
||||
/* 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;
|
||||
/* 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 \
|
||||
|
@ -1287,7 +1286,7 @@ void dump_wfd_ie(u8 *ie, u32 ie_len);
|
|||
int rtw_get_wfd_ie(u8 *in_ie, int in_len, u8 *wfd_ie, uint *wfd_ielen);
|
||||
int rtw_get_wfd_ie_from_scan_queue(u8 *in_ie, int in_len, u8 *p2p_ie, uint *p2p_ielen, u8 frame_type);
|
||||
int rtw_get_wfd_attr_content(u8 *wfd_ie, uint wfd_ielen, u8 target_attr_id ,u8 *attr_content, uint *attr_contentlen);
|
||||
#endif // CONFIG_P2P
|
||||
#endif /* CONFIG_P2P */
|
||||
|
||||
uint rtw_get_rateset_len(u8 *rateset);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue