developer | a06f1aa | 2023-07-26 15:02:12 +0800 | [diff] [blame] | 1 | From 401ff1eae9089808df328dd588d1ee01886abaa9 Mon Sep 17 00:00:00 2001 |
| 2 | From: Michael Lee <michael-cy.lee@mediatek.com> |
| 3 | Date: Fri, 7 Jul 2023 17:14:40 +0800 |
| 4 | Subject: [PATCH] hostapd: mtk: Fix wpa_supplicant configuration parsing error |
| 5 | |
| 6 | In the original flow, after hostapd_config_tx_queue successfully |
| 7 | parses a tx_queue variable, it would not return immediately. Then it |
| 8 | would print out "unknow global field" later and set return val to -1. |
| 9 | |
| 10 | This patch returns immediately after hostapd_config_tx_queue |
| 11 | successfully parses a tx_queue variable. |
| 12 | |
| 13 | Signed-off-by: Michael Lee <michael-cy.lee@mediatek.com> |
| 14 | --- |
| 15 | wpa_supplicant/config.c | 1 + |
| 16 | 1 file changed, 1 insertion(+) |
| 17 | |
| 18 | diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c |
| 19 | index 994ee5e..0186011 100644 |
| 20 | --- a/wpa_supplicant/config.c |
| 21 | +++ b/wpa_supplicant/config.c |
| 22 | @@ -5575,6 +5575,7 @@ int wpa_config_process_global(struct wpa_config *config, char *pos, int line) |
| 23 | line); |
| 24 | return -1; |
| 25 | } |
| 26 | + return ret; |
| 27 | } |
| 28 | |
| 29 | if (os_strncmp(pos, "wmm_ac_", 7) == 0) { |
| 30 | -- |
| 31 | 2.25.1 |
| 32 | |