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