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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 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@xxxxxxxxx>
---
 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

Attachment: 0002-Require-WMM-to-be-enabled-before-allowing-inclusion-.patch
Description: Binary data

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap

[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux