ACS: Fix VHT80 segment picking
authorMichal Kazior <michal.kazior@tieto.com>
Wed, 5 Mar 2014 08:12:11 +0000 (09:12 +0100)
committerJouni Malinen <j@w1.fi>
Wed, 5 Mar 2014 22:01:29 +0000 (00:01 +0200)
commit89de64c5c05f0629943fd37806e9d02269680972
treef2033b7fb53392d22e99810a10b55751edbc5cd6
parent1f37483416052fa29e1076de187dfdd1bc8549e3
ACS: Fix VHT80 segment picking

For example, the previous implementation considered [44, 48, 52, 56] to
be a valid VHT80 channel -- which it is not. This resulted in, e.g.,
failure to start CAC when channels on overlapped segments included DFS
channels.

Add a check similar to the HT40 one to prevent that. The check is
performed this way as the ACS implementation assumes the primary channel
to be the first channel in a given segment.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
src/ap/acs.c