From 9996a315be6d044c3f2b4d0ab2af38e8de290c47 Mon Sep 17 00:00:00 2001 From: Liangwei Dong Date: Mon, 3 Sep 2018 03:12:43 -0400 Subject: [PATCH] qcacmn: Skip chan list update during SSR The Firmware will switch to default US regdomain after SSR. After SSR we need to keep the old country code, so skip the chan list update firmware event duing SSR. Change-Id: I8735abef67e072f60961aab655a016348dc9d4a0 CRs-Fixed: 2304303 --- target_if/regulatory/src/target_if_reg.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/target_if/regulatory/src/target_if_reg.c b/target_if/regulatory/src/target_if_reg.c index a42613df16f6..04bfbd7382d9 100644 --- a/target_if/regulatory/src/target_if_reg.c +++ b/target_if/regulatory/src/target_if_reg.c @@ -30,6 +30,7 @@ #include #include #include +#include static inline uint32_t get_chan_list_cc_event_id(void) { @@ -101,6 +102,11 @@ static int tgt_reg_chan_list_update_handler(ol_scn_t handle, TARGET_IF_ENTER(); + if (qdf_is_fw_down()) { + target_if_debug("ignore chan list update evt in ssr"); + return 0; + } + psoc = target_if_get_psoc_from_scn_hdl(handle); if (!psoc) { target_if_err("psoc ptr is NULL");