aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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 /src
parent87f841a1407dc8f988d6c43a9c4307e34e86986f (diff)
downloadhostap-fbdcfd577a3f6245c9c34e09842e766777a84ea7.zip
hostap-fbdcfd577a3f6245c9c34e09842e766777a84ea7.tar.gz
hostap-fbdcfd577a3f6245c9c34e09842e766777a84ea7.tar.bz2
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 'src')
-rw-r--r--src/ap/hostapd.h2
-rw-r--r--src/ap/sta_info.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ap/hostapd.h b/src/ap/hostapd.h
index 5b72768..c6f6205 100644
--- a/src/ap/hostapd.h
+++ b/src/ap/hostapd.h
@@ -149,7 +149,7 @@ struct hostapd_data {
void *wps_event_cb_ctx;
void (*sta_authorized_cb)(void *ctx, const u8 *mac_addr,
- int authorized);
+ int authorized, const u8 *p2p_dev_addr);
void *sta_authorized_cb_ctx;
void (*setup_complete_cb)(void *ctx);
diff --git a/src/ap/sta_info.c b/src/ap/sta_info.c
index d9c348e..27ab258 100644
--- a/src/ap/sta_info.c
+++ b/src/ap/sta_info.c
@@ -824,7 +824,7 @@ void ap_sta_set_authorized(struct hostapd_data *hapd, struct sta_info *sta,
if (hapd->sta_authorized_cb)
hapd->sta_authorized_cb(hapd->sta_authorized_cb_ctx,
- sta->addr, authorized);
+ sta->addr, authorized, dev_addr);
}