[PATCH 3/5] hostapd: Advertise CSA support in STATUS command

Ilan Peer ilan.peer
Wed Jan 1 05:32:11 PST 2014


From: Andrei Otcheretianski <andrei.otcheretianski at intel.com>

Publish the value of csa_supported flag in the STATUS
command output.

Signed-hostap: Andrei Otcheretianski <andrei.otcheretianski at intel.com>
---
 src/ap/ctrl_iface_ap.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/ap/ctrl_iface_ap.c b/src/ap/ctrl_iface_ap.c
index 0d46ea0..1a52ce5 100644
--- a/src/ap/ctrl_iface_ap.c
+++ b/src/ap/ctrl_iface_ap.c
@@ -333,7 +333,8 @@ int hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf,
 			  "num_sta_no_ht=%d\n"
 			  "num_sta_ht_20_mhz=%d\n"
 			  "olbc_ht=%d\n"
-			  "ht_op_mode=0x%x\n",
+			  "ht_op_mode=0x%x\n"
+			  "csa_supported=%u\n",
 			  hostapd_state_text(iface->state),
 			  iface->phy,
 			  iface->freq,
@@ -345,7 +346,8 @@ int hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf,
 			  iface->num_sta_no_ht,
 			  iface->num_sta_ht_20mhz,
 			  iface->olbc_ht,
-			  iface->ht_op_mode);
+			  iface->ht_op_mode,
+			  iface->csa_supported);
 	if (ret < 0 || (size_t) ret >= buflen - len)
 		return len;
 	len += ret;
-- 
1.7.10.4




More information about the Hostap mailing list