P2P: Add GO negotiation status notification
Signed-off-by: Jayant Sane <jayant.sane@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
32d1bce0c0
commit
c2641bf7cf
3 changed files with 9 additions and 0 deletions
|
@ -376,4 +376,9 @@ void wpas_notify_p2p_go_neg_req(struct wpa_supplicant *wpa_s,
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void wpas_notify_p2p_go_neg_completed(struct wpa_supplicant *wpa_s, int status)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_P2P */
|
#endif /* CONFIG_P2P */
|
||||||
|
|
|
@ -87,5 +87,7 @@ void wpas_notify_p2p_group_removed(struct wpa_supplicant *wpa_s,
|
||||||
const char *role);
|
const char *role);
|
||||||
void wpas_notify_p2p_go_neg_req(struct wpa_supplicant *wpa_s,
|
void wpas_notify_p2p_go_neg_req(struct wpa_supplicant *wpa_s,
|
||||||
const u8 *src, u16 dev_passwd_id);
|
const u8 *src, u16 dev_passwd_id);
|
||||||
|
void wpas_notify_p2p_go_neg_completed(struct wpa_supplicant *wpa_s,
|
||||||
|
int status);
|
||||||
|
|
||||||
#endif /* NOTIFY_H */
|
#endif /* NOTIFY_H */
|
||||||
|
|
|
@ -1080,11 +1080,13 @@ void wpas_go_neg_completed(void *ctx, struct p2p_go_neg_results *res)
|
||||||
if (res->status) {
|
if (res->status) {
|
||||||
wpa_msg(wpa_s, MSG_INFO, P2P_EVENT_GO_NEG_FAILURE "status=%d",
|
wpa_msg(wpa_s, MSG_INFO, P2P_EVENT_GO_NEG_FAILURE "status=%d",
|
||||||
res->status);
|
res->status);
|
||||||
|
wpas_notify_p2p_go_neg_completed(wpa_s, res->status);
|
||||||
wpas_p2p_remove_pending_group_interface(wpa_s);
|
wpas_p2p_remove_pending_group_interface(wpa_s);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
wpa_msg(wpa_s, MSG_INFO, P2P_EVENT_GO_NEG_SUCCESS);
|
wpa_msg(wpa_s, MSG_INFO, P2P_EVENT_GO_NEG_SUCCESS);
|
||||||
|
wpas_notify_p2p_go_neg_completed(wpa_s, P2P_SC_SUCCESS);
|
||||||
|
|
||||||
if (wpa_s->create_p2p_iface) {
|
if (wpa_s->create_p2p_iface) {
|
||||||
struct wpa_supplicant *group_wpa_s =
|
struct wpa_supplicant *group_wpa_s =
|
||||||
|
|
Loading…
Reference in a new issue