band: keep 6GHz frequencies out of 40mhz special case

There is no 40MHz upper/lower concept for 6GHz so avoid this special
handling.
This commit is contained in:
James Prestwood 2022-02-25 09:58:07 -08:00 committed by Denis Kenzior
parent 7882621ca9
commit 111e13cad6
1 changed files with 5 additions and 1 deletions

View File

@ -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;
/*