forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/staging/rtl8188eu/include/ieee80211.h
....@@ -12,12 +12,6 @@
1212 #include "wifi.h"
1313 #include <linux/wireless.h>
1414
15
-#define MGMT_QUEUE_NUM 5
16
-
17
-#define ETH_ALEN 6
18
-#define ETH_TYPE_LEN 2
19
-#define PAYLOAD_TYPE_LEN 1
20
-
2115 #ifdef CONFIG_88EU_AP_MODE
2216
2317 #define RTL_IOCTL_HOSTAPD (SIOCIWFIRSTPRIV + 28)
....@@ -96,7 +90,6 @@
9690 #define IEEE_CRYPT_ERR_TX_KEY_SET_FAILED 6
9791 #define IEEE_CRYPT_ERR_CARD_CONF_FAILED 7
9892
99
-
10093 #define IEEE_CRYPT_ALG_NAME_LEN 16
10194
10295 #define WPA_CIPHER_NONE BIT(0)
....@@ -104,8 +97,6 @@
10497 #define WPA_CIPHER_WEP104 BIT(2)
10598 #define WPA_CIPHER_TKIP BIT(3)
10699 #define WPA_CIPHER_CCMP BIT(4)
107
-
108
-
109100
110101 #define WPA_SELECTOR_LEN 4
111102 extern u8 RTW_WPA_OUI_TYPE[];
....@@ -118,7 +109,6 @@
118109 extern u8 WPA_CIPHER_SUITE_WRAP[];
119110 extern u8 WPA_CIPHER_SUITE_CCMP[];
120111 extern u8 WPA_CIPHER_SUITE_WEP104[];
121
-
122112
123113 #define RSN_HEADER_LEN 4
124114 #define RSN_SELECTOR_LEN 4
....@@ -198,7 +188,6 @@
198188 #define IsSupportedTxMCS(NetType) \
199189 ((NetType) & (WIRELESS_11_24N | WIRELESS_11_5N) ? true : false)
200190
201
-
202191 struct ieee_param {
203192 u32 cmd;
204193 u8 sta_addr[ETH_ALEN];
....@@ -276,10 +265,8 @@
276265 * WEP IV and ICV. (this interpretation suggested by Ramiro Barreiro)
277266 */
278267
279
-
280268 #define IEEE80211_HLEN 30
281269 #define IEEE80211_FRAME_LEN (IEEE80211_DATA_LEN + IEEE80211_HLEN)
282
-
283270
284271 /* this is stolen from ipw2200 driver */
285272 #define IEEE_IBSS_MAC_HASH_SIZE 31
....@@ -302,7 +289,6 @@
302289 /* sequence control field */
303290 #define RTW_IEEE80211_SCTL_FRAG 0x000F
304291 #define RTW_IEEE80211_SCTL_SEQ 0xFFF0
305
-
306292
307293 #define RTW_ERP_INFO_NON_ERP_PRESENT BIT(0)
308294 #define RTW_ERP_INFO_USE_PROTECTION BIT(1)
....@@ -359,7 +345,6 @@
359345
360346 #define IEEE80211_CCK_RATE_LEN 4
361347 #define IEEE80211_NUM_OFDM_RATESLEN 8
362
-
363348
364349 #define IEEE80211_CCK_RATE_1MB 0x02
365350 #define IEEE80211_CCK_RATE_2MB 0x04
....@@ -541,16 +526,6 @@
541526 RTW_WLAN_CATEGORY_P2P = 0x7f,/* P2P action frames */
542527 };
543528
544
-/* SPECTRUM_MGMT action code */
545
-enum rtw_ieee80211_spectrum_mgmt_actioncode {
546
- RTW_WLAN_ACTION_SPCT_MSR_REQ = 0,
547
- RTW_WLAN_ACTION_SPCT_MSR_RPRT = 1,
548
- RTW_WLAN_ACTION_SPCT_TPC_REQ = 2,
549
- RTW_WLAN_ACTION_SPCT_TPC_RPRT = 3,
550
- RTW_WLAN_ACTION_SPCT_CHL_SWITCH = 4,
551
- RTW_WLAN_ACTION_SPCT_EXT_CHL_SWITCH = 5,
552
-};
553
-
554529 enum _PUBLIC_ACTION {
555530 ACT_PUBLIC_BSSCOEXIST = 0, /* 20/40 BSS Coexistence */
556531 ACT_PUBLIC_DSE_ENABLE = 1,
....@@ -618,7 +593,6 @@
618593 #define WME_TSPEC_DIRECTION_UPLINK 0
619594 #define WME_TSPEC_DIRECTION_DOWNLINK 1
620595 #define WME_TSPEC_DIRECTION_BI_DIRECTIONAL 3
621
-
622596
623597 #define OUI_BROADCOM 0x00904c /* Broadcom (Epigram) */
624598
....@@ -749,8 +723,8 @@
749723 int rtw_parse_wpa2_ie(u8 *wpa_ie, int wpa_ie_len, int *group_cipher,
750724 int *pairwise_cipher, int *is_8021x);
751725
752
-int rtw_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len,
753
- u8 *wpa_ie, u16 *wpa_len);
726
+void rtw_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len,
727
+ u8 *wpa_ie, u16 *wpa_len);
754728
755729 u8 rtw_is_wps_ie(u8 *ie_ptr, uint *wps_ielen);
756730 u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen);
....@@ -764,14 +738,13 @@
764738 struct registry_priv;
765739 int rtw_generate_ie(struct registry_priv *pregistrypriv);
766740
767
-
768741 int rtw_get_bit_value_from_ieee_value(u8 val);
769742
770743 bool rtw_is_cckrates_included(u8 *rate);
771744
772745 bool rtw_is_cckratesonly_included(u8 *rate);
773746
774
-int rtw_check_network_type(unsigned char *rate, int ratelen, int channel);
747
+int rtw_check_network_type(unsigned char *rate);
775748
776749 void rtw_get_bcn_info(struct wlan_network *pnetwork);
777750