aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/config_file.c
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2014-09-03 21:58:37 (GMT)
committerJouni Malinen <j@w1.fi>2014-11-16 15:09:11 (GMT)
commit88cb27c7a5164f8ffe465e4f1a4ae5f5f7bea91c (patch)
treefd527f761d7d0d484be1b4b27e15c8d2350dd39c /hostapd/config_file.c
parentf03996565adad176e1ee4ba9955862edbe98a349 (diff)
downloadhostap-88cb27c7a5164f8ffe465e4f1a4ae5f5f7bea91c.zip
hostap-88cb27c7a5164f8ffe465e4f1a4ae5f5f7bea91c.tar.gz
hostap-88cb27c7a5164f8ffe465e4f1a4ae5f5f7bea91c.tar.bz2
hostapd: Add wowlan_triggers config param
New kernels in wiphy_suspend() will call cfg80211_leave_all() that will eventually end up in cfg80211_stop_ap() unless wowlan_triggers were set. For now, use the parameters from the station mode as-is. It may be desirable to extend (or constraint) this in the future for specific AP mode needs. Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'hostapd/config_file.c')
-rw-r--r--hostapd/config_file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index ea7a018..61d371b 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -3172,6 +3172,9 @@ static int hostapd_config_fill(struct hostapd_config *conf,
conf->local_pwr_constraint = val;
} else if (os_strcmp(buf, "spectrum_mgmt_required") == 0) {
conf->spectrum_mgmt_required = atoi(pos);
+ } else if (os_strcmp(buf, "wowlan_triggers") == 0) {
+ os_free(bss->wowlan_triggers);
+ bss->wowlan_triggers = os_strdup(pos);
} else {
wpa_printf(MSG_ERROR,
"Line %d: unknown configuration item '%s'",