aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/hostapd.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2008-10-29 17:25:15 (GMT)
committerJouni Malinen <j@w1.fi>2008-10-29 17:25:15 (GMT)
commit990ec3787e48b1fa22bb232feedaf64c1b3e006a (patch)
treef9248a90686554af007cdfb84fdb3fce163cf830 /hostapd/hostapd.c
parent114622c021e04a65f292668d449a270f42c6a0e9 (diff)
downloadhostap-06-990ec3787e48b1fa22bb232feedaf64c1b3e006a.zip
hostap-06-990ec3787e48b1fa22bb232feedaf64c1b3e006a.tar.gz
hostap-06-990ec3787e48b1fa22bb232feedaf64c1b3e006a.tar.bz2
Set TX queue parameters during initialization
This was already called from reconfig.c, but the call from hostapd.c had been forgotten.
Diffstat (limited to 'hostapd/hostapd.c')
-rw-r--r--hostapd/hostapd.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/hostapd/hostapd.c b/hostapd/hostapd.c
index fdc61b2..e80446a 100644
--- a/hostapd/hostapd.c
+++ b/hostapd/hostapd.c
@@ -1362,6 +1362,28 @@ static int hostapd_setup_bss(struct hostapd_data *hapd, int first)
}
+static void hostapd_tx_queue_params(struct hostapd_iface *iface)
+{
+ struct hostapd_data *hapd = iface->bss[0];
+ int i;
+ struct hostapd_tx_queue_params *p;
+
+ for (i = 0; i < NUM_TX_QUEUES; i++) {
+ p = &iface->conf->tx_queue[i];
+
+ if (!p->configured)
+ continue;
+
+ if (hostapd_set_tx_queue_params(hapd, i, p->aifs, p->cwmin,
+ p->cwmax, p->burst)) {
+ printf("Failed to set TX queue parameters for queue %d"
+ ".\n", i);
+ /* Continue anyway */
+ }
+ }
+}
+
+
/**
* setup_interface2 - Setup (initialize) an interface (part 2)
* @iface: Pointer to interface data.
@@ -1425,6 +1447,8 @@ static int setup_interface2(struct hostapd_iface *iface)
prev_addr = hapd->own_addr;
}
+ hostapd_tx_queue_params(iface);
+
ap_list_init(iface);
if (hostapd_driver_commit(hapd) < 0) {