OSDN Git Service

Allow legacy PS param to be set with SET in addition to P2P_SET
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 10 Apr 2012 23:17:59 +0000 (16:17 -0700)
committerDmitry Shmidt <dimitrysh@google.com>
Tue, 10 Apr 2012 23:17:59 +0000 (16:17 -0700)
Change-Id: I26e19c7d9e303e075f28a4f01a798ac98b52d6e5
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
wpa_supplicant/ctrl_iface.c

index 93a6d0d..31a7448 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);