aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/p2p_supplicant.c
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2016-03-03 16:18:29 (GMT)
committerJouni Malinen <j@w1.fi>2016-03-04 19:16:00 (GMT)
commit4115b0524ba11c1cc007ccbb27d9ca3958afce77 (patch)
tree9afbeb9d5bf959a0b1413550cbfcf5dbbb27a389 /wpa_supplicant/p2p_supplicant.c
parent12c1fdf19a721aaf29e1c77d63445c7f5b8c61c0 (diff)
downloadhostap-4115b0524ba11c1cc007ccbb27d9ca3958afce77.zip
hostap-4115b0524ba11c1cc007ccbb27d9ca3958afce77.tar.gz
hostap-4115b0524ba11c1cc007ccbb27d9ca3958afce77.tar.bz2
P2P: Fix shared freq print in wpas_p2p_init_go_params()
"freq" contains the forced frequency, not the selected one. Print the correct freq instead. Signed-off-by: Eliad Peller <eliad@wizery.com>
Diffstat (limited to 'wpa_supplicant/p2p_supplicant.c')
-rw-r--r--wpa_supplicant/p2p_supplicant.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index cf2653d..a852c38 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -5848,7 +5848,7 @@ static int wpas_p2p_init_go_params(struct wpa_supplicant *wpa_s,
if (wpas_p2p_supported_freq_go(wpa_s, channels, cand)) {
wpa_printf(MSG_DEBUG,
"P2P: Use shared freq (%d MHz) for GO",
- freq);
+ cand);
params->freq = cand;
goto success;
}
@@ -5859,7 +5859,7 @@ static int wpas_p2p_init_go_params(struct wpa_supplicant *wpa_s,
freqs[i].freq)) {
wpa_printf(MSG_DEBUG,
"P2P: Use shared freq (%d MHz) for GO",
- freq);
+ freqs[i].freq);
params->freq = freqs[i].freq;
goto success;
}