diff mbox

P2P: Add NFC_HANDOVER commands to p2p_redir list

Message ID 20140407181030.ABC1614070A@ushik.mtv.corp.google.com
State Superseded
Headers show

Commit Message

Andres Morales Feb. 27, 2014, 12:05 a.m. UTC
These commands should be executed on the P2P interface
thus should be redirected to it.

Change-Id: Icea73676c0383727fe42abe08c9c2711a193f0f0
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
---
 wpa_supplicant/ctrl_iface.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Jouni Malinen April 11, 2014, 4:58 p.m. UTC | #1
On Wed, Feb 26, 2014 at 04:05:21PM -0800, Andres Morales wrote:
> These commands should be executed on the P2P interface
> thus should be redirected to it.

> @@ -6807,6 +6807,9 @@ static char * wpas_global_ctrl_iface_redir_p2p(struct wpa_global *global,
>  		"P2P_PRESENCE_REQ ",
>  		"P2P_EXT_LISTEN ",
>  		"P2P_REMOVE_CLIENT ",
> +		"NFC_GET_HANDOVER_SEL ",
> +		"NFC_GET_HANDOVER_REQ ",
> +		"NFC_REPORT_HANDOVER ",

Thanks, applied. Though, it should be noted that these commands are by
no means limited to P2P use cases. They are also used for WPS and also
on the P2P group interfaces. I updated the commit message to be bit
clearer on those other cases being available as well.
diff mbox

Patch

diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 8d51bf6..db00eeb 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -6807,6 +6807,9 @@  static char * wpas_global_ctrl_iface_redir_p2p(struct wpa_global *global,
 		"P2P_PRESENCE_REQ ",
 		"P2P_EXT_LISTEN ",
 		"P2P_REMOVE_CLIENT ",
+		"NFC_GET_HANDOVER_SEL ",
+		"NFC_GET_HANDOVER_REQ ",
+		"NFC_REPORT_HANDOVER ",
 		NULL
 	};
 	int found = 0;