[PATCH 9/9] TDLS: return channel-switch indication in link status cmd

Ilan Peer ilan.peer at intel.com
Wed Jun 17 09:18:21 EDT 2015


From: Arik Nemtsov <arik at wizery.com>

Return an appropriate indication in the tdls_get_link_status command when
when channel switching is enabled for the TDLS peer.

Signed-off-by: Arik Nemtsov <arikx.nemtsov at intel.com>
---
 src/rsn_supp/tdls.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/rsn_supp/tdls.c b/src/rsn_supp/tdls.c
index 6b1df71..4d4de4f 100644
--- a/src/rsn_supp/tdls.c
+++ b/src/rsn_supp/tdls.c
@@ -902,6 +902,9 @@ const char * wpa_tdls_get_link_status(struct wpa_sm *sm, const u8 *addr)
 	if (!peer->tpk_success)
 		return "peer not connected";
 
+	if (peer->chan_switch_enabled)
+		return "connected/channel-switching";
+
 	return "connected";
 }
 
-- 
1.9.1



More information about the HostAP mailing list