[PATCH 2/2] Require WMM to be enabled before allowing inclusion of the QBSS Load element

Nick Lowe nick.lowe at lugatech.com
Wed Feb 22 08:55:19 PST 2017


 Require WMM to be enabled before allowing inclusion of
 the QBSS Load element. WMM is based on the EDCA portion of 802.11e that
 defines a QBSS.

Signed-off-by: Nick Lowe <nick.lowe at gmail.com>
---
 hostapd/hostapd.conf | 5 +++--
 src/ap/bss_load.c    | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf
index 89e61a1..96aed35 100644
--- a/hostapd/hostapd.conf
+++ b/hostapd/hostapd.conf
@@ -484,9 +484,10 @@ wmm_ac_vo_acm=0
 # associated stations in the BSS. By default, this bridging is allowed.
 #ap_isolate=1

-# BSS Load update period (in BUs)
-# This field is used to enable and configure adding a BSS Load element into
+# QBSS Load update period (in BUs)
+# This field is used to enable and configure adding a QBSS Load element into
 # Beacon and Probe Response frames.
+# Note: You will also need to enable WMM, the basis for a QBSS via EDCA.
 #bss_load_update_period=50

 # Fixed BSS Load value for testing purposes
diff --git a/src/ap/bss_load.c b/src/ap/bss_load.c
index fb63942..42b9d22 100644
--- a/src/ap/bss_load.c
+++ b/src/ap/bss_load.c
@@ -46,7 +46,7 @@ int bss_load_update_init(struct hostapd_data *hapd)
  struct hostapd_config *iconf = hapd->iconf;
  unsigned int sec, usec;

- if (!conf->bss_load_update_period || !iconf->beacon_int)
+ if (!conf->wmm_enabled || !conf->bss_load_update_period || !iconf->beacon_int)
  return -1;

  hapd->bss_load_update_timeout = conf->bss_load_update_period *
-- 
2.10.2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Require-WMM-to-be-enabled-before-allowing-inclusion-.patch
Type: application/octet-stream
Size: 1664 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/hostap/attachments/20170222/bdeff5bb/attachment.obj>


More information about the Hostap mailing list