qcacld-3.0: Move NAN log events to RX_WORK context

Firmware sends NAN log events to driver and these are logged
with info level to capture complete NAN state machine logs in kmsg.
Currently, these events are received/processed in soft IRQ context
and causes performance issues as logs introduce delays. Move the
event registration to RX_WORK context to avoid delays.

Change-Id: I15ba20059f55f002cfe276d62e68e3cc09136a23
CRs-Fixed: 2960359
This commit is contained in:
Srinivas Dasari 2021-06-09 11:36:15 +05:30 • committed by Madan Koyyalamudi
commit 9efb8a164e

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-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
@ -994,7 +994,7 @@ QDF_STATUS target_if_nan_register_events(struct wlan_objmgr_psoc *psoc)
ret = wmi_unified_register_event_handler(handle, wmi_nan_dmesg_event_id,
target_if_nan_dmesg_handler,
WMI_RX_UMAC_CTX);
WMI_RX_WORK_CTX);
if (ret) {
target_if_err("wmi event registration failed, ret: %d", ret);
target_if_nan_deregister_events(psoc);