qcacld-3.0: Update target_if_nan_event_flush_cb
Update return type of target_if_nan_event_flush_cb to return QDF_STATUS to match scheduler_msg_process_fn_t. Change-Id: I2f0380edeb21a1c6016358725abab39fdc741466 CRs-fixed: 2698302
This commit is contained in:
@@ -28,19 +28,21 @@
|
||||
#include "wmi_unified_api.h"
|
||||
#include "scheduler_api.h"
|
||||
|
||||
static void target_if_nan_event_flush_cb(struct scheduler_msg *msg)
|
||||
static QDF_STATUS target_if_nan_event_flush_cb(struct scheduler_msg *msg)
|
||||
{
|
||||
struct wlan_objmgr_psoc *psoc;
|
||||
|
||||
if (!msg || !msg->bodyptr) {
|
||||
target_if_err("Empty message for NAN Discovery event");
|
||||
return;
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
psoc = ((struct nan_event_params *)msg->bodyptr)->psoc;
|
||||
wlan_objmgr_psoc_release_ref(psoc, WLAN_NAN_ID);
|
||||
qdf_mem_free(msg->bodyptr);
|
||||
msg->bodyptr = NULL;
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static QDF_STATUS target_if_nan_event_dispatcher(struct scheduler_msg *msg)
|
||||
|
Reference in New Issue
Block a user