aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2012-08-09 19:42:36 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-09 20:18:05 (GMT)
commit6ea79df537f442afe18ddc161fe19b8193e92f4e (patch)
tree4c5251dec199cfccbe927b5d507748ac20405f98
parentb742a17cce064e3286a1138f1d3acaf766c39946 (diff)
downloadhostap-6ea79df537f442afe18ddc161fe19b8193e92f4e.zip
hostap-6ea79df537f442afe18ddc161fe19b8193e92f4e.tar.gz
hostap-6ea79df537f442afe18ddc161fe19b8193e92f4e.tar.bz2
Allow legacy PS param to be set with SET in addition to P2P_SET
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com> (manual merge of commit b2ff168128cde761e510eac46092ee2c50099535)
-rw-r--r--wpa_supplicant/ctrl_iface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 76ff9cd..0f2c18e 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -197,6 +197,8 @@ static int wpa_supplicant_ctrl_iface_set(struct wpa_supplicant *wpa_s,
ret = pno_start(wpa_s);
else
ret = pno_stop(wpa_s);
+ } else if (os_strcasecmp(cmd, "ps") == 0) {
+ ret = wpa_drv_set_p2p_powersave(wpa_s, atoi(value), -1, -1);
} else {
value[-1] = '=';
ret = wpa_config_process_global(wpa_s->conf, cmd, -1);