Lines Matching refs:cmd

18 	struct wl18xx_cmd_channel_switch *cmd;  in wl18xx_cmd_channel_switch()  local
25 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_cmd_channel_switch()
26 if (!cmd) { in wl18xx_cmd_channel_switch()
31 cmd->role_id = wlvif->role_id; in wl18xx_cmd_channel_switch()
32 cmd->channel = ch_switch->chandef.chan->hw_value; in wl18xx_cmd_channel_switch()
33 cmd->switch_time = ch_switch->count; in wl18xx_cmd_channel_switch()
34 cmd->stop_tx = ch_switch->block_tx; in wl18xx_cmd_channel_switch()
38 cmd->band = WLCORE_BAND_2_4GHZ; in wl18xx_cmd_channel_switch()
41 cmd->band = WLCORE_BAND_5GHZ; in wl18xx_cmd_channel_switch()
58 cmd->local_supported_rates = cpu_to_le32(supported_rates); in wl18xx_cmd_channel_switch()
59 cmd->channel_type = wlvif->channel_type; in wl18xx_cmd_channel_switch()
61 ret = wl1271_cmd_send(wl, CMD_CHANNEL_SWITCH, cmd, sizeof(*cmd), 0); in wl18xx_cmd_channel_switch()
68 kfree(cmd); in wl18xx_cmd_channel_switch()
75 struct wl18xx_cmd_smart_config_start *cmd; in wl18xx_cmd_smart_config_start() local
81 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_cmd_smart_config_start()
82 if (!cmd) { in wl18xx_cmd_smart_config_start()
87 cmd->group_id_bitmask = cpu_to_le32(group_bitmap); in wl18xx_cmd_smart_config_start()
89 ret = wl1271_cmd_send(wl, CMD_SMART_CONFIG_START, cmd, sizeof(*cmd), 0); in wl18xx_cmd_smart_config_start()
96 kfree(cmd); in wl18xx_cmd_smart_config_start()
103 struct wl1271_cmd_header *cmd; in wl18xx_cmd_smart_config_stop() local
108 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_cmd_smart_config_stop()
109 if (!cmd) { in wl18xx_cmd_smart_config_stop()
114 ret = wl1271_cmd_send(wl, CMD_SMART_CONFIG_STOP, cmd, sizeof(*cmd), 0); in wl18xx_cmd_smart_config_stop()
121 kfree(cmd); in wl18xx_cmd_smart_config_stop()
129 struct wl18xx_cmd_smart_config_set_group_key *cmd; in wl18xx_cmd_smart_config_set_group_key() local
135 if (key_len != sizeof(cmd->key)) { in wl18xx_cmd_smart_config_set_group_key()
140 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_cmd_smart_config_set_group_key()
141 if (!cmd) { in wl18xx_cmd_smart_config_set_group_key()
146 cmd->group_id = cpu_to_le32(group_id); in wl18xx_cmd_smart_config_set_group_key()
147 memcpy(cmd->key, key, key_len); in wl18xx_cmd_smart_config_set_group_key()
149 ret = wl1271_cmd_send(wl, CMD_SMART_CONFIG_SET_GROUP_KEY, cmd, in wl18xx_cmd_smart_config_set_group_key()
150 sizeof(*cmd), 0); in wl18xx_cmd_smart_config_set_group_key()
157 kfree(cmd); in wl18xx_cmd_smart_config_set_group_key()
164 struct wlcore_cmd_cac_start *cmd; in wl18xx_cmd_set_cac() local
170 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_cmd_set_cac()
171 if (!cmd) in wl18xx_cmd_set_cac()
174 cmd->role_id = wlvif->role_id; in wl18xx_cmd_set_cac()
175 cmd->channel = wlvif->channel; in wl18xx_cmd_set_cac()
177 cmd->band = WLCORE_BAND_5GHZ; in wl18xx_cmd_set_cac()
178 cmd->bandwidth = wlcore_get_native_channel_type(wlvif->channel_type); in wl18xx_cmd_set_cac()
182 cmd, sizeof(*cmd), 0); in wl18xx_cmd_set_cac()
189 kfree(cmd); in wl18xx_cmd_set_cac()
195 struct wl18xx_cmd_dfs_radar_debug *cmd; in wl18xx_cmd_radar_detection_debug() local
201 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_cmd_radar_detection_debug()
202 if (!cmd) in wl18xx_cmd_radar_detection_debug()
205 cmd->channel = channel; in wl18xx_cmd_radar_detection_debug()
208 cmd, sizeof(*cmd), 0); in wl18xx_cmd_radar_detection_debug()
215 kfree(cmd); in wl18xx_cmd_radar_detection_debug()
221 struct wl18xx_cmd_dfs_master_restart *cmd; in wl18xx_cmd_dfs_master_restart() local
227 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_cmd_dfs_master_restart()
228 if (!cmd) in wl18xx_cmd_dfs_master_restart()
231 cmd->role_id = wlvif->role_id; in wl18xx_cmd_dfs_master_restart()
234 cmd, sizeof(*cmd), 0); in wl18xx_cmd_dfs_master_restart()
240 kfree(cmd); in wl18xx_cmd_dfs_master_restart()