mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
qcacld-3.0: Replace MAX_SME_SESSIONS macro to SIR_MAX_SUPPORTED_BSS
Use SIR_MAX_SUPPORTED_BSS macro to decide max number of SME sessions to avoid timer leak issue as SIR_MAX_SUPPORTED_BSS can be configured through kbuild. Change-Id: I86377d43ceb1b5cfcaa7c17a15a4fb300b79246b CRs-Fixed: 2288864
This commit is contained in:
parent
00c7d9ea1c
commit
6a17618a8a
2 changed files with 2 additions and 4 deletions
|
|
@ -25,8 +25,6 @@
|
|||
#include "ani_system_defs.h"
|
||||
#include "sir_api.h"
|
||||
|
||||
#define MAX_SME_SESSIONS 5
|
||||
|
||||
/*
|
||||
* Auto Ps Entry User default timeout value, used instead of negative timeouts
|
||||
* from user space - 5000ms
|
||||
|
|
@ -91,7 +89,7 @@ struct ps_params {
|
|||
struct ps_global_info {
|
||||
bool ps_enabled;
|
||||
uint32_t auto_bmps_timer_val;
|
||||
struct ps_params ps_params[MAX_SME_SESSIONS];
|
||||
struct ps_params ps_params[SIR_MAX_SUPPORTED_BSS];
|
||||
/* Remain in Power active till DHCP completes */
|
||||
bool remain_in_power_active_till_dhcp;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -788,7 +788,7 @@ QDF_STATUS sme_ps_open(tHalHandle hal_ctx)
|
|||
|
||||
uint32_t i;
|
||||
|
||||
for (i = 0; i < MAX_SME_SESSIONS; i++) {
|
||||
for (i = 0; i < SIR_MAX_SUPPORTED_BSS; i++) {
|
||||
if (QDF_STATUS_SUCCESS != sme_ps_open_per_session(hal_ctx, i)) {
|
||||
sme_err("PMC Init Failed for session: %d", i);
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue