Browse Source

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
Manjunathappa Prakash 7 năm trước cách đây
mục cha
commit
34fda7994a
1 tập tin đã thay đổi với 5 bổ sung3 xóa
  1. 5 3
      core/mac/src/pe/lim/lim_process_sme_req_messages.c

+ 5 - 3
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;
 	}