21 if (!ieee80211_sdata_running(sdata))
24 switch (sdata->
vif.type) {
28 if (!sdata->
u.
mgd.associated)
32 if (!sdata->
u.
ibss.ssid_len)
34 if (!sdata->
u.
ibss.fixed_channel)
41 if (!sdata->
u.
ap.beacon)
45 if (!sdata->
wdev.mesh_id_len)
65 mode = __ieee80211_get_channel_mode(local, ignore);
83 if (!ieee80211_sdata_running(tmp))
86 switch (tmp->
vif.bss_conf.channel_type) {
89 if (superchan > tmp->
vif.bss_conf.channel_type)
92 superchan = tmp->
vif.bss_conf.channel_type;
143 if (chantype2 == chantype1)
158 superchan = ieee80211_get_superchan(local, sdata);
159 if (!ieee80211_channel_types_are_compatible(superchan, chantype,
166 sdata->
vif.bss_conf.channel_type = chantype;