[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hostap
Subject:    Re: [PATCH v2 08/12] mesh: fix DFS deinit/init
From:       Peter Oh <ebmajor.dev () gmail ! com>
Date:       2020-08-25 23:16:04
Message-ID: 62c2e562-4f3e-f299-cbe2-e8e5a61b68aa () gmail ! com
[Download RAW message or body]


> 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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/hostap
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic