commit 111e13cad6d56d1543476510232dbbae02903fda
parent 7882621ca91e4a22a7d1a8b11b7f187fbdc47c3b
Author: James Prestwood <prestwoj@gmail.com>
Date: Fri, 25 Feb 2022 09:58:07 -0800
band: keep 6GHz frequencies out of 40mhz special case
There is no 40MHz upper/lower concept for 6GHz so avoid this special
handling.
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/band.c b/src/band.c
@@ -902,8 +902,12 @@ int oci_verify(const uint8_t oci[static 3], const struct band_chandef *own)
* on 40 Mhz channels. If the STA is operating on 40 Mhz while the
* peer is operating on 80 or 160 Mhz wide channels, then only the
* primary channel validation is performed
+ *
+ * With 6GHz operating classes there is no concept of upper/lower 40mhz
+ * channels, therefore this special handling list not needed.
*/
- if (own_bandwidth == 40 && oci_bandwidth == 40) {
+ if (own_bandwidth == 40 && oci_bandwidth == 40 &&
+ info->operating_class < 131) {
uint32_t behavior;
/*