if (ret < 0)
return ret;
- ret = wl1251_cmd_template_set(wl, CMD_DISCONNECT, NULL, 0);
+ ret = wl1251_cmd_disconnect(wl);
if (ret < 0)
return ret;
break;
break;
}
+ if (mode != wl->station_mode)
+ wl->ps_transitioning = true;
wl->station_mode = mode;
- wl->ps_transitioning = true;
wl->ps_change_jiffies = jiffies;
return ret;