Lines Matching +full:out +full:- +full:of +full:- +full:band

1 // SPDX-License-Identifier: GPL-2.0-only
3 * This file is part of wl18xx
23 ch_switch->count); in wl18xx_cmd_channel_switch()
27 ret = -ENOMEM; in wl18xx_cmd_channel_switch()
28 goto out; 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()
36 switch (ch_switch->chandef.chan->band) { 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()
44 wl1271_error("invalid channel switch band: %d", in wl18xx_cmd_channel_switch()
45 ch_switch->chandef.chan->band); in wl18xx_cmd_channel_switch()
46 ret = -EINVAL; in wl18xx_cmd_channel_switch()
51 if (wlvif->bss_type == BSS_TYPE_STA_BSS) in wl18xx_cmd_channel_switch()
56 if (wlvif->p2p) 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()
69 out: in wl18xx_cmd_channel_switch()
83 ret = -ENOMEM; in wl18xx_cmd_smart_config_start()
84 goto out; in wl18xx_cmd_smart_config_start()
87 cmd->group_id_bitmask = cpu_to_le32(group_bitmap); in wl18xx_cmd_smart_config_start()
97 out: in wl18xx_cmd_smart_config_start()
110 ret = -ENOMEM; in wl18xx_cmd_smart_config_stop()
111 goto out; in wl18xx_cmd_smart_config_stop()
122 out: in wl18xx_cmd_smart_config_stop()
135 if (key_len != sizeof(cmd->key)) { in wl18xx_cmd_smart_config_set_group_key()
137 return -E2BIG; in wl18xx_cmd_smart_config_set_group_key()
142 ret = -ENOMEM; in wl18xx_cmd_smart_config_set_group_key()
143 goto out; 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()
158 out: in wl18xx_cmd_smart_config_set_group_key()
168 wlvif->channel, start ? "start" : "stop"); in wl18xx_cmd_set_cac()
172 return -ENOMEM; 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()
176 if (wlvif->band == NL80211_BAND_5GHZ) 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()
203 return -ENOMEM; in wl18xx_cmd_radar_detection_debug()
205 cmd->channel = channel; in wl18xx_cmd_radar_detection_debug()
225 wlvif->role_id); in wl18xx_cmd_dfs_master_restart()
229 return -ENOMEM; in wl18xx_cmd_dfs_master_restart()
231 cmd->role_id = wlvif->role_id; in wl18xx_cmd_dfs_master_restart()