Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jul 2011 11:40:31 +0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        freebsd-wireless@freebsd.org
Subject:   [PATCH] ifconfig: don't disable HT40 channels when DFS is required
Message-ID:  <CAJ-Vmo=EA=pgT-0m=LXu2jpZkWO2jb4pB6mnm-vLMTzwuzoTtw@mail.gmail.com>

index | next in thread | raw e-mail

[-- Attachment #1 --]
This patch disables the HT40+DFS check.

The later Atheros NICs support radar detection on control and
extension channels, and so when the relevant radar detection code is
available, the stack should support this functionality.

It seems that enforcing this should be a driver/firmware requirement,
not a net80211 regulatory requirement.

It's only relevant for channels where DFS radar detection is required
(which we don't do anyway at the moment!) ; disabling these channels
for STA mode seems counterproductive.

Thanks,


Adrian

[-- Attachment #2 --]
Index: ifieee80211.c
===================================================================
--- ifieee80211.c	(revision 224209)
+++ ifieee80211.c	(working copy)
@@ -2028,6 +2028,16 @@
 					continue;
 				}
 				/*
+				 * DFS + HT40 is possible depending upon the
+				 * chipset. So instead of enforcing it in
+				 * the regulatory database/channel setup,
+				 * just punt it to the driver to worry about.
+				 *
+				 * Note that this only matters for modes which
+				 * require radar detection (ibss, mesh, hostap.)
+				 */
+#if 0
+				/*
 				 * DFS and HT40 don't mix.  This should be
 				 * expressed in the regdomain database but
 				 * just in case enforce it here.
@@ -2039,6 +2049,7 @@
 						    "not permitted\n", freq);
 					continue;
 				}
+#endif
 				/* NB: HT attribute comes from caller */
 				flags &= ~IEEE80211_CHAN_HT;
 				flags |= chanFlags & IEEE80211_CHAN_HT;
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmo=EA=pgT-0m=LXu2jpZkWO2jb4pB6mnm-vLMTzwuzoTtw>