#ifndef __RTW89_CHAN_H__
#define __RTW89_CHAN_H__
#include "core.h"
#define RTW89_CHANCTX_TIME_MCC_PREPARE …
#define RTW89_CHANCTX_TIME_MCC …
#define RTW89_MCC_LONG_TRIGGER_TIME …
#define RTW89_MCC_SHORT_TRIGGER_TIME …
#define RTW89_MCC_EARLY_TX_BCN_TIME …
#define RTW89_MCC_EARLY_RX_BCN_TIME …
#define RTW89_MCC_MIN_RX_BCN_TIME …
#define RTW89_MCC_DFLT_BCN_OFST_TIME …
#define RTW89_MCC_MIN_GO_DURATION …
#define RTW89_MCC_MIN_STA_DURATION …
#define RTW89_MCC_DFLT_GROUP …
#define RTW89_MCC_NEXT_GROUP(cur) …
#define RTW89_MCC_DFLT_TX_NULL_EARLY …
#define RTW89_MCC_DFLT_COURTESY_SLOT …
#define NUM_OF_RTW89_MCC_ROLES …
enum rtw89_chanctx_pause_reasons { … };
struct rtw89_entity_weight { … };
static inline bool rtw89_get_entity_state(struct rtw89_dev *rtwdev)
{ … }
static inline void rtw89_set_entity_state(struct rtw89_dev *rtwdev, bool active)
{ … }
static inline
enum rtw89_entity_mode rtw89_get_entity_mode(struct rtw89_dev *rtwdev)
{ … }
static inline void rtw89_set_entity_mode(struct rtw89_dev *rtwdev,
enum rtw89_entity_mode mode)
{ … }
void rtw89_chan_create(struct rtw89_chan *chan, u8 center_chan, u8 primary_chan,
enum rtw89_band band, enum rtw89_bandwidth bandwidth);
bool rtw89_assign_entity_chan(struct rtw89_dev *rtwdev,
enum rtw89_chanctx_idx idx,
const struct rtw89_chan *new);
int rtw89_iterate_entity_chan(struct rtw89_dev *rtwdev,
int (*iterator)(const struct rtw89_chan *chan,
void *data),
void *data);
void rtw89_config_entity_chandef(struct rtw89_dev *rtwdev,
enum rtw89_chanctx_idx idx,
const struct cfg80211_chan_def *chandef);
void rtw89_config_roc_chandef(struct rtw89_dev *rtwdev,
enum rtw89_chanctx_idx idx,
const struct cfg80211_chan_def *chandef);
void rtw89_entity_init(struct rtw89_dev *rtwdev);
enum rtw89_entity_mode rtw89_entity_recalc(struct rtw89_dev *rtwdev);
void rtw89_chanctx_work(struct work_struct *work);
void rtw89_queue_chanctx_work(struct rtw89_dev *rtwdev);
void rtw89_queue_chanctx_change(struct rtw89_dev *rtwdev,
enum rtw89_chanctx_changes change);
void rtw89_chanctx_track(struct rtw89_dev *rtwdev);
void rtw89_chanctx_pause(struct rtw89_dev *rtwdev,
enum rtw89_chanctx_pause_reasons rsn);
void rtw89_chanctx_proceed(struct rtw89_dev *rtwdev);
int rtw89_chanctx_ops_add(struct rtw89_dev *rtwdev,
struct ieee80211_chanctx_conf *ctx);
void rtw89_chanctx_ops_remove(struct rtw89_dev *rtwdev,
struct ieee80211_chanctx_conf *ctx);
void rtw89_chanctx_ops_change(struct rtw89_dev *rtwdev,
struct ieee80211_chanctx_conf *ctx,
u32 changed);
int rtw89_chanctx_ops_assign_vif(struct rtw89_dev *rtwdev,
struct rtw89_vif *rtwvif,
struct ieee80211_chanctx_conf *ctx);
void rtw89_chanctx_ops_unassign_vif(struct rtw89_dev *rtwdev,
struct rtw89_vif *rtwvif,
struct ieee80211_chanctx_conf *ctx);
#endif