[EDT] [PATCH] P2P, DBUS: Getting listen freq info from found p2p peer device

Jouni Malinen j
Fri May 29 11:21:13 PDT 2015


On Fri, May 29, 2015 at 10:29:29AM +0000, Amit Khatri wrote:
> Subject: [PATCH] P2P,DBUS: Getting listen freq info from found p2p peer device
>  similar to p2p_peer <mac address> on ctrl interface.

What is this needed for? Please note that the peer may change its listen
frequency and in general, I would not recommend upper layer components
use this.

> diff --git a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
>  #include "p2p/p2p.h"
> +#include "p2p/p2p_i.h"

src/p2p/p2p_i.h (just like any other src/*/*_i.h header file) is
internal to the specific src module and it is not allowed to be included
into wpa_supplicant/*. If there is strong need for getting this
internal-to-P2P information into the D-Bus interface, a new accessor
function for listen frequency would likely need to be added into
src/p2p/p2p.h to enable this functionality.

The p2p_peer command includes number of private implementation specific
information for debugging purposes and as such, it cannot be used as a
justification for exposing this through the D-Bus interface.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list