[Feature][T8TSK-202][wifi] wifi6.so add support for with/without connman
Change-Id: I81365bbf2f36eeeeb263a9f8d2d524339f184591
diff --git a/src/lynq/lib/liblynq-wifi6/scripts/start_stop_sta.sh b/src/lynq/lib/liblynq-wifi6/scripts/start_stop_sta.sh
new file mode 100755
index 0000000..5f33520
--- /dev/null
+++ b/src/lynq/lib/liblynq-wifi6/scripts/start_stop_sta.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+if [ "$1" == "start" ]; then
+ ifconfig wlan0 up
+ if [ $? != 0 ]; then
+ exit 1
+ fi
+ ps -ef | grep "dhcpcd wlan0" | grep -v grep
+ if [ $? != 0 ]; then
+ dhcpcd wlan0 -t 0 -o domain_name_servers --noipv4ll -B -G &
+ fi
+elif [ "$1" == "stop" ]; then
+ ps -ef | grep "dhcpcd wlan0" | grep -v grep | awk '{print $2}' | xargs kill
+ ifconfig wlan0 0.0.0.0
+ if [ $? != 0 ]; then
+ exit 1
+ fi
+else
+ exit 2
+fi
+