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>
This commit is contained in:
Konguraj(Raj) Kulanthaivel 2011-02-24 22:30:19 +02:00 committed by Jouni Malinen
parent 408af93ed4
commit 32d1bce0c0
3 changed files with 10 additions and 0 deletions

View 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 */ #endif /* CONFIG_P2P */

View 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, void wpas_notify_p2p_group_removed(struct wpa_supplicant *wpa_s,
const struct wpa_ssid *ssid, const struct wpa_ssid *ssid,
const char *role); 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 */ #endif /* NOTIFY_H */

View 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; struct wpa_supplicant *wpa_s = ctx;
wpa_msg(wpa_s, MSG_INFO, P2P_EVENT_GO_NEG_REQUEST MACSTR wpa_msg(wpa_s, MSG_INFO, P2P_EVENT_GO_NEG_REQUEST MACSTR
" dev_passwd_id=%u", MAC2STR(src), dev_passwd_id); " dev_passwd_id=%u", MAC2STR(src), dev_passwd_id);
wpas_notify_p2p_go_neg_req(wpa_s, src, dev_passwd_id);
} }