mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-09 20:31:13 -05:00
qcacld-3.0: Fix assert due to invalid vdev id in LL stats req
Assert in firmware due to invalid vdev id in link layer stats req. Fix is to check for invalid vdev id before link layer stats req is sent to firmware. Change-Id: I4b1a9de451bc54387a1da4338720ff44ec4bfd32 CRs-Fixed: 2038308
This commit is contained in:
parent
c93c866fb7
commit
08e995bdd0
1 changed files with 5 additions and 0 deletions
|
|
@ -1387,6 +1387,11 @@ __wlan_hdd_cfg80211_ll_stats_get(struct wiphy *wiphy,
|
|||
|
||||
LinkLayerStatsGetReq.staId = pAdapter->sessionId;
|
||||
|
||||
if (wlan_hdd_validate_session_id(pAdapter->sessionId)) {
|
||||
hdd_err("invalid session id: %d", pAdapter->sessionId);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
context = &ll_stats_context;
|
||||
spin_lock(&context->context_lock);
|
||||
context->request_id = LinkLayerStatsGetReq.reqId;
|
||||
|
|
|
|||
Loading…
Reference in a new issue