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;