]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Allow legacy PS param to be set with SET in addition to P2P_SET
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 9 Aug 2012 19:42:36 +0000 (22:42 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 9 Aug 2012 20:18:05 +0000 (23:18 +0300)
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
(manual merge of commit b2ff168128cde761e510eac46092ee2c50099535)

wpa_supplicant/ctrl_iface.c

index 76ff9cdd37d6a39eaabaa55555cee82e5021266a..0f2c18ed8e4a577b92896e47fa27164160685e82 100644 (file)
@@ -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);