diff options
| author | CNSS_WLAN Service <cnssbldsw@qualcomm.com> | 2017-09-29 18:15:31 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-09-29 18:15:31 -0700 |
| commit | 7a291c0d8a82d06199b60edaad0df2a76d7c159c (patch) | |
| tree | 59b2f73bdc20e30a713b02ca71d6c1b42acb5234 | |
| parent | e3b20d264103270d8fc36117327762311de4b25e (diff) | |
| parent | f4f55c98409483d23da787ae9b7b6e124c6e7bdf (diff) | |
Merge "qcacld-3.0: Check for the max number of P2P NOA descriptors" into wlan-cld3.driver.lnx.1.1
| -rw-r--r-- | core/wma/src/wma_mgmt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/wma/src/wma_mgmt.c b/core/wma/src/wma_mgmt.c index de462c4253a0..7f6701505446 100644 --- a/core/wma/src/wma_mgmt.c +++ b/core/wma/src/wma_mgmt.c @@ -103,6 +103,12 @@ static void wma_send_bcn_buf_ll(tp_wma_handle wma, WMA_LOGE("%s: Invalid beacon buffer", __func__); return; } + if (WMI_UNIFIED_NOA_ATTR_NUM_DESC_GET(p2p_noa_info) > + WMI_P2P_MAX_NOA_DESCRIPTORS) { + WMA_LOGE("%s: Too many descriptors %d", __func__, + WMI_UNIFIED_NOA_ATTR_NUM_DESC_GET(p2p_noa_info)); + return; + } qdf_spin_lock_bh(&bcn->lock); |
