DFS: Allow switch to an available channel
For EU, where preCAC is allowed, we should allow switch to DFS available channels, instead of restarting BSS. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
This commit is contained in:
parent
045a24273e
commit
ef26fc19fa
1 changed files with 5 additions and 1 deletions
|
@ -1348,12 +1348,16 @@ int hostapd_is_dfs_overlap(struct hostapd_iface *iface, enum chan_width width,
|
||||||
if (!(chan->flag & HOSTAPD_CHAN_RADAR))
|
if (!(chan->flag & HOSTAPD_CHAN_RADAR))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if ((chan->flag & HOSTAPD_CHAN_DFS_MASK) ==
|
||||||
|
HOSTAPD_CHAN_DFS_AVAILABLE)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (center_freq - chan->freq < half_width &&
|
if (center_freq - chan->freq < half_width &&
|
||||||
chan->freq - center_freq < half_width)
|
chan->freq - center_freq < half_width)
|
||||||
res++;
|
res++;
|
||||||
}
|
}
|
||||||
|
|
||||||
wpa_printf(MSG_DEBUG, "DFS: (%d, %d): in range: %s",
|
wpa_printf(MSG_DEBUG, "DFS CAC required: (%d, %d): in range: %s",
|
||||||
center_freq - half_width, center_freq + half_width,
|
center_freq - half_width, center_freq + half_width,
|
||||||
res ? "yes" : "no");
|
res ? "yes" : "no");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue