mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-16 17:01:37 +00:00
udhcpinject: Fail to get interface information for SSIDs with space
Quote SSIDs as string literal Fixes: WIFI-15239 Signed-off-by: Kumiko18 <alex18_huang@accton.com>
This commit is contained in:
parent
f6dbae7866
commit
61c858f3a9
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user