Lines Matching +full:fw +full:- +full:cfg

1 // SPDX-License-Identifier: GPL-2.0-only
22 wl1271_debug(DEBUG_ACX, "acx cfg bitmap %d blk %d spare %d field %d", in wl18xx_acx_host_if_cfg_bitmap()
28 ret = -ENOMEM; in wl18xx_acx_host_if_cfg_bitmap()
32 bitmap_conf->host_cfg_bitmap = cpu_to_le32(host_cfg_bitmap); in wl18xx_acx_host_if_cfg_bitmap()
33 bitmap_conf->host_sdio_block_size = cpu_to_le32(sdio_blk_size); in wl18xx_acx_host_if_cfg_bitmap()
34 bitmap_conf->extra_mem_blocks = cpu_to_le32(extra_mem_blks); in wl18xx_acx_host_if_cfg_bitmap()
35 bitmap_conf->length_field_size = cpu_to_le32(len_field_size); in wl18xx_acx_host_if_cfg_bitmap()
59 ret = -ENOMEM; in wl18xx_acx_set_checksum_state()
63 acx->checksum_state = CHECKSUM_OFFLOAD_ENABLED; in wl18xx_acx_set_checksum_state()
85 ret = -ENOMEM; in wl18xx_acx_clear_statistics()
110 ret = -ENOMEM; in wl18xx_acx_peer_ht_operation_mode()
114 acx->hlid = hlid; in wl18xx_acx_peer_ht_operation_mode()
115 acx->bandwidth = wide ? WLCORE_BANDWIDTH_40MHZ : WLCORE_BANDWIDTH_20MHZ; in wl18xx_acx_peer_ht_operation_mode()
134 * the next fw api change
147 ht_cap->ht_supported, ht_cap->cap, rate_set); in wl18xx_acx_set_peer_cap()
151 ret = -ENOMEM; in wl18xx_acx_set_peer_cap()
155 if (allow_ht_operation && ht_cap->ht_supported) { in wl18xx_acx_set_peer_cap()
156 /* no need to translate capabilities - use the spec values */ in wl18xx_acx_set_peer_cap()
157 ht_capabilites = ht_cap->cap; in wl18xx_acx_set_peer_cap()
160 * this bit is not employed by the spec but only by FW to in wl18xx_acx_set_peer_cap()
165 /* get data from A-MPDU parameters field */ in wl18xx_acx_set_peer_cap()
166 acx->ampdu_max_length = ht_cap->ampdu_factor; in wl18xx_acx_set_peer_cap()
167 acx->ampdu_min_spacing = ht_cap->ampdu_density; in wl18xx_acx_set_peer_cap()
170 acx->hlid = hlid; in wl18xx_acx_set_peer_cap()
171 acx->ht_capabilites = cpu_to_le32(ht_capabilites); in wl18xx_acx_set_peer_cap()
172 acx->supported_rates = cpu_to_le32(rate_set); in wl18xx_acx_set_peer_cap()
186 * When the host is suspended, we don't want to get any fast-link/PSM
197 ret = -ENOMEM; in wl18xx_acx_interrupt_notify_config()
201 acx->enable = action; in wl18xx_acx_interrupt_notify_config()
214 * When the host is suspended, we can configure the FW to disable RX BA
224 ret = -ENOMEM; in wl18xx_acx_rx_ba_filter()
228 acx->enable = (u32)action; in wl18xx_acx_rx_ba_filter()
243 struct wl18xx_priv *priv = wl->priv; in wl18xx_acx_ap_sleep()
245 struct conf_ap_sleep_settings *conf = &priv->conf.ap_sleep; in wl18xx_acx_ap_sleep()
252 ret = -ENOMEM; in wl18xx_acx_ap_sleep()
256 acx->idle_duty_cycle = conf->idle_duty_cycle; in wl18xx_acx_ap_sleep()
257 acx->connected_duty_cycle = conf->connected_duty_cycle; in wl18xx_acx_ap_sleep()
258 acx->max_stations_thresh = conf->max_stations_thresh; in wl18xx_acx_ap_sleep()
259 acx->idle_conn_thresh = conf->idle_conn_thresh; in wl18xx_acx_ap_sleep()
263 wl1271_warning("acx config ap-sleep failed: %d", ret); in wl18xx_acx_ap_sleep()
277 wl1271_debug(DEBUG_ACX, "acx dynamic fw traces config %d", in wl18xx_acx_dynamic_fw_traces()
278 wl->dynamic_fw_traces); in wl18xx_acx_dynamic_fw_traces()
282 ret = -ENOMEM; in wl18xx_acx_dynamic_fw_traces()
286 acx->dynamic_fw_traces = cpu_to_le32(wl->dynamic_fw_traces); in wl18xx_acx_dynamic_fw_traces()
291 wl1271_warning("acx config dynamic fw traces failed: %d", ret); in wl18xx_acx_dynamic_fw_traces()
304 wl1271_debug(DEBUG_ACX, "acx time sync cfg: mode %d, addr: %pM", in wl18xx_acx_time_sync_cfg()
305 wl->conf.sg.params[WL18XX_CONF_SG_TIME_SYNC], in wl18xx_acx_time_sync_cfg()
306 wl->zone_master_mac_addr); in wl18xx_acx_time_sync_cfg()
310 ret = -ENOMEM; in wl18xx_acx_time_sync_cfg()
314 acx->sync_mode = wl->conf.sg.params[WL18XX_CONF_SG_TIME_SYNC]; in wl18xx_acx_time_sync_cfg()
315 memcpy(acx->zone_mac_addr, wl->zone_master_mac_addr, ETH_ALEN); in wl18xx_acx_time_sync_cfg()
320 wl1271_warning("acx time sync cfg failed: %d", ret); in wl18xx_acx_time_sync_cfg()