Searched refs:ps_params (Results 1 – 2 of 2) sorted by relevance
311 struct wl1251_cmd_ps_params *ps_params = NULL; in wl1251_cmd_ps_mode() local316 ps_params = kzalloc(sizeof(*ps_params), GFP_KERNEL); in wl1251_cmd_ps_mode()317 if (!ps_params) { in wl1251_cmd_ps_mode()322 ps_params->ps_mode = ps_mode; in wl1251_cmd_ps_mode()323 ps_params->send_null_data = 1; in wl1251_cmd_ps_mode()324 ps_params->retries = 5; in wl1251_cmd_ps_mode()325 ps_params->hang_over_period = 128; in wl1251_cmd_ps_mode()326 ps_params->null_data_rate = 1; /* 1 Mbps */ in wl1251_cmd_ps_mode()328 ret = wl1251_cmd_send(wl, CMD_SET_PS_MODE, ps_params, in wl1251_cmd_ps_mode()329 sizeof(*ps_params)); in wl1251_cmd_ps_mode()[all …]
1017 struct wl1271_cmd_ps_params *ps_params = NULL; in wl1271_cmd_ps_mode() local1022 ps_params = kzalloc(sizeof(*ps_params), GFP_KERNEL); in wl1271_cmd_ps_mode()1023 if (!ps_params) { in wl1271_cmd_ps_mode()1028 ps_params->role_id = wlvif->role_id; in wl1271_cmd_ps_mode()1029 ps_params->ps_mode = ps_mode; in wl1271_cmd_ps_mode()1030 ps_params->auto_ps_timeout = auto_ps_timeout; in wl1271_cmd_ps_mode()1032 ret = wl1271_cmd_send(wl, CMD_SET_PS_MODE, ps_params, in wl1271_cmd_ps_mode()1033 sizeof(*ps_params), 0); in wl1271_cmd_ps_mode()1040 kfree(ps_params); in wl1271_cmd_ps_mode()