developer | 3721536 | 2023-09-15 14:16:34 +0800 | [diff] [blame] | 1 | From bf06bdd4ba98cebdb21408fc7c85b9adc813a956 Mon Sep 17 00:00:00 2001 |
developer | 93607dd | 2023-08-30 04:53:00 +0800 | [diff] [blame] | 2 | From: Michael Lee <michael-cy.lee@mediatek.com> |
| 3 | Date: Tue, 11 Jul 2023 14:17:43 +0800 |
developer | 3721536 | 2023-09-15 14:16:34 +0800 | [diff] [blame] | 4 | Subject: [PATCH 36/38] hostapd: mtk: Set WMM and TX queue parameters for |
developer | 93607dd | 2023-08-30 04:53:00 +0800 | [diff] [blame] | 5 | wpa_supplicant |
| 6 | |
| 7 | Since most of the time, wpa_supplicant will be used to setup an STA |
| 8 | interface, it's default WMM and TX queue parameters should be set for |
| 9 | STA. |
| 10 | |
| 11 | Signed-off-by: Michael Lee <michael-cy.lee@mediatek.com> |
| 12 | --- |
| 13 | wpa_supplicant/config.c | 12 ++++++------ |
| 14 | 1 file changed, 6 insertions(+), 6 deletions(-) |
| 15 | |
| 16 | diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c |
| 17 | index 2652c8a..cd40258 100644 |
| 18 | --- a/wpa_supplicant/config.c |
| 19 | +++ b/wpa_supplicant/config.c |
| 20 | @@ -4673,19 +4673,19 @@ struct wpa_config * wpa_config_alloc_empty(const char *ctrl_interface, |
| 21 | const struct hostapd_wmm_ac_params ac_bk = |
| 22 | { aCWmin, aCWmax, 7, 0, 0 }; /* background traffic */ |
| 23 | const struct hostapd_wmm_ac_params ac_be = |
| 24 | - { aCWmin, aCWmax, 3, 0, 0 }; /* best effort traffic */ |
| 25 | + { aCWmin, aCWmin + 2, 3, 0, 0 }; /* best effort traffic */ |
| 26 | const struct hostapd_wmm_ac_params ac_vi = /* video traffic */ |
| 27 | - { aCWmin - 1, aCWmin, 2, 3008 / 32, 0 }; |
| 28 | + { aCWmin - 1, aCWmin, 1, 3008 / 32, 0 }; |
| 29 | const struct hostapd_wmm_ac_params ac_vo = /* voice traffic */ |
| 30 | - { aCWmin - 2, aCWmin - 1, 2, 1504 / 32, 0 }; |
| 31 | + { aCWmin - 2, aCWmin - 1, 1, 1504 / 32, 0 }; |
| 32 | const struct hostapd_tx_queue_params txq_bk = |
| 33 | { 7, ecw2cw(aCWmin), ecw2cw(aCWmax), 0 }; |
| 34 | const struct hostapd_tx_queue_params txq_be = |
| 35 | - { 3, ecw2cw(aCWmin), 4 * (ecw2cw(aCWmin) + 1) - 1, 0 }; |
| 36 | + { 3, ecw2cw(aCWmin), ecw2cw(aCWmax), 0 }; |
| 37 | const struct hostapd_tx_queue_params txq_vi = |
| 38 | - { 1, (ecw2cw(aCWmin) + 1) / 2 - 1, ecw2cw(aCWmin), 30 }; |
| 39 | + { 2, (ecw2cw(aCWmin) + 1) / 2 - 1, ecw2cw(aCWmin), 30 }; |
| 40 | const struct hostapd_tx_queue_params txq_vo = |
| 41 | - { 1, (ecw2cw(aCWmin) + 1) / 4 - 1, |
| 42 | + { 2, (ecw2cw(aCWmin) + 1) / 4 - 1, |
| 43 | (ecw2cw(aCWmin) + 1) / 2 - 1, 15 }; |
| 44 | |
| 45 | #undef ecw2cw |
| 46 | -- |
| 47 | 2.18.0 |
| 48 | |