summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Lee <michael-cy.lee@mediatek.com>2023-07-27 16:29:22 +0800
committerAndrej Shadura <andrewsh@debian.org>2023-08-30 14:28:29 +0200
commit3590dadb2b14e7204e7f5397144340075710c0c0 (patch)
treec12be35b688736289d36666e1d5307ac2c49031d
parent9638f6c2b19e972818e42d28a1c49efb5b29f9a9 (diff)
wpa_supplicant: Fix wpa_supplicant configuration parsing error
In the original flow, after hostapd_config_tx_queue successfully parses a tx_queue variable, it would not return immediately. Then it would print out "unknow global field" later and set return val to -1. This patch returns immediately after hostapd_config_tx_queue successfully parses a tx_queue variable. Signed-off-by: Michael Lee <michael-cy.lee@mediatek.com> Gbp-Pq: Topic upstream-fixes Gbp-Pq: Name 0014-wpa_supplicant-Fix-wpa_supplicant-configuration-pars.patch
-rw-r--r--wpa_supplicant/config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c
index bf062b0..de08fff 100644
--- a/wpa_supplicant/config.c
+++ b/wpa_supplicant/config.c
@@ -5397,6 +5397,7 @@ int wpa_config_process_global(struct wpa_config *config, char *pos, int line)
line);
return -1;
}
+ return ret;
}
if (os_strncmp(pos, "wmm_ac_", 7) == 0) {