|
@@ -3406,6 +3406,11 @@ struct wma_target_req *wma_fill_hold_req(tp_wma_handle wma,
|
|
|
struct wma_target_req *req;
|
|
|
QDF_STATUS status;
|
|
|
|
|
|
+ if (!cds_is_target_ready()) {
|
|
|
+ WMA_LOGE("target not ready, drop the request");
|
|
|
+ return NULL;
|
|
|
+ }
|
|
|
+
|
|
|
req = qdf_mem_malloc(sizeof(*req));
|
|
|
if (!req) {
|
|
|
WMA_LOGE(FL("Failed to allocate memory for msg %d vdev %d"),
|
|
@@ -3732,6 +3737,11 @@ struct wma_target_req *wma_fill_vdev_req(tp_wma_handle wma,
|
|
|
struct wma_target_req *req;
|
|
|
QDF_STATUS status;
|
|
|
|
|
|
+ if (!cds_is_target_ready()) {
|
|
|
+ WMA_LOGE("target not ready, drop the request");
|
|
|
+ return NULL;
|
|
|
+ }
|
|
|
+
|
|
|
req = qdf_mem_malloc(sizeof(*req));
|
|
|
if (!req) {
|
|
|
WMA_LOGE("%s: Failed to allocate memory for msg %d vdev %d",
|