mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
qcacmn: Check for MAX_AST entries when adding AST entry
check for max_ast entries supported by FW and add the entry on host accordingly. Change-Id: Ief70ba631bb41d50c79d3673e3eea0c45b0c1e19 CRs-Fixed: 2355947
This commit is contained in:
parent
9ff4c54c25
commit
a702362d34
12 changed files with 49 additions and 10 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
|
|
@ -411,7 +411,17 @@ void wlan_cfg_set_num_contexts(struct wlan_cfg_dp_soc_ctxt *cfg, int num)
|
|||
|
||||
void wlan_cfg_set_max_peer_id(struct wlan_cfg_dp_soc_ctxt *cfg, uint32_t val)
|
||||
{
|
||||
cfg->max_peer_id = val;;
|
||||
cfg->max_peer_id = val;
|
||||
}
|
||||
|
||||
void wlan_cfg_set_max_ast_idx(struct wlan_cfg_dp_soc_ctxt *cfg, uint32_t val)
|
||||
{
|
||||
cfg->max_ast_idx = val;
|
||||
}
|
||||
|
||||
int wlan_cfg_get_max_ast_idx(struct wlan_cfg_dp_soc_ctxt *cfg)
|
||||
{
|
||||
return cfg->max_ast_idx;
|
||||
}
|
||||
|
||||
void wlan_cfg_set_tx_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* * Copyright (c) 2013-2018 The Linux Foundation. All rights reserved.
|
||||
* * Copyright (c) 2013-2019 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
|
|
@ -207,6 +207,7 @@ struct wlan_cfg_dp_soc_ctxt {
|
|||
bool enable_data_stall_detection;
|
||||
bool disable_intra_bss_fwd;
|
||||
bool rxdma1_enable;
|
||||
int max_ast_idx;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -281,7 +282,8 @@ void wlan_cfg_set_ce_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|||
void wlan_cfg_set_rxbuf_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int context,
|
||||
int mask);
|
||||
void wlan_cfg_set_max_peer_id(struct wlan_cfg_dp_soc_ctxt *cfg, uint32_t val);
|
||||
|
||||
void wlan_cfg_set_max_ast_idx(struct wlan_cfg_dp_soc_ctxt *cfg, uint32_t val);
|
||||
int wlan_cfg_get_max_ast_idx(struct wlan_cfg_dp_soc_ctxt *cfg);
|
||||
int wlan_cfg_set_rx_err_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
|
||||
int context, int mask);
|
||||
int wlan_cfg_set_rx_wbm_rel_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
|
||||
|
|
|
|||
Loading…
Reference in a new issue