From 111e13cad6d56d1543476510232dbbae02903fda Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Fri, 25 Feb 2022 09:58:07 -0800 Subject: [PATCH] band: keep 6GHz frequencies out of 40mhz special case There is no 40MHz upper/lower concept for 6GHz so avoid this special handling. --- src/band.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/band.c b/src/band.c index 87b70d42..984bc15d 100644 --- 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; /*