mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
qcacld-3.0: Fix uninitialized subtype usage by policy manager
Currently, Updation of vdev related parameters policy_mgr_vdev_entry_info is conditional. Conditional updation can cause uninitialized usage of subtype of policy_mgr_vdev_entry_info by policy manager to get concurrency mode. Fix is to initialize policy_mgr_vdev_entry_info with zero. Change-Id: If1350bd66705defdea2e69d559de0a6578acde02 CRs-Fixed: 2423871
This commit is contained in:
parent
bf0c2b7c56
commit
4a3f34138c
2 changed files with 2 additions and 2 deletions
|
|
@ -1609,7 +1609,7 @@ QDF_STATUS policy_mgr_incr_connection_count(
|
|||
{
|
||||
QDF_STATUS status = QDF_STATUS_E_FAILURE;
|
||||
uint32_t conn_index;
|
||||
struct policy_mgr_vdev_entry_info conn_table_entry;
|
||||
struct policy_mgr_vdev_entry_info conn_table_entry = {0};
|
||||
enum policy_mgr_chain_mode chain_mask = POLICY_MGR_ONE_ONE;
|
||||
uint8_t nss_2g = 0, nss_5g = 0;
|
||||
enum policy_mgr_con_mode mode;
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ static inline QDF_STATUS
|
|||
wlan_nan_get_connection_info(struct wlan_objmgr_psoc *psoc,
|
||||
struct policy_mgr_vdev_entry_info *conn_info)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
static inline uint8_t wlan_nan_get_disc_5g_ch(struct wlan_objmgr_psoc *psoc)
|
||||
|
|
|
|||
Loading…
Reference in a new issue