[PATCH 2/3] HT: pass the smps_mode in ap params
Ilan Peer
ilan.peer
Sun Oct 19 20:21:40 PDT 2014
From: Eliad Peller <eliad at wizery.com>
The driver needs to know what smps mode it
should use.
Signed-off-by: Eliad Peller <eliad at wizery.com>
---
src/ap/beacon.c | 1 +
src/drivers/driver.h | 8 ++++++++
2 files changed, 9 insertions(+)
diff --git a/src/ap/beacon.c b/src/ap/beacon.c
index 4cae0d9..514b5ac 100644
--- a/src/ap/beacon.c
+++ b/src/ap/beacon.c
@@ -908,6 +908,7 @@ int ieee802_11_build_ap_params(struct hostapd_data *hapd,
break;
}
params->isolate = hapd->conf->isolate;
+ params->smps_mode = hapd->iconf->ht_capab & HT_CAP_INFO_SMPS_MASK;
#ifdef NEED_AP_MLME
params->cts_protect = !!(ieee802_11_erp_info(hapd) &
ERP_INFO_USE_PROTECTION);
diff --git a/src/drivers/driver.h b/src/drivers/driver.h
index 9b67136..f2878bb 100644
--- a/src/drivers/driver.h
+++ b/src/drivers/driver.h
@@ -895,6 +895,14 @@ struct wpa_driver_ap_params {
int ap_max_inactivity;
/**
+ * smps_mode - SMPS mode
+ *
+ * smps mode to be used by the AP. specified as the relevant
+ * bits of ht_capab (i.e. HT_CAP_INFO_SMPS_*).
+ */
+ int smps_mode;
+
+ /**
* disable_dgaf - Whether group-addressed frames are disabled
*/
int disable_dgaf;
--
1.8.3.2
More information about the Hostap
mailing list