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>
This commit is contained in:
Eliad Peller 2016-03-03 18:18:29 +02:00 committed by Jouni Malinen
parent 12c1fdf19a
commit 4115b0524b

View file

@ -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)) { if (wpas_p2p_supported_freq_go(wpa_s, channels, cand)) {
wpa_printf(MSG_DEBUG, wpa_printf(MSG_DEBUG,
"P2P: Use shared freq (%d MHz) for GO", "P2P: Use shared freq (%d MHz) for GO",
freq); cand);
params->freq = cand; params->freq = cand;
goto success; goto success;
} }
@ -5859,7 +5859,7 @@ static int wpas_p2p_init_go_params(struct wpa_supplicant *wpa_s,
freqs[i].freq)) { freqs[i].freq)) {
wpa_printf(MSG_DEBUG, wpa_printf(MSG_DEBUG,
"P2P: Use shared freq (%d MHz) for GO", "P2P: Use shared freq (%d MHz) for GO",
freq); freqs[i].freq);
params->freq = freqs[i].freq; params->freq = freqs[i].freq;
goto success; goto success;
} }