aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ieee802_11_ht.c
diff options
context:
space:
mode:
authorPaul Stewart <pstew@chromium.org>2014-03-12 22:28:39 (GMT)
committerJouni Malinen <j@w1.fi>2014-03-14 19:49:08 (GMT)
commitdb63757dbc93dc4c7893dd7697b9c28d17737722 (patch)
treec49f673f2f88b5ef9e3cfff97c802a8c957d9300 /src/ap/ieee802_11_ht.c
parent6e9375e4e1a0c7f7d27b800ba8c847783d7b2fab (diff)
downloadhostap-db63757dbc93dc4c7893dd7697b9c28d17737722.zip
hostap-db63757dbc93dc4c7893dd7697b9c28d17737722.tar.gz
hostap-db63757dbc93dc4c7893dd7697b9c28d17737722.tar.bz2
hostapd: Supply default parameters for OBSS scan
For some client OBSS implementations that are performed in firmware, all OBSS parameters need to be set to valid values. Do this, as well as supplying the "20/40 Coex Mgmt Support" flag in the extended capabilities IE. Signed-hostap: Paul Stewart <pstew@chromium.org>
Diffstat (limited to 'src/ap/ieee802_11_ht.c')
-rw-r--r--src/ap/ieee802_11_ht.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/ap/ieee802_11_ht.c b/src/ap/ieee802_11_ht.c
index a166178..138d049 100644
--- a/src/ap/ieee802_11_ht.c
+++ b/src/ap/ieee802_11_ht.c
@@ -54,7 +54,20 @@ u8 * hostapd_eid_ht_capabilities(struct hostapd_data *hapd, u8 *eid)
scan_params->width_trigger_scan_interval =
host_to_le16(hapd->iconf->obss_interval);
- /* TODO: Fill in more parameters (supplicant ignores them) */
+ /* Fill in default values for remaining parameters
+ * (IEEE Std 802.11-2012, 8.4.2.61 and MIB defval) */
+ scan_params->scan_passive_dwell =
+ host_to_le16(20);
+ scan_params->scan_active_dwell =
+ host_to_le16(10);
+ scan_params->scan_passive_total_per_channel =
+ host_to_le16(200);
+ scan_params->scan_active_total_per_channel =
+ host_to_le16(20);
+ scan_params->channel_transition_delay_factor =
+ host_to_le16(5);
+ scan_params->scan_activity_threshold =
+ host_to_le16(25);
pos += sizeof(*scan_params);
}