.. | .. |
---|
98 | 98 | |
---|
99 | 99 | |
---|
100 | 100 | #define WPA_SELECTOR_LEN 4 |
---|
101 | | -extern u8 RTW_WPA_OUI_TYPE[] ; |
---|
102 | | -extern u16 RTW_WPA_VERSION ; |
---|
| 101 | +extern u8 RTW_WPA_OUI_TYPE[]; |
---|
| 102 | +extern u16 RTW_WPA_VERSION; |
---|
103 | 103 | extern u8 WPA_AUTH_KEY_MGMT_NONE[]; |
---|
104 | 104 | extern u8 WPA_AUTH_KEY_MGMT_UNSPEC_802_1X[]; |
---|
105 | 105 | extern u8 WPA_AUTH_KEY_MGMT_PSK_OVER_802_1X[]; |
---|
.. | .. |
---|
139 | 139 | RATEID_IDX_VHT_1SS = 10, |
---|
140 | 140 | } RATEID_IDX, *PRATEID_IDX; |
---|
141 | 141 | |
---|
142 | | -typedef enum _RATR_TABLE_MODE{ |
---|
| 142 | +typedef enum _RATR_TABLE_MODE { |
---|
143 | 143 | RATR_INX_WIRELESS_NGB = 0, /* BGN 40 Mhz 2SS 1SS */ |
---|
144 | 144 | RATR_INX_WIRELESS_NG = 1, /* GN or N */ |
---|
145 | 145 | RATR_INX_WIRELESS_NB = 2, /* BGN 20 Mhz 2SS 1SS or BN */ |
---|
.. | .. |
---|
149 | 149 | RATR_INX_WIRELESS_B = 6, |
---|
150 | 150 | RATR_INX_WIRELESS_MC = 7, |
---|
151 | 151 | RATR_INX_WIRELESS_AC_N = 8, |
---|
152 | | -}RATR_TABLE_MODE, *PRATR_TABLE_MODE; |
---|
| 152 | +} RATR_TABLE_MODE, *PRATR_TABLE_MODE; |
---|
153 | 153 | |
---|
154 | 154 | |
---|
155 | | -enum NETWORK_TYPE |
---|
156 | | -{ |
---|
| 155 | +enum NETWORK_TYPE { |
---|
157 | 156 | WIRELESS_INVALID = 0, |
---|
158 | 157 | /* Sub-Element */ |
---|
159 | 158 | WIRELESS_11B = BIT(0), /* tx: cck only , rx: cck only, hw: cck */ |
---|
.. | .. |
---|
202 | 201 | #define IsSupportedVHT(NetType) (((NetType) & (WIRELESS_11AC)) ? true : false) |
---|
203 | 202 | |
---|
204 | 203 | |
---|
205 | | -typedef struct ieee_param { |
---|
| 204 | +struct ieee_param { |
---|
206 | 205 | u32 cmd; |
---|
207 | 206 | u8 sta_addr[ETH_ALEN]; |
---|
208 | 207 | union { |
---|
.. | .. |
---|
240 | 239 | u8 buf[0]; |
---|
241 | 240 | } bcn_ie; |
---|
242 | 241 | } u; |
---|
243 | | -}ieee_param; |
---|
| 242 | +}; |
---|
244 | 243 | |
---|
245 | | -typedef struct ieee_param_ex { |
---|
| 244 | +struct ieee_param_ex { |
---|
246 | 245 | u32 cmd; |
---|
247 | 246 | u8 sta_addr[ETH_ALEN]; |
---|
248 | 247 | u8 data[0]; |
---|
249 | | -}ieee_param_ex; |
---|
| 248 | +}; |
---|
250 | 249 | |
---|
251 | | -struct sta_data{ |
---|
| 250 | +struct sta_data { |
---|
252 | 251 | u16 aid; |
---|
253 | 252 | u16 capability; |
---|
254 | 253 | int flags; |
---|
.. | .. |
---|
439 | 438 | #define IEEE80211_OFDM_SHIFT_MASK_A 4 |
---|
440 | 439 | |
---|
441 | 440 | |
---|
442 | | -enum MGN_RATE{ |
---|
| 441 | +enum MGN_RATE { |
---|
443 | 442 | MGN_1M = 0x02, |
---|
444 | 443 | MGN_2M = 0x04, |
---|
445 | 444 | MGN_5_5M = 0x0B, |
---|
.. | .. |
---|
870 | 869 | #define CFG_IEEE80211_RESERVE_FCS (1<<0) |
---|
871 | 870 | #define CFG_IEEE80211_COMPUTE_FCS (1<<1) |
---|
872 | 871 | |
---|
873 | | -typedef struct tx_pending_t{ |
---|
874 | | - int frag; |
---|
875 | | - struct ieee80211_txb *txb; |
---|
876 | | -}tx_pending_t; |
---|
877 | | - |
---|
878 | | - |
---|
879 | | - |
---|
880 | 872 | #define MAXTID 16 |
---|
881 | 873 | |
---|
882 | 874 | #define IEEE_A (1<<0) |
---|
.. | .. |
---|
913 | 905 | RTW_WLAN_ACTION_SPCT_EXT_CHL_SWITCH = 5, |
---|
914 | 906 | }; |
---|
915 | 907 | |
---|
916 | | -enum _PUBLIC_ACTION{ |
---|
| 908 | +enum _PUBLIC_ACTION { |
---|
917 | 909 | ACT_PUBLIC_BSSCOEXIST = 0, /* 20/40 BSS Coexistence */ |
---|
918 | 910 | ACT_PUBLIC_DSE_ENABLE = 1, |
---|
919 | 911 | ACT_PUBLIC_DSE_DEENABLE = 2, |
---|
.. | .. |
---|
960 | 952 | }; |
---|
961 | 953 | |
---|
962 | 954 | /* VHT features action code */ |
---|
963 | | -enum rtw_ieee80211_vht_actioncode{ |
---|
| 955 | +enum rtw_ieee80211_vht_actioncode { |
---|
964 | 956 | RTW_WLAN_ACTION_VHT_COMPRESSED_BEAMFORMING = 0, |
---|
965 | 957 | RTW_WLAN_ACTION_VHT_GROUPID_MANAGEMENT = 1, |
---|
966 | 958 | RTW_WLAN_ACTION_VHT_OPMODE_NOTIFICATION = 2, |
---|
.. | .. |
---|
1135 | 1127 | u8 *rtw_get_ie_ex(u8 *in_ie, uint in_len, u8 eid, u8 *oui, u8 oui_len, u8 *ie, uint *ielen); |
---|
1136 | 1128 | int rtw_ies_remove_ie(u8 *ies, uint *ies_len, uint offset, u8 eid, u8 *oui, u8 oui_len); |
---|
1137 | 1129 | |
---|
1138 | | -void rtw_set_supported_rate(u8 *SupportedRates, uint mode) ; |
---|
| 1130 | +void rtw_set_supported_rate(u8 *SupportedRates, uint mode); |
---|
1139 | 1131 | |
---|
1140 | 1132 | unsigned char *rtw_get_wpa_ie(unsigned char *pie, int *wpa_ie_len, int limit); |
---|
1141 | 1133 | unsigned char *rtw_get_wpa2_ie(unsigned char *pie, int *rsn_ie_len, int limit); |
---|
.. | .. |
---|
1145 | 1137 | int rtw_parse_wpa_ie(u8 *wpa_ie, int wpa_ie_len, int *group_cipher, int *pairwise_cipher, int *is_8021x); |
---|
1146 | 1138 | int rtw_parse_wpa2_ie(u8 *wpa_ie, int wpa_ie_len, int *group_cipher, int *pairwise_cipher, int *is_8021x); |
---|
1147 | 1139 | |
---|
1148 | | -int rtw_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len, u8 *wpa_ie, u16 *wpa_len); |
---|
| 1140 | +void rtw_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len, u8 *wpa_ie, u16 *wpa_len); |
---|
1149 | 1141 | |
---|
1150 | 1142 | u8 rtw_is_wps_ie(u8 *ie_ptr, uint *wps_ielen); |
---|
1151 | 1143 | u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen); |
---|
1152 | | -u8 *rtw_get_wps_attr(u8 *wps_ie, uint wps_ielen, u16 target_attr_id , u8 *buf_attr, u32 *len_attr); |
---|
1153 | | -u8 *rtw_get_wps_attr_content(u8 *wps_ie, uint wps_ielen, u16 target_attr_id , u8 *buf_content, uint *len_content); |
---|
| 1144 | +u8 *rtw_get_wps_attr(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, u8 *buf_attr, u32 *len_attr); |
---|
| 1145 | +u8 *rtw_get_wps_attr_content(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, u8 *buf_content, uint *len_content); |
---|
1154 | 1146 | |
---|
1155 | 1147 | /** |
---|
1156 | 1148 | * for_each_ie - iterate over continuous IEs |
---|