mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
qcacmn: Drop ch avoid event if list is empty
Add check to drop the avoid channel list event if the range count is 0 since it would not affect the channel list anyways. Also, add the rate limited debug print for the target_if module. Change-Id: I176b9c09106cc0d7f5cfbc474912e4a48d633ff2 CRs-fixed: 2909614
This commit is contained in:
parent
bc4677d1c8
commit
1d6bab1b0b
2 changed files with 8 additions and 1 deletions
|
|
@ -51,6 +51,8 @@
|
|||
QDF_TRACE_EXIT(QDF_MODULE_ID_TARGET_IF, "exit")
|
||||
#define target_if_err_rl(params...) \
|
||||
QDF_TRACE_ERROR_RL(QDF_MODULE_ID_TARGET_IF, params)
|
||||
#define target_if_debug_rl(params...) \
|
||||
QDF_TRACE_DEBUG_RL(QDF_MODULE_ID_TARGET_IF, params)
|
||||
|
||||
|
||||
#define targetif_nofl_fatal(params...) \
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2017-2020 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2017-2021 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
|
|
@ -75,6 +75,11 @@ static int tgt_reg_ch_avoid_event_handler(ol_scn_t handle, uint8_t *event_buf,
|
|||
return -EFAULT;
|
||||
}
|
||||
|
||||
if (!ch_avoid_event.ch_avoid_range_cnt) {
|
||||
target_if_debug_rl("ch avoid range count is 0, dropping the event");
|
||||
return 0;
|
||||
}
|
||||
|
||||
status = reg_rx_ops->reg_ch_avoid_event_handler(psoc, &ch_avoid_event);
|
||||
if (status != QDF_STATUS_SUCCESS) {
|
||||
target_if_err("Failed to process CH avoid event");
|
||||
|
|
|
|||
Loading…
Reference in a new issue