[PATCH] P2P: GO/Client is not currently showing correct frequency in the P2P_EVENT_GROUP_STARTED event.
Jithu Jance
jithu
Tue Oct 25 23:26:57 PDT 2011
P2P GO/Client is not currently showing correct frequency in the CTRL-EVENT [P2P_EVENT_GROUP_STARTED]. This patch fixes that. Kindly see whether the patch is okay.
---
wpa_supplicant/p2p_supplicant.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index edae2da..d2fb0fc 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -3618,14 +3618,14 @@ void wpas_p2p_completed(struct wpa_supplicant *wpa_s)
wpa_msg(wpa_s->parent, MSG_INFO, P2P_EVENT_GROUP_STARTED
"%s client ssid=\"%s\" freq=%d psk=%s go_dev_addr="
MACSTR "%s",
- wpa_s->ifname, ssid_txt, ssid->frequency, psk,
+ wpa_s->ifname, ssid_txt, wpa_s->current_bss->freq, psk,
MAC2STR(go_dev_addr),
persistent ? " [PERSISTENT]" : "");
} else {
wpa_msg(wpa_s->parent, MSG_INFO, P2P_EVENT_GROUP_STARTED
"%s client ssid=\"%s\" freq=%d passphrase=\"%s\" "
"go_dev_addr=" MACSTR "%s",
- wpa_s->ifname, ssid_txt, ssid->frequency,
+ wpa_s->ifname, ssid_txt, wpa_s->current_bss->freq,
ssid->passphrase ? ssid->passphrase : "",
MAC2STR(go_dev_addr),
persistent ? " [PERSISTENT]" : "");
--
1.7.4.1
- Jithu Jance.
More information about the Hostap
mailing list