MBO: Improve supported operating class generation
authorJouni Malinen <j@w1.fi>
Thu, 30 Jun 2016 18:59:09 +0000 (21:59 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 30 Jun 2016 22:13:54 +0000 (01:13 +0300)
commit653d227e9f40cad1114c1c96654061446fd8b131
treeee03ecbd31c4820e6e65b117834f0d6b9282ba92
parentb47a74394250ec8cdddece68d9c1202b21243ba4
MBO: Improve supported operating class generation

Previously, 2.4 GHz operating class 81 was not added for US due to not
all of the channels (1-13 in this operating class) being supported.
Still, this operating class is the main operating class in the global
table for 2.4 GHz and it is the only option for indicating support for
the 2.4 GHz band channels in US.

Change the supported operating class building rules to include all
operating classes for which at least one channel is enabled. In
addition, fix the 80, 80+80, and 160 MHz channel checks (checking the
center frequency channel was failing since it is not a valid 20 MHz
channel).

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/mbo.c