]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Move public P2P_PEER info generation into ctrl_iface
authorJouni Malinen <j@w1.fi>
Thu, 22 Dec 2011 19:26:31 +0000 (21:26 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 22 Dec 2011 19:26:31 +0000 (21:26 +0200)
commitb3ffc80b8cb5642c990cf5f1c32f2e646a33365a
tree2d9116ca0ce976b139739782c5067d60e4aaf80f
parentb3bcc0f5195ab9e2dc7c6885afee30bcb66c9e5d
P2P: Move public P2P_PEER info generation into ctrl_iface

The P2P module provides access to public peer data in struct
p2p_peer_info. Use this to build the P2P_PEER information in
ctrl_iface.c instead of providing such text format data from the P2P
module.

The internal data that was previously built in p2p_get_peer_info() as
part of the text format peer data is now available through a separate
p2p_get_peer_info_txt() function. This is still included in P2P_PEER
output to maintain backwards compatibility with external programs that
could have started to use this. However, it should be noted that this
data is not really supposed to be used for anything else apart from
debugging purposes and its format is subject to change.

Signed-hostap: Jouni Malinen <j@w1.fi>
src/p2p/p2p.c
src/p2p/p2p.h
wpa_supplicant/ctrl_iface.c