forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/drivers/staging/rtl8723bs/include/ieee80211.h
....@@ -98,8 +98,8 @@
9898
9999
100100 #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;
103103 extern u8 WPA_AUTH_KEY_MGMT_NONE[];
104104 extern u8 WPA_AUTH_KEY_MGMT_UNSPEC_802_1X[];
105105 extern u8 WPA_AUTH_KEY_MGMT_PSK_OVER_802_1X[];
....@@ -139,7 +139,7 @@
139139 RATEID_IDX_VHT_1SS = 10,
140140 } RATEID_IDX, *PRATEID_IDX;
141141
142
-typedef enum _RATR_TABLE_MODE{
142
+typedef enum _RATR_TABLE_MODE {
143143 RATR_INX_WIRELESS_NGB = 0, /* BGN 40 Mhz 2SS 1SS */
144144 RATR_INX_WIRELESS_NG = 1, /* GN or N */
145145 RATR_INX_WIRELESS_NB = 2, /* BGN 20 Mhz 2SS 1SS or BN */
....@@ -149,11 +149,10 @@
149149 RATR_INX_WIRELESS_B = 6,
150150 RATR_INX_WIRELESS_MC = 7,
151151 RATR_INX_WIRELESS_AC_N = 8,
152
-}RATR_TABLE_MODE, *PRATR_TABLE_MODE;
152
+} RATR_TABLE_MODE, *PRATR_TABLE_MODE;
153153
154154
155
-enum NETWORK_TYPE
156
-{
155
+enum NETWORK_TYPE {
157156 WIRELESS_INVALID = 0,
158157 /* Sub-Element */
159158 WIRELESS_11B = BIT(0), /* tx: cck only , rx: cck only, hw: cck */
....@@ -202,7 +201,7 @@
202201 #define IsSupportedVHT(NetType) (((NetType) & (WIRELESS_11AC)) ? true : false)
203202
204203
205
-typedef struct ieee_param {
204
+struct ieee_param {
206205 u32 cmd;
207206 u8 sta_addr[ETH_ALEN];
208207 union {
....@@ -240,15 +239,15 @@
240239 u8 buf[0];
241240 } bcn_ie;
242241 } u;
243
-}ieee_param;
242
+};
244243
245
-typedef struct ieee_param_ex {
244
+struct ieee_param_ex {
246245 u32 cmd;
247246 u8 sta_addr[ETH_ALEN];
248247 u8 data[0];
249
-}ieee_param_ex;
248
+};
250249
251
-struct sta_data{
250
+struct sta_data {
252251 u16 aid;
253252 u16 capability;
254253 int flags;
....@@ -439,7 +438,7 @@
439438 #define IEEE80211_OFDM_SHIFT_MASK_A 4
440439
441440
442
-enum MGN_RATE{
441
+enum MGN_RATE {
443442 MGN_1M = 0x02,
444443 MGN_2M = 0x04,
445444 MGN_5_5M = 0x0B,
....@@ -870,13 +869,6 @@
870869 #define CFG_IEEE80211_RESERVE_FCS (1<<0)
871870 #define CFG_IEEE80211_COMPUTE_FCS (1<<1)
872871
873
-typedef struct tx_pending_t{
874
- int frag;
875
- struct ieee80211_txb *txb;
876
-}tx_pending_t;
877
-
878
-
879
-
880872 #define MAXTID 16
881873
882874 #define IEEE_A (1<<0)
....@@ -913,7 +905,7 @@
913905 RTW_WLAN_ACTION_SPCT_EXT_CHL_SWITCH = 5,
914906 };
915907
916
-enum _PUBLIC_ACTION{
908
+enum _PUBLIC_ACTION {
917909 ACT_PUBLIC_BSSCOEXIST = 0, /* 20/40 BSS Coexistence */
918910 ACT_PUBLIC_DSE_ENABLE = 1,
919911 ACT_PUBLIC_DSE_DEENABLE = 2,
....@@ -960,7 +952,7 @@
960952 };
961953
962954 /* VHT features action code */
963
-enum rtw_ieee80211_vht_actioncode{
955
+enum rtw_ieee80211_vht_actioncode {
964956 RTW_WLAN_ACTION_VHT_COMPRESSED_BEAMFORMING = 0,
965957 RTW_WLAN_ACTION_VHT_GROUPID_MANAGEMENT = 1,
966958 RTW_WLAN_ACTION_VHT_OPMODE_NOTIFICATION = 2,
....@@ -1135,7 +1127,7 @@
11351127 u8 *rtw_get_ie_ex(u8 *in_ie, uint in_len, u8 eid, u8 *oui, u8 oui_len, u8 *ie, uint *ielen);
11361128 int rtw_ies_remove_ie(u8 *ies, uint *ies_len, uint offset, u8 eid, u8 *oui, u8 oui_len);
11371129
1138
-void rtw_set_supported_rate(u8 *SupportedRates, uint mode) ;
1130
+void rtw_set_supported_rate(u8 *SupportedRates, uint mode);
11391131
11401132 unsigned char *rtw_get_wpa_ie(unsigned char *pie, int *wpa_ie_len, int limit);
11411133 unsigned char *rtw_get_wpa2_ie(unsigned char *pie, int *rsn_ie_len, int limit);
....@@ -1145,12 +1137,12 @@
11451137 int rtw_parse_wpa_ie(u8 *wpa_ie, int wpa_ie_len, int *group_cipher, int *pairwise_cipher, int *is_8021x);
11461138 int rtw_parse_wpa2_ie(u8 *wpa_ie, int wpa_ie_len, int *group_cipher, int *pairwise_cipher, int *is_8021x);
11471139
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);
11491141
11501142 u8 rtw_is_wps_ie(u8 *ie_ptr, uint *wps_ielen);
11511143 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);
11541146
11551147 /**
11561148 * for_each_ie - iterate over continuous IEs