P2P: Add state info to global STATUS command

This can be used for debugging purposes to see what the current P2P
module state is.

Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2013-08-25 21:02:12 +03:00
parent ae8c27f79d
commit 4c559019bd
3 changed files with 27 additions and 2 deletions

View file

@ -137,6 +137,12 @@ static const char * p2p_state_txt(int state)
}
const char * p2p_get_state_txt(struct p2p_data *p2p)
{
return p2p_state_txt(p2p->state);
}
u16 p2p_get_provisioning_info(struct p2p_data *p2p, const u8 *addr)
{
struct p2p_device *dev = NULL;