]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_supplicant: Support dtim_period configuration for AP mode
authorEtay Luz <eluz@qca.qualcomm.com>
Mon, 4 Jun 2012 14:52:37 +0000 (17:52 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 4 Jun 2012 14:52:37 +0000 (17:52 +0300)
Signed-off-by: Etay Luz <eluz@qca.qualcomm.com>
wpa_supplicant/ap.c
wpa_supplicant/config.c
wpa_supplicant/config_ssid.h
wpa_supplicant/wpa_supplicant.conf

index d531583965df0777b7bbed278dd89bb15a706498..7e6441e8a030753c91721367b98e7eb38258e8c0 100644 (file)
@@ -193,6 +193,9 @@ static int wpa_supplicant_conf_ap(struct wpa_supplicant *wpa_s,
        if (ssid->ap_max_inactivity)
                bss->ap_max_inactivity = ssid->ap_max_inactivity;
 
+       if (ssid->dtim_period)
+               bss->dtim_period = ssid->dtim_period;
+
        /* Select group cipher based on the enabled pairwise cipher suites */
        pairwise = 0;
        if (bss->wpa & 1)
index ce763b3052979fcdaff6b84742f0402bfa0c3fbf..d3967cec3aef3551585be08ca6aa1b4e7c2f5617 100644 (file)
@@ -1610,6 +1610,7 @@ static const struct parse_data ssid_fields[] = {
        { STR(ht_mcs) },
 #endif /* CONFIG_HT_OVERRIDES */
        { INT(ap_max_inactivity) },
+       { INT(dtim_period) },
 };
 
 #undef OFFSET
index 80d438248a04c834b9e75ccce7c5d0d0b6795e61..c35f7c3fe08356dc7c06608f9fd40d4896541da0 100644 (file)
@@ -499,6 +499,12 @@ struct wpa_ssid {
         * By default: 300 seconds.
         */
        int ap_max_inactivity;
+
+       /**
+        * dtim_period - DTIM period in Beacon intervals
+        * By default: 2
+        */
+       int dtim_period;
 };
 
 #endif /* CONFIG_SSID_H */
index 745dc5ba31a15375f2a4179b28efcfabb98ee507..1ac91c987268816ac4918686c286c51d6c8c8cf2 100644 (file)
@@ -687,6 +687,9 @@ fast_reauth=1
 # default: 300 (i.e., 5 minutes)
 #ap_max_inactivity=300
 
+# DTIM period in Beacon intervals for AP mode (default: 2)
+#dtim_period=2
+
 # Example blocks:
 
 # Simple case: WPA-PSK, PSK as an ASCII passphrase, allow all valid ciphers