path: root/wpa_supplicant/notify.c
diff options
authorJouni Malinen <j@w1.fi>2011-12-22 20:47:41 (GMT)
committerJouni Malinen <j@w1.fi>2011-12-22 20:47:41 (GMT)
commitfbdcfd577a3f6245c9c34e09842e766777a84ea7 (patch)
tree8a3728f8b1a499a600981142ed4b3232d1c83778 /wpa_supplicant/notify.c
parent87f841a1407dc8f988d6c43a9c4307e34e86986f (diff)
P2P: Maintain a list of P2P Clients for persistent group on GO
Add a new persistent group network block field, p2p_client_list, to maintain a list of P2P Clients that have connected to a persistent group. This allows GO of a persistent group to figure out more easily whether re-invocation of a persistent group can be used with a specific peer device. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/notify.c')
1 files changed, 7 insertions, 3 deletions
diff --git a/wpa_supplicant/notify.c b/wpa_supplicant/notify.c
index 71778ae..6e9b5a9 100644
--- a/wpa_supplicant/notify.c
+++ b/wpa_supplicant/notify.c
@@ -525,9 +525,12 @@ void wpas_notify_p2p_wps_failed(struct wpa_supplicant *wpa_s,
static void wpas_notify_ap_sta_authorized(struct wpa_supplicant *wpa_s,
- const u8 *sta)
+ const u8 *sta,
+ const u8 *p2p_dev_addr)
#ifdef CONFIG_P2P
+ wpas_p2p_notify_ap_sta_authorized(wpa_s, p2p_dev_addr);
* Register a group member object corresponding to this peer and
* emit a PeerJoined signal. This will check if it really is a
@@ -564,10 +567,11 @@ static void wpas_notify_ap_sta_deauthorized(struct wpa_supplicant *wpa_s,
void wpas_notify_sta_authorized(struct wpa_supplicant *wpa_s,
- const u8 *mac_addr, int authorized)
+ const u8 *mac_addr, int authorized,
+ const u8 *p2p_dev_addr)
if (authorized)
- wpas_notify_ap_sta_authorized(wpa_s, mac_addr);
+ wpas_notify_ap_sta_authorized(wpa_s, mac_addr, p2p_dev_addr);
wpas_notify_ap_sta_deauthorized(wpa_s, mac_addr);