aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorIlan Peer <ilan.peer@intel.com>2015-07-27 19:24:27 (GMT)
committerJouni Malinen <j@w1.fi>2015-08-04 15:34:47 (GMT)
commit3a8f008a24a8e45d72c72741bc527eb8251758f7 (patch)
tree3e99c11fc5fdb075f8cf15086fab1bc107f280c2 /wpa_supplicant/events.c
parentdae4c82c9573268edd5dabc577b7bc7184b5ce22 (diff)
downloadhostap-3a8f008a24a8e45d72c72741bc527eb8251758f7.zip
hostap-3a8f008a24a8e45d72c72741bc527eb8251758f7.tar.gz
hostap-3a8f008a24a8e45d72c72741bc527eb8251758f7.tar.bz2
P2P: Do not perform P2P GO CS in some cases
A P2P GO channel switch should not be triggered in all cases that require channel list update. Specifically, a P2P GO CS should not be triggered in case that the P2P GO state changed or in case that that the P2P GO has just completed a CS. To fix this, add reason code to wpas_p2p_channel_list_update() and trigger CS flow only for the relevant cases. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 8b46810..829cd3f 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -3015,7 +3015,7 @@ static void wpa_supplicant_update_channel_list(
wpa_supplicant_req_scan(wpa_s, 0, 0);
}
- wpas_p2p_update_channel_list(wpa_s);
+ wpas_p2p_update_channel_list(wpa_s, WPAS_P2P_CHANNEL_UPDATE_DRIVER);
}
@@ -3154,7 +3154,8 @@ static void wpa_supplicant_notify_avoid_freq(struct wpa_supplicant *wpa_s,
* The update channel flow will also take care of moving a GO
* from the unsafe frequency if needed.
*/
- wpas_p2p_update_channel_list(wpa_s);
+ wpas_p2p_update_channel_list(wpa_s,
+ WPAS_P2P_CHANNEL_UPDATE_AVOID);
}
#endif /* CONFIG_P2P */