]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/p2p_supplicant.c
P2P: Optimize default case for own freq preference setting
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 19 Nov 2013 10:29:25 +0000 (12:29 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 19 Nov 2013 10:29:25 +0000 (12:29 +0200)
commit5624ccfe93aac092029c840f36c76c40f92aac5b
tree446eb7b89194ca0f053b7375e66fe9dfe84ecaee
parentd0f61a4beafd7b33ae93eeb70c33a7c330924faf
P2P: Optimize default case for own freq preference setting

There is no need to use wpas_p2p_num_unused_channels() here in the
default configuration of p2p_ignore_sahred_freq=0, so re-order the
conditions to skip that operation. This is a bit more efficient and the
debug log is also a bit cleaner in the default case.

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