Lines Matching refs:cmd
32 struct wl18xx_cmd_channel_switch *cmd; in wl18xx_cmd_channel_switch() local
39 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_cmd_channel_switch()
40 if (!cmd) { in wl18xx_cmd_channel_switch()
45 cmd->role_id = wlvif->role_id; in wl18xx_cmd_channel_switch()
46 cmd->channel = ch_switch->chandef.chan->hw_value; in wl18xx_cmd_channel_switch()
47 cmd->switch_time = ch_switch->count; in wl18xx_cmd_channel_switch()
48 cmd->stop_tx = ch_switch->block_tx; in wl18xx_cmd_channel_switch()
52 cmd->band = WLCORE_BAND_2_4GHZ; in wl18xx_cmd_channel_switch()
55 cmd->band = WLCORE_BAND_5GHZ; in wl18xx_cmd_channel_switch()
72 cmd->local_supported_rates = cpu_to_le32(supported_rates); in wl18xx_cmd_channel_switch()
73 cmd->channel_type = wlvif->channel_type; in wl18xx_cmd_channel_switch()
75 ret = wl1271_cmd_send(wl, CMD_CHANNEL_SWITCH, cmd, sizeof(*cmd), 0); in wl18xx_cmd_channel_switch()
82 kfree(cmd); in wl18xx_cmd_channel_switch()
89 struct wl18xx_cmd_smart_config_start *cmd; in wl18xx_cmd_smart_config_start() local
95 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_cmd_smart_config_start()
96 if (!cmd) { in wl18xx_cmd_smart_config_start()
101 cmd->group_id_bitmask = cpu_to_le32(group_bitmap); in wl18xx_cmd_smart_config_start()
103 ret = wl1271_cmd_send(wl, CMD_SMART_CONFIG_START, cmd, sizeof(*cmd), 0); in wl18xx_cmd_smart_config_start()
110 kfree(cmd); in wl18xx_cmd_smart_config_start()
117 struct wl1271_cmd_header *cmd; in wl18xx_cmd_smart_config_stop() local
122 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_cmd_smart_config_stop()
123 if (!cmd) { in wl18xx_cmd_smart_config_stop()
128 ret = wl1271_cmd_send(wl, CMD_SMART_CONFIG_STOP, cmd, sizeof(*cmd), 0); in wl18xx_cmd_smart_config_stop()
135 kfree(cmd); in wl18xx_cmd_smart_config_stop()
143 struct wl18xx_cmd_smart_config_set_group_key *cmd; in wl18xx_cmd_smart_config_set_group_key() local
149 if (key_len != sizeof(cmd->key)) { in wl18xx_cmd_smart_config_set_group_key()
154 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_cmd_smart_config_set_group_key()
155 if (!cmd) { in wl18xx_cmd_smart_config_set_group_key()
160 cmd->group_id = cpu_to_le32(group_id); in wl18xx_cmd_smart_config_set_group_key()
161 memcpy(cmd->key, key, key_len); in wl18xx_cmd_smart_config_set_group_key()
163 ret = wl1271_cmd_send(wl, CMD_SMART_CONFIG_SET_GROUP_KEY, cmd, in wl18xx_cmd_smart_config_set_group_key()
164 sizeof(*cmd), 0); in wl18xx_cmd_smart_config_set_group_key()
171 kfree(cmd); in wl18xx_cmd_smart_config_set_group_key()
178 struct wlcore_cmd_cac_start *cmd; in wl18xx_cmd_set_cac() local
184 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_cmd_set_cac()
185 if (!cmd) in wl18xx_cmd_set_cac()
188 cmd->role_id = wlvif->role_id; in wl18xx_cmd_set_cac()
189 cmd->channel = wlvif->channel; in wl18xx_cmd_set_cac()
191 cmd->band = WLCORE_BAND_5GHZ; in wl18xx_cmd_set_cac()
192 cmd->bandwidth = wlcore_get_native_channel_type(wlvif->channel_type); in wl18xx_cmd_set_cac()
196 cmd, sizeof(*cmd), 0); in wl18xx_cmd_set_cac()
203 kfree(cmd); in wl18xx_cmd_set_cac()
209 struct wl18xx_cmd_dfs_radar_debug *cmd; in wl18xx_cmd_radar_detection_debug() local
215 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_cmd_radar_detection_debug()
216 if (!cmd) in wl18xx_cmd_radar_detection_debug()
219 cmd->channel = channel; in wl18xx_cmd_radar_detection_debug()
222 cmd, sizeof(*cmd), 0); in wl18xx_cmd_radar_detection_debug()
229 kfree(cmd); in wl18xx_cmd_radar_detection_debug()
235 struct wl18xx_cmd_dfs_master_restart *cmd; in wl18xx_cmd_dfs_master_restart() local
241 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_cmd_dfs_master_restart()
242 if (!cmd) in wl18xx_cmd_dfs_master_restart()
245 cmd->role_id = wlvif->role_id; in wl18xx_cmd_dfs_master_restart()
248 cmd, sizeof(*cmd), 0); in wl18xx_cmd_dfs_master_restart()
254 kfree(cmd); in wl18xx_cmd_dfs_master_restart()