P2PS: Callback to remove stale persistent groups

When the peer device is trying to form a new group despite having
old persistent group with same roles, remove the stale persistent
group.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Krishna Vamsi 2014-12-10 19:08:17 +05:30 committed by Jouni Malinen
parent f309c18e50
commit 895d94def9
2 changed files with 66 additions and 0 deletions

View file

@ -970,6 +970,16 @@ struct p2p_config {
*/
int (*get_go_info)(void *ctx, u8 *intended_addr,
u8 *ssid, size_t *ssid_len, int *group_iface);
/**
* remove_stale_groups - Remove stale P2PS groups
*
* Because P2PS stages *potential* GOs, and remote devices can remove
* credentials unilaterally, we need to make sure we don't let stale
* unusable groups build up.
*/
int (*remove_stale_groups)(void *ctx, const u8 *peer, const u8 *go,
const u8 *ssid, size_t ssid_len);
};