]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Add wpas_notify_p2p_go_neg_req
authorKonguraj(Raj) Kulanthaivel <konguraj.kulanthaivel@intel.com>
Thu, 24 Feb 2011 20:30:19 +0000 (22:30 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 24 Feb 2011 20:30:19 +0000 (22:30 +0200)
Add a notification for received GO negotiation requests.

Signed-off-by: Konguraj(Raj) Kulanthaivel <konguraj.kulanthaivel@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
wpa_supplicant/notify.c
wpa_supplicant/notify.h
wpa_supplicant/p2p_supplicant.c

index 21aef87a6597f03fb5cd267bfd3c4a93430e81e4..e2ba7db089276f7409a966421c793be1a741714f 100644 (file)
@@ -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 */
index 6973c459b8ca4ff957048d6242e0908b8b058193..0495880bc2b5f0c25beb7da37b9ffc51cace3865 100644 (file)
@@ -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 */
index 73760595d130c4912ca0a5941ecafee5d2e773c5..1b33ad6cd190e76899789024931b893a6161e657 100644 (file)
@@ -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);
 }