aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRashmi Ramanna <c_ramanr@qti.qualcomm.com>2014-05-13 16:14:18 +0530
committerSteve Kondik <shade@chemlab.org>2014-06-12 14:08:46 -0700
commit6c233a040607e1256b44c7db055982a16dd628cd (patch)
tree14fb4a2ff39907381684adf6dace0a9c16589d3c
parentf48fc2997fcda4f17120033fff7e19a1cb3bc553 (diff)
downloadandroid_external_wpa_supplicant_8-6c233a040607e1256b44c7db055982a16dd628cd.tar.gz
android_external_wpa_supplicant_8-6c233a040607e1256b44c7db055982a16dd628cd.tar.bz2
android_external_wpa_supplicant_8-6c233a040607e1256b44c7db055982a16dd628cd.zip
P2P: Fix scan optimization for GO during persistent group invocation
Commit 41d5ce9e0b7b37dd84fbf3c1aa5ed571c32321d4 was intended to scan for GO on the negotiated channel for few iterations, but it did not work correctly due to incorrect operator being used. Fix this by requiring both conditions to be met for the single channel scan. CRs-Fixed: 661483 Git-commit: 28fa4eb2b2dd971321e49591aade07d56695cf3e Git-repo : git://w1.fi/srv/git/hostap.git Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com> Change-Id: Ie1dcfb569b7fd08e0166812ec2506a3fea8fb309
-rw-r--r--wpa_supplicant/scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c
index dee1fb8a..0de6f478 100644
--- a/wpa_supplicant/scan.c
+++ b/wpa_supplicant/scan.c
@@ -292,7 +292,7 @@ static void wpa_supplicant_optimize_freqs(
* Optimize scan based on GO information during persistent
* group reinvocation
*/
- if (wpa_s->p2p_in_invitation < 5 ||
+ if (wpa_s->p2p_in_invitation < 5 &&
wpa_s->p2p_invite_go_freq > 0) {
wpa_dbg(wpa_s, MSG_DEBUG, "P2P: Scan only GO preferred frequency %d MHz during invitation",
wpa_s->p2p_invite_go_freq);