developer | dfb5098 | 2023-09-11 13:34:36 +0800 | [diff] [blame^] | 1 | From a1fd2056b0e3820920778fd9252cec645cbb6389 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 37/40] hostapd: mtk: Fix wpa_supplicant configuration parsing |
| 5 | error |
| 6 | |
| 7 | In the original flow, after hostapd_config_tx_queue successfully |
| 8 | parses a tx_queue variable, it would not return immediately. Then it |
| 9 | would print out "unknow global field" later and set return val to -1. |
| 10 | |
| 11 | This patch returns immediately after hostapd_config_tx_queue |
| 12 | successfully parses a tx_queue variable. |
| 13 | |
| 14 | Signed-off-by: Michael Lee <michael-cy.lee@mediatek.com> |
| 15 | --- |
| 16 | wpa_supplicant/config.c | 1 + |
| 17 | 1 file changed, 1 insertion(+) |
| 18 | |
| 19 | diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c |
| 20 | index 325ab8d..2652c8a 100644 |
| 21 | --- a/wpa_supplicant/config.c |
| 22 | +++ b/wpa_supplicant/config.c |
| 23 | @@ -5715,6 +5715,7 @@ int wpa_config_process_global(struct wpa_config *config, char *pos, int line) |
| 24 | line); |
| 25 | return -1; |
| 26 | } |
| 27 | + return ret; |
| 28 | } |
| 29 | |
| 30 | if (os_strncmp(pos, "wmm_ac_", 7) == 0) { |
| 31 | -- |
| 32 | 2.18.0 |
| 33 | |