|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
|
- * Copyright (c) 2020 The Linux Foundation. All rights reserved.
|
|
|
+ * Copyright (c) 2021 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
|
|
@@ -175,6 +175,11 @@ target_if_register_mgmt_data_offload_event(struct wlan_objmgr_psoc *psoc)
|
|
|
}
|
|
|
wmi_handle = get_wmi_unified_hdl_from_psoc(psoc);
|
|
|
|
|
|
+ if (!wmi_handle) {
|
|
|
+ pkt_capture_err("wmi_handle is NULL");
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+ }
|
|
|
+
|
|
|
if ((ucfg_pkt_capture_get_mode(psoc) != PACKET_CAPTURE_MODE_DISABLE) &&
|
|
|
wmi_service_enabled(wmi_handle,
|
|
|
wmi_service_packet_capture_support)) {
|