DFS: Add VHT160 available channels
Add VHT160 available channels we can choose from when having detected a radar event. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
This commit is contained in:
parent
b8058a69b0
commit
4f1e01b8e3
1 changed files with 9 additions and 0 deletions
|
@ -78,6 +78,11 @@ static int dfs_is_chan_allowed(struct hostapd_channel_data *chan, int n_chans)
|
||||||
* 42, 58, 106, 122, 138, 155
|
* 42, 58, 106, 122, 138, 155
|
||||||
*/
|
*/
|
||||||
int allowed_80[] = { 36, 52, 100, 116, 132, 149 };
|
int allowed_80[] = { 36, 52, 100, 116, 132, 149 };
|
||||||
|
/*
|
||||||
|
* VHT160 valid channels based on center frequency:
|
||||||
|
* 50, 114
|
||||||
|
*/
|
||||||
|
int allowed_160[] = { 36, 100 };
|
||||||
int *allowed = allowed_40;
|
int *allowed = allowed_40;
|
||||||
unsigned int i, allowed_no = 0;
|
unsigned int i, allowed_no = 0;
|
||||||
|
|
||||||
|
@ -90,6 +95,10 @@ static int dfs_is_chan_allowed(struct hostapd_channel_data *chan, int n_chans)
|
||||||
allowed = allowed_80;
|
allowed = allowed_80;
|
||||||
allowed_no = ARRAY_SIZE(allowed_80);
|
allowed_no = ARRAY_SIZE(allowed_80);
|
||||||
break;
|
break;
|
||||||
|
case 8:
|
||||||
|
allowed = allowed_160;
|
||||||
|
allowed_no = ARRAY_SIZE(allowed_160);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
wpa_printf(MSG_DEBUG, "Unknown width for %d channels", n_chans);
|
wpa_printf(MSG_DEBUG, "Unknown width for %d channels", n_chans);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue