[PATCH 2/2] hostapd: DFS, add VHT160 available channels
Janusz Dziedzic
janusz.dziedzic
Sat Feb 15 10:37:22 PST 2014
Add VHT160 available channels, we can choose
when detect radar event.
Signed-off-by: Janusz Dziedzic <janusz.dziedzic at tieto.com>
---
src/ap/dfs.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/ap/dfs.c b/src/ap/dfs.c
index b8ffaec..692b717 100644
--- a/src/ap/dfs.c
+++ b/src/ap/dfs.c
@@ -78,6 +78,11 @@ static int dfs_is_chan_allowed(struct hostapd_channel_data *chan, int n_chans)
* 42, 58, 106, 122, 138, 155
*/
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;
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_no = ARRAY_SIZE(allowed_80);
break;
+ case 8:
+ allowed = allowed_160;
+ allowed_no = ARRAY_SIZE(allowed_160);
+ break;
default:
wpa_printf(MSG_DEBUG, "Unknown width for %d channels", n_chans);
break;
--
1.7.9.5
More information about the Hostap
mailing list