Compare commits

...

1 Commits

Author SHA1 Message Date
Kumiko18
79de1fadf0 WIFI-15239: Fail to get interface information for SSIDs with space
Quote SSIDs as string literal

Signed-off-by: Kumiko18 <alex18_huang@accton.com>
2025-11-24 06:41:14 +00:00

View File

@@ -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;