diff --git a/core/sme/inc/sme_power_save.h b/core/sme/inc/sme_power_save.h index d044d9a67950..cea67ab02c01 100644 --- a/core/sme/inc/sme_power_save.h +++ b/core/sme/inc/sme_power_save.h @@ -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; }; diff --git a/core/sme/src/common/sme_power_save.c b/core/sme/src/common/sme_power_save.c index ceb086940ac5..4d3066782c0f 100644 --- a/core/sme/src/common/sme_power_save.c +++ b/core/sme/src/common/sme_power_save.c @@ -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;