Parcourir la source

P2P: Add wpas_notify_p2p_go_neg_req

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>
Konguraj(Raj) Kulanthaivel il y a 14 ans
Parent
commit
32d1bce0c0
3 fichiers modifiés avec 10 ajouts et 0 suppressions
  1. 6 0
      wpa_supplicant/notify.c
  2. 2 0
      wpa_supplicant/notify.h
  3. 2 0
      wpa_supplicant/p2p_supplicant.c

+ 6 - 0
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 */

+ 2 - 0
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 */

+ 2 - 0
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);
 }