diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/time-event.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/time-event.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/time-event.h b/drivers/net/wireless/iwlwifi/mvm/time-event.h index 4a61c8c02372..2f48a90d4ad3 100644 --- a/drivers/net/wireless/iwlwifi/mvm/time-event.h +++ b/drivers/net/wireless/iwlwifi/mvm/time-event.h | |||
@@ -214,4 +214,33 @@ void iwl_mvm_te_clear_data(struct iwl_mvm *mvm, | |||
214 | 214 | ||
215 | void iwl_mvm_roc_done_wk(struct work_struct *wk); | 215 | void iwl_mvm_roc_done_wk(struct work_struct *wk); |
216 | 216 | ||
217 | /** | ||
218 | * iwl_mvm_schedule_csa_noa - request NoA for channel switch | ||
219 | * @mvm: the mvm component | ||
220 | * @vif: the virtual interface for which the channel switch is issued | ||
221 | * @duration: the duration of the NoA in TU. | ||
222 | * @apply_time: NoA start time in GP2. | ||
223 | * | ||
224 | * This function is used to schedule NoA time event and is used to perform | ||
225 | * the channel switch flow. | ||
226 | */ | ||
227 | int iwl_mvm_schedule_csa_noa(struct iwl_mvm *mvm, | ||
228 | struct ieee80211_vif *vif, | ||
229 | u32 duration, u32 apply_time); | ||
230 | |||
231 | /** | ||
232 | * iwl_mvm_te_scheduled - check if the fw received the TE cmd | ||
233 | * @te_data: the time event data that corresponds to that time event | ||
234 | * | ||
235 | * This function returns true iff this TE is added to the fw. | ||
236 | */ | ||
237 | static inline bool | ||
238 | iwl_mvm_te_scheduled(struct iwl_mvm_time_event_data *te_data) | ||
239 | { | ||
240 | if (!te_data) | ||
241 | return false; | ||
242 | |||
243 | return !!te_data->uid; | ||
244 | } | ||
245 | |||
217 | #endif /* __time_event_h__ */ | 246 | #endif /* __time_event_h__ */ |