blob: f7f22d8db8af17f570236e620e792a133446dc71 [file] [log] [blame]
developer93607dd2023-08-30 04:53:00 +08001From a1fd2056b0e3820920778fd9252cec645cbb6389 Mon Sep 17 00:00:00 2001
2From: Michael Lee <michael-cy.lee@mediatek.com>
3Date: Fri, 7 Jul 2023 17:14:40 +0800
4Subject: [PATCH 37/40] hostapd: mtk: Fix wpa_supplicant configuration parsing
5 error
6
7In the original flow, after hostapd_config_tx_queue successfully
8parses a tx_queue variable, it would not return immediately. Then it
9would print out "unknow global field" later and set return val to -1.
10
11This patch returns immediately after hostapd_config_tx_queue
12successfully parses a tx_queue variable.
13
14Signed-off-by: Michael Lee <michael-cy.lee@mediatek.com>
15---
16 wpa_supplicant/config.c | 1 +
17 1 file changed, 1 insertion(+)
18
19diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c
20index 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--
322.18.0
33