summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/wma/src/wma_main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c
index 2d03f3a0ba37..1325d9a00241 100644
--- a/core/wma/src/wma_main.c
+++ b/core/wma/src/wma_main.c
@@ -3239,7 +3239,13 @@ void wma_process_pdev_hw_mode_trans_ind(void *handle,
{
uint32_t i;
tp_wma_handle wma = (tp_wma_handle) handle;
-
+ if (fixed_param->num_vdev_mac_entries > MAX_VDEV_SUPPORTED) {
+ WMA_LOGE("Number of Vdev mac entries %d exceeded"
+ " max vdev supported %d",
+ fixed_param->num_vdev_mac_entries,
+ MAX_VDEV_SUPPORTED);
+ return;
+ }
hw_mode_trans_ind->old_hw_mode_index = fixed_param->old_hw_mode_index;
hw_mode_trans_ind->new_hw_mode_index = fixed_param->new_hw_mode_index;
hw_mode_trans_ind->num_vdev_mac_entries =