1 /* 2 * STA and AP APIs for XRadio drivers 3 * 4 * Copyright (c) 2013 5 * Xradio Technology Co., Ltd. <www.xradiotech.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as 9 * published by the Free Software Foundation. 10 */ 11 12 #ifndef AP_H_INCLUDED 13 #define AP_H_INCLUDED 14 15 #define XRADIO_NOA_NOTIFICATION_DELAY 10 16 17 #ifdef AP_HT_CAP_UPDATE 18 #define HT_INFO_OFFSET 4 19 #define HT_INFO_MASK 0x0011 20 #define HT_INFO_IE_LEN 22 21 #endif 22 23 int xradio_set_tim(struct ieee80211_hw *dev, struct ieee80211_sta *sta, 24 bool set); 25 int xradio_sta_add(struct ieee80211_hw *hw, struct ieee80211_vif *vif, 26 struct ieee80211_sta *sta); 27 int xradio_sta_remove(struct ieee80211_hw *hw, struct ieee80211_vif *vif, 28 struct ieee80211_sta *sta); 29 void xradio_sta_notify(struct ieee80211_hw *dev, struct ieee80211_vif *vif, 30 enum sta_notify_cmd notify_cmd, 31 struct ieee80211_sta *sta); 32 void xradio_bss_info_changed(struct ieee80211_hw *dev, 33 struct ieee80211_vif *vif, 34 struct ieee80211_bss_conf *info, u32 changed); 35 int xradio_ampdu_action(struct ieee80211_hw *hw, 36 struct ieee80211_vif *vif, 37 struct ieee80211_ampdu_params *params); 38 39 void xradio_suspend_resume(struct xradio_vif *priv, 40 struct wsm_suspend_resume *arg); 41 void xradio_set_tim_work(struct work_struct *work); 42 void xradio_set_cts_work(struct work_struct *work); 43 void xradio_multicast_start_work(struct work_struct *work); 44 void xradio_multicast_stop_work(struct work_struct *work); 45 void xradio_mcast_timeout(struct timer_list *t); 46 int xradio_find_link_id(struct xradio_vif *priv, const u8 *mac); 47 int xradio_alloc_link_id(struct xradio_vif *priv, const u8 *mac); 48 void xradio_link_id_work(struct work_struct *work); 49 void xradio_link_id_gc_work(struct work_struct *work); 50 #if defined(CONFIG_XRADIO_USE_EXTENSIONS) 51 void xradio_notify_noa(struct xradio_vif *priv, int delay); 52 #endif 53 int xrwl_unmap_link(struct xradio_vif *priv, int link_id); 54 #ifdef AP_HT_CAP_UPDATE 55 void xradio_ht_info_update_work(struct work_struct *work); 56 #endif 57 58 #endif 59