aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ieee802_11_ht.c
diff options
context:
space:
mode:
authorPaul Stewart <pstew@chromium.org>2013-09-04 15:59:52 (GMT)
committerJouni Malinen <j@w1.fi>2013-11-07 12:05:41 (GMT)
commitc101bb9d23aadd9dc7c00375def6ffecd3404686 (patch)
treef3f27545ad9e7039cdbd39a228561f8962e538bb /src/ap/ieee802_11_ht.c
parent60cdfd7e257e9c5e0c032c2ce840c4e369943c49 (diff)
downloadhostap-c101bb9d23aadd9dc7c00375def6ffecd3404686.zip
hostap-c101bb9d23aadd9dc7c00375def6ffecd3404686.tar.gz
hostap-c101bb9d23aadd9dc7c00375def6ffecd3404686.tar.bz2
hostapd: Add option to send OBSS scan params
Add a parameter to send the overlapping BSS scan parameter information element. This will require clients to perform background scans to check for neigbors overlapping this HT40 BSS. Since the implementation is incomplete it should only be used for testing. Signed-hostap: Paul Stewart <pstew@chromium.org>
Diffstat (limited to 'src/ap/ieee802_11_ht.c')
-rw-r--r--src/ap/ieee802_11_ht.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ap/ieee802_11_ht.c b/src/ap/ieee802_11_ht.c
index 6483e1c..2d53648 100644
--- a/src/ap/ieee802_11_ht.c
+++ b/src/ap/ieee802_11_ht.c
@@ -50,6 +50,22 @@ u8 * hostapd_eid_ht_capabilities(struct hostapd_data *hapd, u8 *eid)
pos += sizeof(*cap);
+ if (hapd->iconf->obss_interval) {
+ struct ieee80211_obss_scan_parameters *scan_params;
+
+ *pos++ = WLAN_EID_OVERLAPPING_BSS_SCAN_PARAMS;
+ *pos++ = sizeof(*scan_params);
+
+ scan_params = (struct ieee80211_obss_scan_parameters *) pos;
+ os_memset(scan_params, 0, sizeof(*scan_params));
+ scan_params->width_trigger_scan_interval =
+ host_to_le16(hapd->iconf->obss_interval);
+
+ /* TODO: Fill in more parameters (supplicant ignores them) */
+
+ pos += sizeof(*scan_params);
+ }
+
return pos;
}