]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: wpas_p2p_select_go_freq() to check for supported pref_freq
authorSunil Dutt <usdutt@qti.qualcomm.com>
Wed, 24 May 2017 15:40:53 +0000 (21:10 +0530)
committerJouni Malinen <j@w1.fi>
Sat, 27 May 2017 08:41:02 +0000 (11:41 +0300)
commit3c2bd55f032be82dfacb81d270060beec702b0f2
treebe4b417c0ffa24880117346dd01037a3ab89ae04
parentc01de219320a56b10e191e7b8a6da139b45090bd
P2P: wpas_p2p_select_go_freq() to check for supported pref_freq

This commit is similar to the commit
783c2920cc9117b663506dc82223867bfa792a5d ('P2P: Check if the pref_freq
reported by the driver supports P2P') but extends the check for
supported pref_freq to wpas_p2p_select_go_freq().

This avoids issues with P2P_GROUP_ADD ending up selecting an unexpected
channel when get_pref_freq_list() (i.e.,
QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST) is used. Filter the
list by removing channels that do not allow P2P operation at all.
Previously, only the explicitly disallowed channels were removed and
that could have resulted in selecting an operating channel that is not
allowed for P2P and failing to complete the operation to start the
group.

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