From 34fda7994a9d1835c7bb22b680e419b42985f17a Mon Sep 17 00:00:00 2001 From: Manjunathappa Prakash Date: Wed, 7 Feb 2018 18:23:42 -0800 Subject: [PATCH] qcacld-3.0: Fail channel switch if current chan and mode same as previous Currently we fail channel switch if new channel matches old channel. So it dosnot take into account of mode switches HT20/HT40/VHT80. So process channel switch request if either channel or mode is different. Change-Id: I8743a6292277daad8b1bf38b79c236f19fbac700 CRs-Fixed: 2186212 --- core/mac/src/pe/lim/lim_process_sme_req_messages.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/mac/src/pe/lim/lim_process_sme_req_messages.c b/core/mac/src/pe/lim/lim_process_sme_req_messages.c index d19d53dd667d..f9aea2f11231 100644 --- a/core/mac/src/pe/lim/lim_process_sme_req_messages.c +++ b/core/mac/src/pe/lim/lim_process_sme_req_messages.c @@ -5143,9 +5143,11 @@ static void lim_process_sme_channel_change_request(tpAniSirGlobal mac_ctx, return; } - if (session_entry->currentOperChannel == - ch_change_req->targetChannel) { - pe_err("target CH is same as current CH"); + if ((session_entry->currentOperChannel == + ch_change_req->targetChannel) && + (session_entry->ch_width == ch_change_req->ch_width)) { + pe_err("Target channel and mode is same as current channel and mode channel %d and mode %d", + session_entry->currentOperChannel, session_entry->ch_width); return; }