P2P: Search all 2.4 GHz social channels regardless of disallow_freq
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 22 Oct 2014 17:02:48 +0000 (20:02 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 22 Oct 2014 17:02:48 +0000 (20:02 +0300)
commit7475d299abd623e0759a527be23552d639013ea1
tree1c505d799c95db2f4629f66e4246da809626d041
parenta6b1215769ce9bb9f33ba5c59d4926773e9b99a8
P2P: Search all 2.4 GHz social channels regardless of disallow_freq

Commit 1595eb93aee0239de51f1090d4528e4b2cfe3add ('P2P: Add support for
60 GHz social channel') had an unintended change to how P2P search scans
2.4 GHz social channels. Use of p2p_supported_freq() to filter the list
of social channels ended up using the disallow_freq setting to remove
social channels from the P2P search scans. This is not desired since
peers need to be found on any of the social channels even if those
channels have been disabled from P2P operating channel use. Restore the
previous behavior by included all the 2.4 GHz social channels in P2P
search scans if the driver indicated support for the 2.4 GHz band.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/wpa_supplicant_i.h