softap: Add wowlan_triggers=any parameter
New kernels in wiphy_suspend() will call cfg80211_leave_all()
that will eventually end up in cfg80211_stop_ap() unless
wowlan_triggers were set.
Bug: 17269024
Change-Id: I609d78f5bb573b4c6a9dae25a3b2a345499f6853
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
diff --git a/server/SoftapController.cpp b/server/SoftapController.cpp
index 3129513..07c77b0 100644
--- a/server/SoftapController.cpp
+++ b/server/SoftapController.cpp
@@ -137,7 +137,7 @@
asprintf(&wbuf, "interface=%s\ndriver=nl80211\nctrl_interface="
"/data/misc/wifi/hostapd\nssid=%s\nchannel=%d\nieee80211n=1\n"
- "hw_mode=g\nignore_broadcast_ssid=%d\n",
+ "hw_mode=g\nignore_broadcast_ssid=%d\nwowlan_triggers=any\n",
argv[2], argv[3], channel, hidden);
if (argc > 7) {