1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 2 /* 3 * Copyright (C) 2024 Intel Corporation 4 */ 5 #ifndef __iwl_ap_h__ 6 #define __iwl_ap_h__ 7 8 #include "mld.h" 9 #include "iface.h" 10 11 #include "fw/api/tx.h" 12 13 int iwl_mld_update_beacon_template(struct iwl_mld *mld, 14 struct ieee80211_vif *vif, 15 struct ieee80211_bss_conf *link_conf); 16 17 int iwl_mld_start_ap_ibss(struct ieee80211_hw *hw, 18 struct ieee80211_vif *vif, 19 struct ieee80211_bss_conf *link); 20 21 void iwl_mld_stop_ap_ibss(struct ieee80211_hw *hw, struct ieee80211_vif *vif, 22 struct ieee80211_bss_conf *link); 23 24 int iwl_mld_store_ap_early_key(struct iwl_mld *mld, 25 struct ieee80211_key_conf *key, 26 struct iwl_mld_vif *mld_vif); 27 28 void iwl_mld_free_ap_early_key(struct iwl_mld *mld, 29 struct ieee80211_key_conf *key, 30 struct iwl_mld_vif *mld_vif); 31 32 u8 iwl_mld_get_rate_flags(struct iwl_mld *mld, 33 struct ieee80211_tx_info *info, 34 struct ieee80211_vif *vif, 35 struct ieee80211_bss_conf *link, 36 enum nl80211_band band); 37 38 void iwl_mld_set_tim_idx(struct iwl_mld *mld, __le32 *tim_index, 39 u8 *beacon, u32 frame_size); 40 41 int iwl_mld_send_beacon_template_cmd(struct iwl_mld *mld, 42 struct sk_buff *beacon, 43 struct iwl_mac_beacon_cmd *cmd); 44 45 #endif /* __iwl_ap_h__ */ 46