From f9a03d090a7a3baac3e4bb2d1adcb130bc8ce884 Mon Sep 17 00:00:00 2001 From: Jianmin Zhu Date: Thu, 20 Jun 2019 19:07:19 +0800 Subject: [PATCH] qcacmn: Enable channel avoid event ignore feature CH_AVOID_RULE_DO_NOT_RESTART has existed, can be used to support channel avoid event ignore feature by ini restart_beaconing_on_chan_avoid_event. In automobile special requirement, LTE co-ex event needs to be ignored to avoid mcc. Change-Id: If24c9132c0098f3c463d3eefc6e957335ddedef1 CRs-Fixed: 2476111 --- umac/regulatory/core/src/reg_lte.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/umac/regulatory/core/src/reg_lte.c b/umac/regulatory/core/src/reg_lte.c index 20a1e7d35e87..22ccbfb8cdde 100644 --- a/umac/regulatory/core/src/reg_lte.c +++ b/umac/regulatory/core/src/reg_lte.c @@ -190,6 +190,11 @@ QDF_STATUS reg_process_ch_avoid_event(struct wlan_objmgr_psoc *psoc, reg_err("reg psoc private obj is NULL"); return QDF_STATUS_E_FAILURE; } + if (CH_AVOID_RULE_DO_NOT_RESTART == + psoc_priv_obj->restart_beaconing) { + reg_debug("skipping all LTE Coex unsafe channel range"); + return QDF_STATUS_SUCCESS; + } /* Make unsafe channel list */ reg_debug("band count %d", ch_avoid_event->ch_avoid_range_cnt);