From: Kazior Michal <Michal.Kazior@xxxxxxxxx> Signed-off-by: Michal Kazior <michal.kazior@xxxxxxxxx> --- net/mac80211/driver-ops.h | 51 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 51 insertions(+), 0 deletions(-) diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h index 6d33a0c..e79f06d 100644 --- a/net/mac80211/driver-ops.h +++ b/net/mac80211/driver-ops.h @@ -845,4 +845,55 @@ drv_allow_buffered_frames(struct ieee80211_local *local, more_data); trace_drv_return_void(local); } + +static inline void +drv_add_chanctx(struct ieee80211_local *local, + struct ieee80211_chanctx *ctx) +{ + if (local->ops->add_chanctx) + local->ops->add_chanctx(&local->hw, &ctx->conf); +} + +static inline void +drv_remove_chanctx(struct ieee80211_local *local, + struct ieee80211_chanctx *ctx) +{ + if (local->ops->remove_chanctx) + local->ops->remove_chanctx(&local->hw, &ctx->conf); +} + +static inline void +drv_change_chantype(struct ieee80211_local *local, + struct ieee80211_chanctx *ctx) +{ + if (local->ops->change_chantype) + local->ops->change_chantype(&local->hw, &ctx->conf); +} + +static inline void +drv_assign_vif_chanctx(struct ieee80211_local *local, + struct ieee80211_sub_if_data *sdata, + struct ieee80211_chanctx *ctx) +{ + check_sdata_in_driver(sdata); + + if (local->ops->assign_vif_chanctx) + local->ops->assign_vif_chanctx(&local->hw, + &sdata->vif, + &ctx->conf); +} + +static inline void +drv_unassign_vif_chanctx(struct ieee80211_local *local, + struct ieee80211_sub_if_data *sdata, + struct ieee80211_chanctx *ctx) +{ + check_sdata_in_driver(sdata); + + if (local->ops->unassign_vif_chanctx) + local->ops->unassign_vif_chanctx(&local->hw, + &sdata->vif, + &ctx->conf); +} + #endif /* __MAC80211_DRIVER_OPS */ -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html