From: Michael Lee Date: Thu, 27 Jul 2023 08:29:22 +0000 (+0800) Subject: wpa_supplicant: Fix configuration parsing error for tx_queue_* X-Git-Tag: hostap_2_11~1051 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc0636841a7051011d89be1f020aefe0161a0130;p=thirdparty%2Fhostap.git wpa_supplicant: Fix configuration parsing error for tx_queue_* In the original flow, after hostapd_config_tx_queue() successfully parses a tx_queue variable, wpa_config_process_global() would not return immediately. Then it would print out "unknown global field" later and set return val to -1. Return success (0) after hostapd_config_tx_queue() successfully parses a tx_queue variable to fix this. Fixes: 790026c3daa2 ("Allow TX queue parameters to be configured for wpa_supplicant AP/P2P GO") Signed-off-by: Michael Lee --- diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c index de9b9b30f..15feba95d 100644 --- a/wpa_supplicant/config.c +++ b/wpa_supplicant/config.c @@ -5620,6 +5620,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) {