P2P: Fix secondary channel selection for HT40
authorEliad Peller <eliad@wizery.com>
Wed, 17 Jun 2015 13:18:14 +0000 (16:18 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 19 Jun 2015 12:50:40 +0000 (15:50 +0300)
commite4a80d89bd80f73a3d07f00334644302c2ad2c53
tree9dd05b1be269e6ff0c99dc7bca5751a1cd194afc
parent81f8e7e9fbdca3a81cfbf84614c0c43aa0b72517
P2P: Fix secondary channel selection for HT40

wpas_p2p_get_ht40_mode() used blacklist approach (bw != BW20) to find
the relevant op_class, but didn't take into account other non-BW40
cases, like BW80, that had been added to the bw enum after the initial
implementation. Fix this by looking for the specific BW40 bw cases.

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
wpa_supplicant/p2p_supplicant.c