Searched refs:ps_params (Results 1 – 2 of 2) sorted by relevance
315 struct wl1251_cmd_ps_params *ps_params = NULL; in wl1251_cmd_ps_mode() local320 ps_params = kzalloc(sizeof(*ps_params), GFP_KERNEL); in wl1251_cmd_ps_mode()321 if (!ps_params) in wl1251_cmd_ps_mode()324 ps_params->ps_mode = ps_mode; in wl1251_cmd_ps_mode()325 ps_params->send_null_data = 1; in wl1251_cmd_ps_mode()326 ps_params->retries = 5; in wl1251_cmd_ps_mode()327 ps_params->hang_over_period = 128; in wl1251_cmd_ps_mode()328 ps_params->null_data_rate = 1; /* 1 Mbps */ in wl1251_cmd_ps_mode()330 ret = wl1251_cmd_send(wl, CMD_SET_PS_MODE, ps_params, in wl1251_cmd_ps_mode()331 sizeof(*ps_params)); in wl1251_cmd_ps_mode()[all …]
992 struct wl1271_cmd_ps_params *ps_params = NULL; in wl1271_cmd_ps_mode() local997 ps_params = kzalloc(sizeof(*ps_params), GFP_KERNEL); in wl1271_cmd_ps_mode()998 if (!ps_params) { in wl1271_cmd_ps_mode()1003 ps_params->role_id = wlvif->role_id; in wl1271_cmd_ps_mode()1004 ps_params->ps_mode = ps_mode; in wl1271_cmd_ps_mode()1005 ps_params->auto_ps_timeout = auto_ps_timeout; in wl1271_cmd_ps_mode()1007 ret = wl1271_cmd_send(wl, CMD_SET_PS_MODE, ps_params, in wl1271_cmd_ps_mode()1008 sizeof(*ps_params), 0); in wl1271_cmd_ps_mode()1015 kfree(ps_params); in wl1271_cmd_ps_mode()