diff --git a/src/ap/dfs.c b/src/ap/dfs.c index 2c914baa2..25dad3482 100644 --- a/src/ap/dfs.c +++ b/src/ap/dfs.c @@ -1112,7 +1112,7 @@ static int hostapd_dfs_start_channel_switch(struct hostapd_iface *iface) oper_centr_freq_seg0_idx, oper_centr_freq_seg1_idx, cmode->vht_capab, - &cmode->he_capab[IEEE80211_MODE_AP]); + &cmode->he_capab[iface->conf->hw_mode]);
iface->conf->hw_mode is not a compatible replacement. I'm using this for my own, since only AP and Mesh do CSA at this moment, but not sure if people like it. int ieee80211_mode = IEEE80211_MODE_AP; #ifdef CONFIG_MESH if (iface->mconf) ieee80211_mode = IEEE80211_MODE_MESH; #endif /* CONFIG_MESH */ &cmode->he_capab[ieee80211_mode]); Thanks, Peter _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap