aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/hostapd.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2008-08-22 17:55:52 (GMT)
committerJouni Malinen <j@w1.fi>2008-08-22 17:55:52 (GMT)
commitedd360e170f15caa614bf4bb3847f5937b0517e5 (patch)
tree1cab4d84eb5cd47b15b26e5fec5071921068fa27 /hostapd/hostapd.c
parent71b6ae1425d5a347caede49a8fd8278b09d69880 (diff)
downloadhostap-06-edd360e170f15caa614bf4bb3847f5937b0517e5.zip
hostap-06-edd360e170f15caa614bf4bb3847f5937b0517e5.tar.gz
hostap-06-edd360e170f15caa614bf4bb3847f5937b0517e5.tar.bz2
Do not store dynamic HT IEs in configuration structures
The configuration data should only store the static configuration data and not dynamic data. In addition, storing HT configuration and state in IEs is not the easiest way of doing this, so use more convenient data types for storing configuration and dynamic state. The HT IEs are then generated based on the static configuration and dynamic state whenever needed.
Diffstat (limited to 'hostapd/hostapd.c')
-rw-r--r--hostapd/hostapd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hostapd/hostapd.c b/hostapd/hostapd.c
index e9d9647..d9f39e6 100644
--- a/hostapd/hostapd.c
+++ b/hostapd/hostapd.c
@@ -1563,6 +1563,12 @@ static int setup_interface1(struct hostapd_iface *iface)
if (hostapd_validate_bssid_configuration(iface))
return -1;
+#ifdef CONFIG_IEEE80211N
+ SET_2BIT_LE16(&iface->ht_op_mode,
+ HT_INFO_OPERATION_MODE_OP_MODE_OFFSET,
+ OP_MODE_PURE);
+#endif /* CONFIG_IEEE80211N */
+
os_memcpy(country, hapd->iconf->country, 3);
country[3] = '\0';
if (hostapd_set_country(hapd, country) < 0) {