]> 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, 16 Feb 2012 14:29:19 +0000 (16:29 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 16 Feb 2012 14:29:19 +0000 (16:29 +0200)
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

wpa_supplicant/ctrl_iface.c

index 5eaa539be8615ad6627547dbaa2b9a3f677bf4ff..2c8fd51b5df935843cfea6d1f1ff7d05af45b721 100644 (file)
@@ -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);