Kaynağa Gözat

qcacld-3.0: Fix bss color event validation for false detection

Secondary bit map starts with color 32, So current color minus 31
will shift color bit beyond the expected position which is 0th,
Fix it by subtracting with 32 instead 31.

Change-Id: I7ede16faee129c42c71d490f653244398061a8b6
CRs-Fixed: 2222003
Arif Hussain 7 yıl önce
ebeveyn
işleme
9e8c561b30

+ 1 - 1
core/mac/src/pe/lim/lim_process_sme_req_messages.c

@@ -5774,7 +5774,7 @@ static void obss_color_collision_process_color_change(tpAniSirGlobal mac_ctx,
 			is_color_collision = (obss_color_info->
 					     obss_color_bitmap_bit32to63 >>
 					     (session->he_op.bss_color -
-					      31)) & 0x01;
+					      32)) & 0x01;
 		if (!is_color_collision) {
 			pe_err("%d: color collision not found, curr_color: %d",
 			       session->smeSessionId,