[PATCH 1/2] P2P: fix shared freq print (wpas_p2p_init_go_params())
Eliad Peller
eliad at wizery.com
Thu Mar 3 08:18:29 PST 2016
"freq" contains the forced frequency, not
the selected one. print the correct freq instead.
Signed-off-by: Eliad Peller <eliad at wizery.com>
---
wpa_supplicant/p2p_supplicant.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index 8b99133..3295654 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -5844,7 +5844,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;
}
@@ -5855,7 +5855,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;
}
--
2.6.3
More information about the Hostap
mailing list