Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / drivers / staging / rtl8723au / include / rtw_ap.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
4  *
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.
8  *
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
12  * more details.
13  *
14  ******************************************************************************/
15 #ifndef __RTW_AP_H_
16 #define __RTW_AP_H_
17
18 #include <osdep_service.h>
19 #include <drv_types.h>
20
21
22 #ifdef CONFIG_8723AU_AP_MODE
23
24 /* external function */
25
26 void init_mlme_ap_info23a(struct rtw_adapter *padapter);
27 void free_mlme_ap_info23a(struct rtw_adapter *padapter);
28 /* void update_BCNTIM(struct rtw_adapter *padapter); */
29 void rtw_add_bcn_ie(struct rtw_adapter *padapter, struct wlan_bssid_ex *pnetwork, u8 index, u8 *data, u8 len);
30 void rtw_remove_bcn_ie(struct rtw_adapter *padapter, struct wlan_bssid_ex *pnetwork, u8 index);
31 void update_beacon23a(struct rtw_adapter *padapter, u8 ie_id, u8 *oui, u8 tx);
32 void add_RATid23a(struct rtw_adapter *padapter, struct sta_info *psta, u8 rssi_level);
33 void expire_timeout_chk23a(struct rtw_adapter *padapter);
34 void update_sta_info23a_apmode23a(struct rtw_adapter *padapter, struct sta_info *psta);
35 int rtw_check_beacon_data23a(struct rtw_adapter *padapter,
36                              struct ieee80211_mgmt *mgmt, unsigned int len);
37 void rtw_ap_restore_network(struct rtw_adapter *padapter);
38 void rtw_set_macaddr_acl23a(struct rtw_adapter *padapter, int mode);
39 int rtw_acl_add_sta23a(struct rtw_adapter *padapter, u8 *addr);
40 int rtw_acl_remove_sta23a(struct rtw_adapter *padapter, u8 *addr);
41
42 void associated_clients_update23a(struct rtw_adapter *padapter, u8 updated);
43 void bss_cap_update_on_sta_join23a(struct rtw_adapter *padapter, struct sta_info *psta);
44 u8 bss_cap_update_on_sta_leave23a(struct rtw_adapter *padapter, struct sta_info *psta);
45 void sta_info_update23a(struct rtw_adapter *padapter, struct sta_info *psta);
46 void ap_sta_info_defer_update23a(struct rtw_adapter *padapter, struct sta_info *psta);
47 u8 ap_free_sta23a(struct rtw_adapter *padapter, struct sta_info *psta, bool active, u16 reason);
48 int rtw_sta_flush23a(struct rtw_adapter *padapter);
49 int rtw_ap_inform_ch_switch23a(struct rtw_adapter *padapter, u8 new_ch, u8 ch_offset);
50 void start_ap_mode23a(struct rtw_adapter *padapter);
51 void stop_ap_mode23a(struct rtw_adapter *padapter);
52 #endif /* end of CONFIG_8723AU_AP_MODE */
53
54 #endif