qcacld-3.0: Check for the max number of P2P NOA descriptors

Check for the maximum number of P2P NOA descriptors in
wma_send_bcn_buf_ll.

Change-Id: If7e5b3c53309412dc7d3cd748c2f5581898fbbfe
CRs-Fixed: 2114323
This commit is contained in:
Varun Reddy Yeturu 2017-09-27 21:17:54 -07:00 • committed by snandini
commit 0a2c310e29

View file

@ -108,6 +108,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);