summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/hdd/src/wlan_hdd_apf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/hdd/src/wlan_hdd_apf.c b/core/hdd/src/wlan_hdd_apf.c
index c2db21fa7b89..cefec834d167 100644
--- a/core/hdd/src/wlan_hdd_apf.c
+++ b/core/hdd/src/wlan_hdd_apf.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2019 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -506,6 +506,11 @@ static int hdd_apf_read_memory(hdd_adapter_t *adapter, struct nlattr **tb)
ENTER();
+ if (context->apf_enabled) {
+ hdd_err("Cannot get/set while interpreter is enabled");
+ return -EINVAL;
+ }
+
read_mem_params.vdev_id = adapter->sessionId;
/* Read APF work memory offset */
@@ -531,11 +536,6 @@ static int hdd_apf_read_memory(hdd_adapter_t *adapter, struct nlattr **tb)
return -ENOMEM;
}
- if (context->apf_enabled) {
- hdd_err("Cannot get/set while interpreter is enabled");
- return -EINVAL;
- }
-
qdf_event_reset(&context->qdf_apf_event);
context->offset = read_mem_params.addr_offset;