Searched refs:num_available_chandefs (Results 1 – 1 of 1) sorted by relevance
480 int num_available_chandefs; in dfs_get_valid_channel() local499 num_available_chandefs = dfs_find_channel(iface, NULL, 0, skip_radar); in dfs_get_valid_channel()501 num_available_chandefs); in dfs_get_valid_channel()502 if (num_available_chandefs == 0) in dfs_get_valid_channel()507 chan_idx = _rand % num_available_chandefs; in dfs_get_valid_channel()524 if (num_available_chandefs <= 1) { in dfs_get_valid_channel()534 for (i = 0; i < num_available_chandefs - 1; i++) { in dfs_get_valid_channel()536 chan_idx2 = (chan_idx + 1 + i) % num_available_chandefs; in dfs_get_valid_channel()