rtw_ap.h 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. * 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
  17. *
  18. *
  19. ******************************************************************************/
  20. #ifndef __RTW_AP_H_
  21. #define __RTW_AP_H_
  22. #ifdef CONFIG_AP_MODE
  23. //external function
  24. extern void rtw_indicate_sta_assoc_event(_adapter *padapter, struct sta_info *psta);
  25. extern void rtw_indicate_sta_disassoc_event(_adapter *padapter, struct sta_info *psta);
  26. void init_mlme_ap_info(_adapter *padapter);
  27. void free_mlme_ap_info(_adapter *padapter);
  28. //void update_BCNTIM(_adapter *padapter);
  29. void rtw_add_bcn_ie(_adapter *padapter, WLAN_BSSID_EX *pnetwork, u8 index, u8 *data, u8 len);
  30. void rtw_remove_bcn_ie(_adapter *padapter, WLAN_BSSID_EX *pnetwork, u8 index);
  31. void update_beacon(_adapter *padapter, u8 ie_id, u8 *oui, u8 tx);
  32. void add_RATid(_adapter *padapter, struct sta_info *psta, u8 rssi_level);
  33. void expire_timeout_chk(_adapter *padapter);
  34. void update_sta_info_apmode(_adapter *padapter, struct sta_info *psta);
  35. int rtw_check_beacon_data(_adapter *padapter, u8 *pbuf, int len);
  36. void rtw_ap_restore_network(_adapter *padapter);
  37. void rtw_set_macaddr_acl(_adapter *padapter, int mode);
  38. int rtw_acl_add_sta(_adapter *padapter, u8 *addr);
  39. int rtw_acl_remove_sta(_adapter *padapter, u8 *addr);
  40. u8 rtw_ap_set_pairwise_key(_adapter *padapter, struct sta_info *psta);
  41. int rtw_ap_set_group_key(_adapter *padapter, u8 *key, u8 alg, int keyid);
  42. int rtw_ap_set_wep_key(_adapter *padapter, u8 *key, u8 keylen, int keyid, u8 set_tx);
  43. #ifdef CONFIG_NATIVEAP_MLME
  44. void associated_clients_update(_adapter *padapter, u8 updated);
  45. void bss_cap_update_on_sta_join(_adapter *padapter, struct sta_info *psta);
  46. u8 bss_cap_update_on_sta_leave(_adapter *padapter, struct sta_info *psta);
  47. void sta_info_update(_adapter *padapter, struct sta_info *psta);
  48. void ap_sta_info_defer_update(_adapter *padapter, struct sta_info *psta);
  49. u8 ap_free_sta(_adapter *padapter, struct sta_info *psta, bool active, u16 reason);
  50. int rtw_sta_flush(_adapter *padapter);
  51. int rtw_ap_inform_ch_switch(_adapter *padapter, u8 new_ch, u8 ch_offset);
  52. void start_ap_mode(_adapter *padapter);
  53. void stop_ap_mode(_adapter *padapter);
  54. #endif
  55. #ifdef CONFIG_AUTO_AP_MODE
  56. extern void rtw_start_auto_ap(_adapter *adapter);
  57. #endif //CONFIG_AUTO_AP_MODE
  58. #endif //end of CONFIG_AP_MODE
  59. #endif