aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorBeni Lev <beni.lev@intel.com>2018-08-22 16:49:02 (GMT)
committerJouni Malinen <j@w1.fi>2018-10-16 09:26:59 (GMT)
commit86a6f5f888bac030eb780ed30c5ceac0d1f4b17d (patch)
tree2542cd67d57697b2395d872032504999ff4766ba /hostapd
parent182a0b4dae43513945bbbc1be169767323dee136 (diff)
downloadhostap-86a6f5f888bac030eb780ed30c5ceac0d1f4b17d.zip
hostap-86a6f5f888bac030eb780ed30c5ceac0d1f4b17d.tar.gz
hostap-86a6f5f888bac030eb780ed30c5ceac0d1f4b17d.tar.bz2
WMM: Update WMM parameter advertisement on the fly
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>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/ctrl_iface.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c
index 2d68e88..628278f 100644
--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -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");
}
}