[PATCH v2 08/12] mesh: fix DFS deinit/init
Peter Oh
ebmajor.dev at gmail.com
Tue Aug 25 19:16:04 EDT 2020
> 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
More information about the Hostap
mailing list