mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-19 19:20:58 -04:00
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:
parent
a57afa51c2
commit
0a2c310e29
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue