GNU Linux-libre 4.19.207-gnu1
[releases.git] / drivers / staging / rtl8188eu / include / rtw_ap.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /******************************************************************************
3  *
4  * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
5  *
6  ******************************************************************************/
7 #ifndef __RTW_AP_H_
8 #define __RTW_AP_H_
9
10 #include <osdep_service.h>
11 #include <drv_types.h>
12
13 #ifdef CONFIG_88EU_AP_MODE
14
15 /* external function */
16 void rtw_indicate_sta_assoc_event(struct adapter *padapter,
17                                   struct sta_info *psta);
18 void rtw_indicate_sta_disassoc_event(struct adapter *padapter,
19                                      struct sta_info *psta);
20 void init_mlme_ap_info(struct adapter *padapter);
21 void free_mlme_ap_info(struct adapter *padapter);
22 void update_beacon(struct adapter *padapter, u8 ie_id,
23                    u8 *oui, u8 tx);
24 void add_RATid(struct adapter *padapter, struct sta_info *psta,
25                u8 rssi_level);
26 void expire_timeout_chk(struct adapter *padapter);
27 void update_sta_info_apmode(struct adapter *padapter, struct sta_info *psta);
28 int rtw_check_beacon_data(struct adapter *padapter, u8 *pbuf,  int len);
29 void rtw_set_macaddr_acl(struct adapter *padapter, int mode);
30 int rtw_acl_add_sta(struct adapter *padapter, u8 *addr);
31 int rtw_acl_remove_sta(struct adapter *padapter, u8 *addr);
32
33 void associated_clients_update(struct adapter *padapter, u8 updated);
34 void bss_cap_update_on_sta_join(struct adapter *padapter, struct sta_info *psta);
35 u8 bss_cap_update_on_sta_leave(struct adapter *padapter, struct sta_info *psta);
36 void sta_info_update(struct adapter *padapter, struct sta_info *psta);
37 void ap_sta_info_defer_update(struct adapter *padapter, struct sta_info *psta);
38 u8 ap_free_sta(struct adapter *padapter, struct sta_info *psta,
39                bool active, u16 reason);
40 int rtw_sta_flush(struct adapter *padapter);
41 void start_ap_mode(struct adapter *padapter);
42 void stop_ap_mode(struct adapter *padapter);
43 #endif /* end of CONFIG_88EU_AP_MODE */
44
45 #endif