From 61c858f3a9ef79f8f0e907fdfe4c44ca8b8de232 Mon Sep 17 00:00:00 2001 From: Kumiko18 Date: Mon, 24 Nov 2025 06:41:14 +0000 Subject: [PATCH] udhcpinject: Fail to get interface information for SSIDs with space Quote SSIDs as string literal Fixes: WIFI-15239 Signed-off-by: Kumiko18 --- feeds/ucentral/udhcpinject/src/udhcpinject.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feeds/ucentral/udhcpinject/src/udhcpinject.h b/feeds/ucentral/udhcpinject/src/udhcpinject.h index 6a5f77704..c22ba050c 100644 --- a/feeds/ucentral/udhcpinject/src/udhcpinject.h +++ b/feeds/ucentral/udhcpinject/src/udhcpinject.h @@ -14,7 +14,7 @@ #define CONFIG_PATH "/etc/config/dhcpinject" -#define IWINFO_CMD "iwinfo | grep %s -A2 | grep '.*Channel:.*\\(%s\\..*\\) GHz' -B2 | awk '/ESSID/{print $1} /Access Point/{gsub(/:/, \"\", $3); print $3}'" +#define IWINFO_CMD "iwinfo | grep '\"%s\"$' -A2 | grep '.*Channel:.*\\(%s\\..*\\) GHz' -B2 | awk '/ESSID/{print $1} /Access Point/{gsub(/:/, \"\", $3); print $3}'" static pcap_t *handle = NULL;