DFS: Print the random channel list entry selection in debug print
This makes it a bit easier to understand what happens with random channel selection after radar detection. Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
d88fe8fe5d
commit
f20ca22dce
1 changed files with 2 additions and 0 deletions
|
@ -551,6 +551,8 @@ dfs_get_valid_channel(struct hostapd_iface *iface,
|
||||||
if (os_get_random((u8 *) &_rand, sizeof(_rand)) < 0)
|
if (os_get_random((u8 *) &_rand, sizeof(_rand)) < 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
chan_idx = _rand % num_available_chandefs;
|
chan_idx = _rand % num_available_chandefs;
|
||||||
|
wpa_printf(MSG_DEBUG, "DFS: Picked random entry from the list: %d/%d",
|
||||||
|
chan_idx, num_available_chandefs);
|
||||||
dfs_find_channel(iface, &chan, chan_idx, type);
|
dfs_find_channel(iface, &chan, chan_idx, type);
|
||||||
if (!chan) {
|
if (!chan) {
|
||||||
wpa_printf(MSG_DEBUG, "DFS: no random channel found");
|
wpa_printf(MSG_DEBUG, "DFS: no random channel found");
|
||||||
|
|
Loading…
Add table
Reference in a new issue