]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WMM: Update WMM parameter advertisement on the fly
authorBeni Lev <beni.lev@intel.com>
Wed, 22 Aug 2018 16:49:02 +0000 (19:49 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 16 Oct 2018 09:26:59 +0000 (12:26 +0300)
Update the Beacon frame template once WMM parameters have been changed
and the AP is already up.

Signed-off-by: Beni Lev <beni.lev@intel.com>
hostapd/ctrl_iface.c

index 2d68e88f6503a1641cbd5e66d26a61fc20c1ff77..628278f5694bf58993e5c298923940874272fb7d 100644 (file)
@@ -1386,6 +1386,12 @@ static int hostapd_ctrl_iface_set(struct hostapd_data *hapd, char *cmd)
                        hostapd_disassoc_deny_mac(hapd);
                } else if (os_strcasecmp(cmd, "accept_mac_file") == 0) {
                        hostapd_disassoc_accept_mac(hapd);
+               } else if (os_strncmp(cmd, "wme_ac_", 7) == 0 ||
+                          os_strncmp(cmd, "wmm_ac_", 7) == 0) {
+                       hapd->parameter_set_count++;
+                       if (ieee802_11_update_beacons(hapd->iface))
+                               wpa_printf(MSG_DEBUG,
+                                          "Failed to update beacons with WMM parameters");
                }
        }