P2P: Make GO negotiation peer and group information available over D-Bus
The GO negotiation response is very cryptic at the moment. For a success message we only know on which interface the negotiation succeeded, not which peer. For a failure we know the interface also and a status code (number). It will be very useful for clients to know upon receipt of such a message which peer the negotiation occurred with. Now that the peer information is available and the API is changed already, the function composing the D-Bus message might as well include all GO negotiation information. This is done with a dict to make things easier on clients if this result information changes down the line. Signed-hostap: Reinette Chatre <reinette.chatre@intel.com> Signed-hostap: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
2f0c8936bf
commit
e5a359cf7e
7 changed files with 107 additions and 19 deletions
|
@ -3032,7 +3032,7 @@ int p2p_reject(struct p2p_data *p2p, const u8 *peer_addr)
|
|||
}
|
||||
|
||||
|
||||
static const char * p2p_wps_method_text(enum p2p_wps_method method)
|
||||
const char * p2p_wps_method_text(enum p2p_wps_method method)
|
||||
{
|
||||
switch (method) {
|
||||
case WPS_NOT_READY:
|
||||
|
|
|
@ -1574,4 +1574,6 @@ int p2p_in_progress(struct p2p_data *p2p);
|
|||
*/
|
||||
int p2p_other_scan_completed(struct p2p_data *p2p);
|
||||
|
||||
const char * p2p_wps_method_text(enum p2p_wps_method method);
|
||||
|
||||
#endif /* P2P_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue