From b2ff168128cde761e510eac46092ee2c50099535 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 16 Feb 2012 16:29:19 +0200 Subject: [PATCH] Allow legacy PS param to be set with SET in addition to P2P_SET Signed-hostap: Jouni Malinen --- wpa_supplicant/ctrl_iface.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 5eaa539be..2c8fd51b5 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -239,6 +239,8 @@ static int wpa_supplicant_ctrl_iface_set(struct wpa_supplicant *wpa_s, if (vo) wpa_s->sta_uapsd |= BIT(3); } + } 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);