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:
parent
12c1fdf19a
commit
4115b0524b
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue