HT: Pass the smps_mode in AP parameters
authorEliad Peller <eliad@wizery.com>
Mon, 20 Oct 2014 03:21:40 +0000 (23:21 -0400)
committerJouni Malinen <j@w1.fi>
Thu, 23 Oct 2014 22:27:31 +0000 (01:27 +0300)
The driver needs to know what SMPS mode it should use.

Signed-off-by: Eliad Peller <eliad@wizery.com>
src/ap/beacon.c
src/drivers/driver.h

index 22aef9f..f73f83a 100644 (file)
@@ -919,6 +919,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);
index 5fecd04..f10414b 100644 (file)
@@ -903,6 +903,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_*).
+        */
+       unsigned int smps_mode;
+
+       /**
         * disable_dgaf - Whether group-addressed frames are disabled
         */
        int disable_dgaf;