aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/main.c
diff options
context:
space:
mode:
authorKyeyoon Park <kyeyoonp@qca.qualcomm.com>2013-07-24 09:28:20 (GMT)
committerJouni Malinen <j@w1.fi>2013-10-18 11:13:45 (GMT)
commitc551700f1fdf073015531cdd3123e792f244c0a6 (patch)
treeca71a6a56d9ee3abf01170e1a313680257b212a7 /hostapd/main.c
parentac1bc549483ca2b95eb54ac67ba24a795b763d8f (diff)
downloadhostap-c551700f1fdf073015531cdd3123e792f244c0a6.zip
hostap-c551700f1fdf073015531cdd3123e792f244c0a6.tar.gz
hostap-c551700f1fdf073015531cdd3123e792f244c0a6.tar.bz2
Interworking: Add support for QoS Mapping functionality for the AP
This allows QoS Map Set element to be added to (Re)Association Response frames and in QoS Map Configure frame. The QoS Mapping parameters are also made available for the driver interface. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd/main.c')
-rw-r--r--hostapd/main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/hostapd/main.c b/hostapd/main.c
index 90e5966..6a67347 100644
--- a/hostapd/main.c
+++ b/hostapd/main.c
@@ -282,6 +282,15 @@ static int hostapd_driver_init(struct hostapd_iface *iface)
iface->drv_max_acl_mac_addrs = capa.max_acl_mac_addrs;
}
+#ifdef CONFIG_INTERWORKING
+ if (hapd->driver->set_qos_map && conf->qos_map_set_len &&
+ hapd->driver->set_qos_map(hapd->drv_priv, conf->qos_map_set,
+ conf->qos_map_set_len)) {
+ wpa_printf(MSG_ERROR, "Failed to initialize QoS Map.");
+ return -1;
+ }
+#endif /* CONFIG_INTERWORKING */
+
return 0;
}