summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CORE/SERVICES/WMA/wma.c7
-rw-r--r--CORE/SERVICES/WMA/wma.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c
index e35aa11af9c3..8ddc796addcf 100644
--- a/CORE/SERVICES/WMA/wma.c
+++ b/CORE/SERVICES/WMA/wma.c
@@ -8265,6 +8265,8 @@ static ol_txrx_vdev_handle wma_vdev_attach(tp_wma_handle wma_handle,
self_sta_req->sessionId);
goto end;
}
+
+ wma_handle->interfaces[self_sta_req->sessionId].vdev_active = TRUE;
wma_handle->interfaces[self_sta_req->sessionId].handle = txrx_vdev_handle;
wma_handle->interfaces[self_sta_req->sessionId].ptrn_match_enable =
@@ -25736,6 +25738,11 @@ static VOS_STATUS wma_process_ll_stats_getReq
return VOS_STATUS_E_FAILURE;
}
+ if (!wma->interfaces[getReq->staId].vdev_active) {
+ WMA_LOGE("%s: vdev not created yet", __func__);
+ return VOS_STATUS_E_FAILURE;
+ }
+
len = sizeof(*cmd);
buf = wmi_buf_alloc(wma->wmi_handle, len);
diff --git a/CORE/SERVICES/WMA/wma.h b/CORE/SERVICES/WMA/wma.h
index 3f5329e94d4c..5c12ae14a1df 100644
--- a/CORE/SERVICES/WMA/wma.h
+++ b/CORE/SERVICES/WMA/wma.h
@@ -534,6 +534,7 @@ struct wma_txrx_node {
tANI_U8 vht_capable;
tANI_U8 ht_capable;
A_UINT32 mhz; /* channel frequency in KHZ */
+ bool vdev_active;
v_BOOL_t vdev_up;
u_int64_t tsfadjust;
void *addBssStaContext;