[Bugfix][API-1007][no-connnman] change dnsmasq service to support dns, change wifi to support dhcp
Change-Id: I7a4cea19cbe7d52e1b8d09d95cb4f3a538c2f5bd
diff --git a/src/lynq/lib/liblynq-wifi6/scripts/start_stop_ap.sh b/src/lynq/lib/liblynq-wifi6/scripts/start_stop_ap.sh
index cbf3e4c..5415602 100755
--- a/src/lynq/lib/liblynq-wifi6/scripts/start_stop_ap.sh
+++ b/src/lynq/lib/liblynq-wifi6/scripts/start_stop_ap.sh
@@ -7,8 +7,9 @@
exit 1
fi
mkdir -p /run/wg870/dnsmasq.d
- echo "interface=ap0" > /run/wg870/dnsmasq.conf
- echo "listen-address=127.0.0.1,192.168.15.1" >> /run/wg870/dnsmasq.conf
+ echo "port=0" > /run/wg870/dnsmasq.conf
+ echo "interface=ap0" >> /run/wg870/dnsmasq.conf
+ echo "listen-address=192.168.15.1" >> /run/wg870/dnsmasq.conf
echo "bind-interfaces" >> /run/wg870/dnsmasq.conf
echo "localise-queries" >> /run/wg870/dnsmasq.conf
echo "dhcp-range=192.168.15.2,192.168.15.14,255.255.255.240,1h" >> /run/wg870/dnsmasq.conf