1 /******************************************************************************
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of version 2 of the GNU General Public License as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
19 ******************************************************************************/
23 #include <osdep_service.h>
24 #include <mlme_osdep.h>
25 #include <drv_types.h>
26 #include <wlan_bssdef.h>
28 #define MAX_BSS_CNT 128
29 #define MAX_JOIN_TIMEOUT 6500
31 /* Increase the scanning timeout because of increasing the SURVEY_TO value. */
33 #define SCANNING_TIMEOUT 8000
35 #define SCAN_INTERVAL (30) /* unit:2sec, 30*2=60sec */
37 #define SCANQUEUE_LIFETIME 20 /* unit:sec */
39 #define WIFI_NULL_STATE 0x00000000
41 #define WIFI_ASOC_STATE 0x00000001 /* Under Linked state */
42 #define WIFI_REASOC_STATE 0x00000002
43 #define WIFI_SLEEP_STATE 0x00000004
44 #define WIFI_STATION_STATE 0x00000008
46 #define WIFI_AP_STATE 0x00000010
47 #define WIFI_ADHOC_STATE 0x00000020
48 #define WIFI_ADHOC_MASTER_STATE 0x00000040
49 #define WIFI_UNDER_LINKING 0x00000080
51 #define WIFI_UNDER_WPS 0x00000100
52 #define WIFI_STA_ALIVE_CHK_STATE 0x00000400
53 #define WIFI_SITE_MONITOR 0x00000800 /* to indicate the station is under site surveying */
55 #define WIFI_MP_STATE 0x00010000
56 #define WIFI_MP_CTX_BACKGROUND 0x00020000 /* in continuous tx background */
57 #define WIFI_MP_CTX_ST 0x00040000 /* in continuous tx with single-tone */
58 #define WIFI_MP_CTX_BACKGROUND_PENDING 0x00080000 /* pending in continuous tx background due to out of skb */
59 #define WIFI_MP_CTX_CCK_HW 0x00100000 /* in continuous tx */
60 #define WIFI_MP_CTX_CCK_CS 0x00200000 /* in continuous tx with carrier suppression */
61 #define WIFI_MP_LPBK_STATE 0x00400000
63 #define _FW_UNDER_LINKING WIFI_UNDER_LINKING
64 #define _FW_LINKED WIFI_ASOC_STATE
65 #define _FW_UNDER_SURVEY WIFI_SITE_MONITOR
67 enum dot11AuthAlgrthmNum {
68 dot11AuthAlgrthm_Open = 0,
69 dot11AuthAlgrthm_Shared,
70 dot11AuthAlgrthm_8021X,
71 dot11AuthAlgrthm_Auto,
72 dot11AuthAlgrthm_WAPI,
73 dot11AuthAlgrthm_MaxNum
76 /* Scan type including active and passive scan. */
83 enum SCAN_RESULT_TYPE {
84 SCAN_RESULT_P2P_ONLY = 0, /* Will return all the P2P devices. */
85 SCAN_RESULT_ALL = 1, /* Will return all the scanned device,
87 SCAN_RESULT_WFD_TYPE = 2 /* Will just return the correct WFD
89 /* If this device is Miracast sink
90 * device, it will just return all the
91 * Miracast source devices. */
95 there are several "locks" in mlme_priv,
96 since mlme_priv is a shared resource between many threads,
97 like ISR/Call-Back functions, the OID handlers, and even timer functions.
99 Each _queue has its own locks, already.
100 Other items are protected by mlme_priv.lock.
102 To avoid possible dead lock, any thread trying to modifiying mlme_priv
103 SHALL not lock up more than one lock at a time!
106 #define traffic_threshold 10
107 #define traffic_scan_period 500
109 struct sitesurvey_ctrl {
113 struct timer_list sitesurvey_ctrl_timer;
116 struct rt_link_detect {
119 u32 NumRxUnicastOkInPeriod;
123 bool bHigherBusyTraffic; /* For interrupt migration purpose. */
124 bool bHigherBusyRxTraffic; /* We may disable Tx interrupt according
126 bool bHigherBusyTxTraffic; /* We may disable Tx interrupt according
130 struct profile_info {
132 u8 ssid[ WLAN_SSID_MAXLEN ];
133 u8 peermac[ ETH_ALEN ];
136 struct tx_invite_req_info {
139 u8 go_ssid[ WLAN_SSID_MAXLEN ];
141 u8 go_bssid[ ETH_ALEN ];
142 u8 peer_macaddr[ ETH_ALEN ];
143 u8 operating_ch; /* This information will be set by using the
145 u8 peer_ch; /* The listen channel for peer P2P device */
148 struct tx_invite_resp_info {
149 u8 token; /* Used to record the dialog token of p2p invitation
153 struct tx_provdisc_req_info {
154 u16 wps_config_method_request; /* Used when sending the
155 * provisioning request frame*/
156 u16 peer_channel_num[2]; /* The channel number which the
157 * receiver stands. */
158 struct ndis_802_11_ssid ssid;
159 u8 peerDevAddr[ETH_ALEN]; /* Peer device address */
160 u8 peerIFAddr[ETH_ALEN]; /* Peer interface address */
161 u8 benable; /* This provision discovery
162 * request frame is trigger
166 /* When peer device issue prov_disc_req first, we should store the following
168 /* The UI must know this information to know which config method the
169 * remote p2p device needs. */
170 struct rx_provdisc_req_info {
171 u8 peerDevAddr[ETH_ALEN]; /* Peer device address */
172 u8 strconfig_method_desc_of_prov_disc_req[4]; /* description
173 * for the config method located in the provisioning
174 * discovery request frame. */
177 struct tx_nego_req_info {
178 u16 peer_channel_num[2]; /* The channel number. */
179 u8 peerDevAddr[ETH_ALEN]; /* Peer device address */
180 u8 benable; /* This negotiation request frame is
181 * trigger to send or not */
184 struct group_id_info {
185 u8 go_device_addr[ ETH_ALEN ]; /* The GO's device address of
187 u8 ssid[ WLAN_SSID_MAXLEN ]; /* The SSID of this P2P group */
190 struct scan_limit_info {
191 u8 scan_op_ch_only; /* When this flag is set, the driver
192 * should only scan the op. channel */
193 u8 operation_ch[2]; /* Store the op. chan of invitation */
196 struct wifidirect_info {
197 struct adapter *padapter;
198 struct timer_list find_phase_timer;
199 struct timer_list restore_p2p_state_timer;
201 /* Used to do the scanning. After confirming the peer is availalble,
202 * the driver transmits the P2P frame to peer. */
203 struct timer_list pre_tx_scan_timer;
204 struct timer_list reset_ch_sitesurvey;
205 struct timer_list reset_ch_sitesurvey2; /* Just for resetting the scan
206 * limit function by using p2p nego */
207 struct tx_provdisc_req_info tx_prov_disc_info;
208 struct rx_provdisc_req_info rx_prov_disc_info;
209 struct tx_invite_req_info invitereq_info;
210 /* Store the profile information of persistent group */
211 struct profile_info profileinfo[P2P_MAX_PERSISTENT_GROUP_NUM];
212 struct tx_invite_resp_info inviteresp_info;
213 struct tx_nego_req_info nego_req_info;
214 /* Store the group id info when doing the group negot handshake. */
215 struct group_id_info groupid_info;
216 /* Used for get the limit scan channel from the Invitation procedure */
217 struct scan_limit_info rx_invitereq_info;
218 /* Used for get the limit scan chan from the P2P negotiation handshake*/
219 struct scan_limit_info p2p_info;
221 enum P2P_STATE pre_p2p_state;
222 enum P2P_STATE p2p_state;
223 /* The device address should be the mac address of this device. */
224 u8 device_addr[ETH_ALEN];
225 u8 interface_addr[ETH_ALEN];
228 u8 operating_channel;
229 u8 listen_dwell; /* This value should be between 1 and 3 */
231 u8 p2p_wildcard_ssid[P2P_WILDCARD_SSID_LEN];
232 u8 intent; /* should only include the intent value. */
233 u8 p2p_peer_interface_addr[ETH_ALEN];
234 u8 p2p_peer_device_addr[ETH_ALEN];
235 u8 peer_intent; /* Included the intent value and tie breaker value. */
236 /* Device name for displaying on searching device screen */
237 u8 device_name[WPS_MAX_DEVICE_NAME_LEN];
239 u8 profileindex; /* Used to point to the index of profileinfo array */
240 u8 peer_operating_ch;
241 u8 find_phase_state_exchange_cnt;
242 /* The device password ID for group negotiation */
243 u16 device_password_id_for_nego;
244 u8 negotiation_dialog_token;
245 /* SSID information for group negotitation */
246 u8 nego_ssid[WLAN_SSID_MAXLEN];
248 u8 p2p_group_ssid[WLAN_SSID_MAXLEN];
249 u8 p2p_group_ssid_len;
250 /* Flag to know if the persistent function should be supported or not.*/
251 u8 persistent_supported;
252 /* In the Sigma test, the Sigma will provide this enable from the
253 * sta_set_p2p CAPI. */
256 u8 session_available; /* Flag to set the WFD session available to
257 * enable or disable "by Sigma" */
258 /* In the Sigma test, the Sigma will disable the session available
259 * by using the sta_preset CAPI. */
262 u8 wfd_tdls_enable; /* Flag to enable or disable the TDLS by WFD Sigma*/
265 u8 wfd_tdls_weaksec; /* Flag to enable or disable the weak security
266 * function for TDLS by WFD Sigma */
268 /* In this case, the driver can't issue the tdsl
269 * setup request frame. */
271 /* In this case, the driver can issue the tdls
272 * setup request frame */
273 /* even the current security is weak security. */
275 /* This field will store the WPS value (PIN value or PBC) that UI had
276 * got from the user. */
277 enum P2P_WPSINFO ui_got_wps_info;
278 u16 supported_wps_cm; /* This field describes the WPS config method
279 * which this driver supported. */
280 /* The value should be the combination of config
281 * method defined in page104 of WPS v2.0 spec.*/
282 /* This field will contain the length of body of P2P Channel List
283 * attribute of group negotiation response frame. */
284 uint channel_list_attr_len;
285 /* This field will contain the body of P2P Channel List attribute of
286 * group negotitation response frame. */
287 /* We will use the channel_cnt and channel_list fields when constructing
288 * the group negotiation confirm frame. */
289 u8 channel_list_attr[100];
290 enum P2P_PS_MODE p2p_ps_mode; /* indicate p2p ps mode */
291 enum P2P_PS_STATE p2p_ps_state; /* indicate p2p ps state */
292 u8 noa_index; /* Identifies and instance of Notice of Absence timing. */
293 u8 ctwindow; /* Client traffic window. A period of time in TU after TBTT. */
294 u8 opp_ps; /* opportunistic power save. */
295 u8 noa_num; /* number of NoA descriptor in P2P IE. */
296 u8 noa_count[P2P_MAX_NOA_NUM]; /* Count for owner, Type of client. */
297 /* Max duration for owner, preferred or min acceptable duration for
299 u32 noa_duration[P2P_MAX_NOA_NUM];
300 /* Length of interval for owner, preferred or max acceptable interval
302 u32 noa_interval[P2P_MAX_NOA_NUM];
303 /* schedule expressed in terms of the lower 4 bytes of the TSF timer. */
304 u32 noa_start_time[P2P_MAX_NOA_NUM];
307 struct tdls_ss_record { /* signal strength record */
308 u8 macaddr[ETH_ALEN];
310 u8 is_tdls_sta; /* true: direct link sta, false: else */
317 u8 sta_maximum; /* 1:tdls sta is equal (NUM_STA-1), reach max direct link number; 0: else; */
318 struct tdls_ss_record ss_record;
319 u8 macid_index; /* macid entry that is ready to write */
320 u8 clear_cam; /* cam entry that is trying to clear, using it in direct link teardown */
324 u8 collect_pkt_num[MAX_CHANNEL_NUM];
328 u8 dev_discovered; /* WFD_TDLS: for sigma test */
334 int fw_state; /* shall we protect this variable? maybe not necessarily... */
336 u8 to_join; /* flag */
337 u8 to_roaming; /* roaming trying times */
342 struct list_head *pscanned;
343 struct __queue free_bss_pool;
344 struct __queue scanned_queue;
346 u8 key_mask; /* use to restore wep key after hal_init */
349 struct ndis_802_11_ssid assoc_ssid;
352 struct wlan_network cur_network;
353 struct wlan_network *cur_network_scanned;
357 struct timer_list assoc_timer;
362 struct timer_list scan_to_timer; /* driver itself handles scan_timeout status. */
363 u32 scan_start_time; /* used to evaluate the time spent in scanning */
365 struct qos_priv qospriv;
367 /* Number of non-HT AP/stations */
370 /* Number of HT AP/stations 20 MHz */
371 /* int num_sta_ht_20mhz; */
373 int num_FortyMHzIntolerant;
374 struct ht_priv htpriv;
375 struct rt_link_detect LinkDetectInfo;
376 struct timer_list dynamic_chk_timer; /* dynamic/periodic check timer */
378 u8 acm_mask; /* for wmm acm mask */
380 enum rt_scan_type scan_mode; /* active: 1, passive: 0 */
382 /* u8 probereq_wpsie[MAX_WPS_IE_LEN];added in probe req */
383 /* int probereq_wpsie_len; */
384 u8 *wps_probe_req_ie;
385 u32 wps_probe_req_ie_len;
392 #if defined (CONFIG_88EU_AP_MODE)
393 /* Number of associated Non-ERP stations (i.e., stations using 802.11b
397 /* Number of associated stations that do not support Short Slot Time */
398 int num_sta_no_short_slot_time;
400 /* Number of associated stations that do not support Short Preamble */
401 int num_sta_no_short_preamble;
403 int olbc; /* Overlapping Legacy BSS Condition */
405 /* Number of HT assoc sta that do not support greenfield */
406 int num_sta_ht_no_gf;
408 /* Number of associated non-HT stations */
409 /* int num_sta_no_ht; */
411 /* Number of HT associated stations 20 MHz */
412 int num_sta_ht_20mhz;
414 /* Overlapping BSS information */
420 /* u8 *wps_probe_req_ie; */
421 u8 *wps_probe_resp_ie;
422 u8 *wps_assoc_resp_ie;
424 u32 wps_beacon_ie_len;
425 u32 wps_probe_resp_ie_len;
426 u32 wps_assoc_resp_ie_len;
429 u8 *p2p_probe_req_ie;
430 u8 *p2p_probe_resp_ie;
431 u8 *p2p_go_probe_resp_ie; /* for GO */
432 u8 *p2p_assoc_req_ie;
434 u32 p2p_beacon_ie_len;
435 u32 p2p_probe_req_ie_len;
436 u32 p2p_probe_resp_ie_len;
437 u32 p2p_go_probe_resp_ie_len; /* for GO */
438 u32 p2p_assoc_req_ie_len;
439 spinlock_t bcn_update_lock;
441 #endif /* if defined (CONFIG_88EU_AP_MODE) */
444 #ifdef CONFIG_88EU_AP_MODE
446 struct hostapd_priv {
447 struct adapter *padapter;
450 int hostapd_mode_init(struct adapter *padapter);
451 void hostapd_mode_unload(struct adapter *padapter);
454 extern unsigned char WPA_TKIP_CIPHER[4];
455 extern unsigned char RSN_TKIP_CIPHER[4];
456 extern unsigned char REALTEK_96B_IE[];
457 extern unsigned char MCS_rate_2R[16];
458 extern unsigned char MCS_rate_1R[16];
460 void rtw_joinbss_event_prehandle(struct adapter *adapter, u8 *pbuf);
461 void rtw_survey_event_callback(struct adapter *adapter, u8 *pbuf);
462 void rtw_surveydone_event_callback(struct adapter *adapter, u8 *pbuf);
463 void rtw_joinbss_event_callback(struct adapter *adapter, u8 *pbuf);
464 void rtw_stassoc_event_callback(struct adapter *adapter, u8 *pbuf);
465 void rtw_stadel_event_callback(struct adapter *adapter, u8 *pbuf);
466 void rtw_atimdone_event_callback(struct adapter *adapter, u8 *pbuf);
467 void rtw_cpwm_event_callback(struct adapter *adapter, u8 *pbuf);
468 void indicate_wx_scan_complete_event(struct adapter *padapter);
469 void rtw_indicate_wx_assoc_event(struct adapter *padapter);
470 void rtw_indicate_wx_disassoc_event(struct adapter *padapter);
471 int event_thread(void *context);
472 #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
473 void rtw_join_timeout_handler (void *FunctionContext);
474 void _rtw_scan_timeout_handler(void *FunctionContext);
476 void rtw_join_timeout_handler (struct timer_list *t);
477 void _rtw_scan_timeout_handler (struct timer_list *t);
479 void rtw_free_network_queue(struct adapter *adapter, u8 isfreeall);
480 int rtw_init_mlme_priv(struct adapter *adapter);
481 void rtw_free_mlme_priv (struct mlme_priv *pmlmepriv);
482 int rtw_select_and_join_from_scanned_queue(struct mlme_priv *pmlmepriv);
483 int rtw_set_key(struct adapter *adapter, struct security_priv *psecuritypriv,
484 int keyid, u8 set_tx);
485 int rtw_set_auth(struct adapter *adapter, struct security_priv *psecuritypriv);
487 static inline u8 *get_bssid(struct mlme_priv *pmlmepriv)
488 { /* if sta_mode:pmlmepriv->cur_network.network.MacAddress=> bssid */
489 /* if adhoc_mode:pmlmepriv->cur_network.network.MacAddress=> ibss mac address */
490 return pmlmepriv->cur_network.network.MacAddress;
493 static inline int check_fwstate(struct mlme_priv *pmlmepriv, int state)
495 if (pmlmepriv->fw_state & state)
501 static inline int get_fwstate(struct mlme_priv *pmlmepriv)
503 return pmlmepriv->fw_state;
507 * No Limit on the calling context,
508 * therefore set it to be the critical section...
510 * ### NOTE:#### (!!!!)
511 * MUST TAKE CARE THAT BEFORE CALLING THIS FUNC, YOU SHOULD HAVE LOCKED pmlmepriv->lock
513 static inline void set_fwstate(struct mlme_priv *pmlmepriv, int state)
515 pmlmepriv->fw_state |= state;
516 /* FOR HW integration */
517 if (_FW_UNDER_SURVEY==state)
518 pmlmepriv->bScanInProcess = true;
521 static inline void _clr_fwstate_(struct mlme_priv *pmlmepriv, int state)
523 pmlmepriv->fw_state &= ~state;
524 /* FOR HW integration */
525 if (_FW_UNDER_SURVEY==state)
526 pmlmepriv->bScanInProcess = false;
530 * No Limit on the calling context,
531 * therefore set it to be the critical section...
533 static inline void clr_fwstate(struct mlme_priv *pmlmepriv, int state)
535 spin_lock_bh(&pmlmepriv->lock);
536 if (check_fwstate(pmlmepriv, state) == true)
537 pmlmepriv->fw_state ^= state;
538 spin_unlock_bh(&pmlmepriv->lock);
541 static inline void clr_fwstate_ex(struct mlme_priv *pmlmepriv, int state)
543 spin_lock_bh(&pmlmepriv->lock);
544 _clr_fwstate_(pmlmepriv, state);
545 spin_unlock_bh(&pmlmepriv->lock);
548 static inline void up_scanned_network(struct mlme_priv *pmlmepriv)
550 spin_lock_bh(&pmlmepriv->lock);
551 pmlmepriv->num_of_scanned++;
552 spin_unlock_bh(&pmlmepriv->lock);
555 static inline void down_scanned_network(struct mlme_priv *pmlmepriv)
557 spin_lock_bh(&pmlmepriv->lock);
558 pmlmepriv->num_of_scanned--;
559 spin_unlock_bh(&pmlmepriv->lock);
562 static inline void set_scanned_network_val(struct mlme_priv *pmlmepriv, int val)
564 spin_lock_bh(&pmlmepriv->lock);
565 pmlmepriv->num_of_scanned = val;
566 spin_unlock_bh(&pmlmepriv->lock);
569 u16 rtw_get_capability(struct wlan_bssid_ex *bss);
570 void rtw_update_scanned_network(struct adapter *adapter,
571 struct wlan_bssid_ex *target);
572 void rtw_disconnect_hdl_under_linked(struct adapter *adapter,
573 struct sta_info *psta, u8 free_assoc);
574 void rtw_generate_random_ibss(u8 *pibss);
575 struct wlan_network *rtw_find_network(struct __queue *scanned_queue, u8 *addr);
576 struct wlan_network *rtw_get_oldest_wlan_network(struct __queue *scanned_queue);
578 void rtw_free_assoc_resources(struct adapter *adapter, int lock_scanned_queue);
579 void rtw_indicate_disconnect(struct adapter *adapter);
580 void rtw_indicate_connect(struct adapter *adapter);
581 void rtw_indicate_scan_done( struct adapter *padapter, bool aborted);
582 void rtw_scan_abort(struct adapter *adapter);
584 int rtw_restruct_sec_ie(struct adapter *adapter, u8 *in_ie, u8 *out_ie,
586 int rtw_restruct_wmm_ie(struct adapter *adapter, u8 *in_ie, u8 *out_ie,
587 uint in_len, uint initial_out_len);
588 void rtw_init_registrypriv_dev_network(struct adapter *adapter);
590 void rtw_update_registrypriv_dev_network(struct adapter *adapter);
592 void rtw_get_encrypt_decrypt_from_registrypriv(struct adapter *adapter);
594 void _rtw_join_timeout_handler(struct adapter *adapter);
595 void rtw_scan_timeout_handler(struct adapter *adapter);
597 void rtw_dynamic_check_timer_handlder(struct adapter *adapter);
598 #define rtw_is_scan_deny(adapter) false
599 #define rtw_clear_scan_deny(adapter) do {} while (0)
600 #define rtw_set_scan_deny_timer_hdl(adapter) do {} while (0)
601 #define rtw_set_scan_deny(adapter, ms) do {} while (0)
603 int _rtw_init_mlme_priv(struct adapter *padapter);
605 void rtw_free_mlme_priv_ie_data(struct mlme_priv *pmlmepriv);
607 void _rtw_free_mlme_priv(struct mlme_priv *pmlmepriv);
609 int _rtw_enqueue_network(struct __queue *queue, struct wlan_network *pnetwork);
611 struct wlan_network *_rtw_dequeue_network(struct __queue *queue);
613 struct wlan_network *_rtw_alloc_network(struct mlme_priv *pmlmepriv);
615 void _rtw_free_network(struct mlme_priv *pmlmepriv,
616 struct wlan_network *pnetwork, u8 isfreeall);
617 void _rtw_free_network_nolock(struct mlme_priv *pmlmepriv,
618 struct wlan_network *pnetwork);
620 struct wlan_network* _rtw_find_network(struct __queue *scanned_queue, u8 *addr);
622 void _rtw_free_network_queue(struct adapter *padapter, u8 isfreeall);
624 int rtw_if_up(struct adapter *padapter);
626 u8 *rtw_get_capability_from_ie(u8 *ie);
627 u8 *rtw_get_timestampe_from_ie(u8 *ie);
628 u8 *rtw_get_beacon_interval_from_ie(u8 *ie);
630 void rtw_joinbss_reset(struct adapter *padapter);
632 unsigned int rtw_restructure_ht_ie(struct adapter *padapter, u8 *in_ie,
633 u8 *out_ie, uint in_len, uint *pout_len);
634 void rtw_update_ht_cap(struct adapter *padapter, u8 *pie, uint ie_len);
635 void rtw_issue_addbareq_cmd(struct adapter *padapter,
636 struct xmit_frame *pxmitframe);
638 int rtw_is_same_ibss(struct adapter *adapter, struct wlan_network *pnetwork);
639 int is_same_network(struct wlan_bssid_ex *src, struct wlan_bssid_ex *dst);
641 void rtw_roaming(struct adapter *padapter, struct wlan_network *tgt_network);
642 void _rtw_roaming(struct adapter *padapter, struct wlan_network *tgt_network);
643 void rtw_set_roaming(struct adapter *adapter, u8 to_roaming);
644 u8 rtw_to_roaming(struct adapter *adapter);
646 void rtw_sta_media_status_rpt(struct adapter *adapter, struct sta_info *psta,
649 #endif /* __RTL871X_MLME_H_ */