From: Konguraj(Raj) Kulanthaivel Date: Thu, 24 Feb 2011 20:30:19 +0000 (+0200) Subject: P2P: Add wpas_notify_p2p_go_neg_req X-Git-Tag: hostap-1-bp~557 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=32d1bce0c0c4e90ecae5c5876c6013d4f70de02c;p=thirdparty%2Fhostap.git 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 --- 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); }