[PATCH v2 03/12] mesh: Allow DFS channels to be selected if dfs is enabled

Jouni Malinen j at w1.fi
Mon Nov 30 05:11:13 EST 2020

On Tue, Jun 30, 2020 at 02:18:58PM +0200, Markus Theil wrote:
> From: Peter Oh <peter.oh at bowerswilkins.com>
> Note: DFS is assumed to be usable if a country code has been set

> diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
> @@ -2356,6 +2356,8 @@ void ibss_mesh_setup_freq(struct wpa_supplicant *wpa_s,
>  	int chwidth, seg0, seg1;
>  	u32 vht_caps = 0;
>  	int is_24ghz;
> +	int dfs_enabled = wpa_s->conf->country[0] &&
> +			 (wpa_s->drv_flags & WPA_DRIVER_FLAGS_RADAR);

The commit message seems to imply that this is a change specifically for
mesh, but this function is used both both IBSS and mesh.. Furthermore,
that WPA_DRIVER_FLAGS_RADAR was added for AP mode DFS/radar detection.
Is it clear that all drivers that support radar detection for AP mode
also support it for IBSS and mesh?

Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list