From 32d1bce0c0c4e90ecae5c5876c6013d4f70de02c Mon Sep 17 00:00:00 2001 From: "Konguraj(Raj) Kulanthaivel" Date: Thu, 24 Feb 2011 22:30:19 +0200 Subject: [PATCH] P2P: Add wpas_notify_p2p_go_neg_req Add a notification for received GO negotiation requests. Signed-off-by: Konguraj(Raj) Kulanthaivel Signed-off-by: Johannes Berg --- wpa_supplicant/notify.c | 6 ++++++ wpa_supplicant/notify.h | 2 ++ wpa_supplicant/p2p_supplicant.c | 2 ++ 3 files changed, 10 insertions(+) diff --git a/wpa_supplicant/notify.c b/wpa_supplicant/notify.c index 21aef87a6..e2ba7db08 100644 --- a/wpa_supplicant/notify.c +++ b/wpa_supplicant/notify.c @@ -370,4 +370,10 @@ void wpas_notify_p2p_group_removed(struct wpa_supplicant *wpa_s, { } + +void wpas_notify_p2p_go_neg_req(struct wpa_supplicant *wpa_s, + const u8 *src, u16 dev_passwd_id) +{ +} + #endif /* CONFIG_P2P */ diff --git a/wpa_supplicant/notify.h b/wpa_supplicant/notify.h index 6973c459b..0495880bc 100644 --- a/wpa_supplicant/notify.h +++ b/wpa_supplicant/notify.h @@ -85,5 +85,7 @@ void wpas_notify_p2p_device_lost(struct wpa_supplicant *wpa_s, void wpas_notify_p2p_group_removed(struct wpa_supplicant *wpa_s, const struct wpa_ssid *ssid, const char *role); +void wpas_notify_p2p_go_neg_req(struct wpa_supplicant *wpa_s, + const u8 *src, u16 dev_passwd_id); #endif /* NOTIFY_H */ diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index 73760595d..1b33ad6cd 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -1131,6 +1131,8 @@ void wpas_go_neg_req_rx(void *ctx, const u8 *src, u16 dev_passwd_id) struct wpa_supplicant *wpa_s = ctx; wpa_msg(wpa_s, MSG_INFO, P2P_EVENT_GO_NEG_REQUEST MACSTR " dev_passwd_id=%u", MAC2STR(src), dev_passwd_id); + + wpas_notify_p2p_go_neg_req(wpa_s, src, dev_passwd_id); }