P2P: Add notification for P2P device found
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
c165d81eea
commit
d642d2d267
3 changed files with 13 additions and 0 deletions
|
@ -348,3 +348,11 @@ void wpas_notify_resume(struct wpa_global *global)
|
|||
wpa_supplicant_req_scan(wpa_s, 0, 100000);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#ifdef CONFIG_P2P
|
||||
void wpas_notify_p2p_device_found(struct wpa_supplicant *wpa_s,
|
||||
const u8 *dev_addr, int new_device)
|
||||
{
|
||||
}
|
||||
#endif /* CONFIG_P2P */
|
||||
|
|
|
@ -78,4 +78,7 @@ void wpas_notify_debug_show_keys_changed(struct wpa_global *global);
|
|||
void wpas_notify_suspend(struct wpa_global *global);
|
||||
void wpas_notify_resume(struct wpa_global *global);
|
||||
|
||||
void wpas_notify_p2p_device_found(struct wpa_supplicant *wpa_s,
|
||||
const u8 *dev_addr, int new_device);
|
||||
|
||||
#endif /* NOTIFY_H */
|
||||
|
|
|
@ -1146,6 +1146,8 @@ void wpas_dev_found(void *ctx, const u8 *addr,
|
|||
sizeof(devtype)),
|
||||
info->device_name, info->config_methods,
|
||||
info->dev_capab, info->group_capab);
|
||||
|
||||
wpas_notify_p2p_device_found(ctx, info->p2p_device_addr, new_device);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue