Lines Matching refs:compat
84 const struct cfg80211_chan_def *compat) in ieee80211_chanctx_reserved_chandef() argument
92 if (!compat) in ieee80211_chanctx_reserved_chandef()
93 compat = &sdata->reserved_chandef; in ieee80211_chanctx_reserved_chandef()
95 compat = cfg80211_chandef_compatible(&sdata->reserved_chandef, in ieee80211_chanctx_reserved_chandef()
96 compat); in ieee80211_chanctx_reserved_chandef()
97 if (!compat) in ieee80211_chanctx_reserved_chandef()
101 return compat; in ieee80211_chanctx_reserved_chandef()
107 const struct cfg80211_chan_def *compat) in ieee80211_chanctx_non_reserved_chandef() argument
118 if (!compat) in ieee80211_chanctx_non_reserved_chandef()
119 compat = &sdata->vif.bss_conf.chandef; in ieee80211_chanctx_non_reserved_chandef()
121 compat = cfg80211_chandef_compatible( in ieee80211_chanctx_non_reserved_chandef()
122 &sdata->vif.bss_conf.chandef, compat); in ieee80211_chanctx_non_reserved_chandef()
123 if (!compat) in ieee80211_chanctx_non_reserved_chandef()
127 return compat; in ieee80211_chanctx_non_reserved_chandef()
133 const struct cfg80211_chan_def *compat) in ieee80211_chanctx_combined_chandef() argument
137 compat = ieee80211_chanctx_reserved_chandef(local, ctx, compat); in ieee80211_chanctx_combined_chandef()
138 if (!compat) in ieee80211_chanctx_combined_chandef()
141 compat = ieee80211_chanctx_non_reserved_chandef(local, ctx, compat); in ieee80211_chanctx_combined_chandef()
142 if (!compat) in ieee80211_chanctx_combined_chandef()
145 return compat; in ieee80211_chanctx_combined_chandef()
380 const struct cfg80211_chan_def *compat; in ieee80211_find_chanctx() local
388 compat = cfg80211_chandef_compatible(&ctx->conf.def, chandef); in ieee80211_find_chanctx()
389 if (!compat) in ieee80211_find_chanctx()
392 compat = ieee80211_chanctx_reserved_chandef(local, ctx, in ieee80211_find_chanctx()
393 compat); in ieee80211_find_chanctx()
394 if (!compat) in ieee80211_find_chanctx()
397 ieee80211_change_chanctx(local, ctx, compat); in ieee80211_find_chanctx()
584 const struct cfg80211_chan_def *compat = NULL; in ieee80211_recalc_chanctx_chantype() local
599 if (!compat) in ieee80211_recalc_chanctx_chantype()
600 compat = &sdata->vif.bss_conf.chandef; in ieee80211_recalc_chanctx_chantype()
602 compat = cfg80211_chandef_compatible( in ieee80211_recalc_chanctx_chantype()
603 &sdata->vif.bss_conf.chandef, compat); in ieee80211_recalc_chanctx_chantype()
604 if (WARN_ON_ONCE(!compat)) in ieee80211_recalc_chanctx_chantype()
616 compat = cfg80211_chandef_compatible(&sta->tdls_chandef, in ieee80211_recalc_chanctx_chantype()
617 compat); in ieee80211_recalc_chanctx_chantype()
618 if (WARN_ON_ONCE(!compat)) in ieee80211_recalc_chanctx_chantype()
623 if (!compat) in ieee80211_recalc_chanctx_chantype()
626 ieee80211_change_chanctx(local, ctx, compat); in ieee80211_recalc_chanctx_chantype()
1696 const struct cfg80211_chan_def *compat; in ieee80211_vif_change_bandwidth() local
1724 compat = cfg80211_chandef_compatible(&conf->def, chandef); in ieee80211_vif_change_bandwidth()
1725 if (!compat) { in ieee80211_vif_change_bandwidth()
1732 if (!ieee80211_chanctx_reserved_chandef(local, ctx, compat)) { in ieee80211_vif_change_bandwidth()