Browse Source

qcacld-3.0: fix index typo of mc addr list

Right index of op_list is "j" instead of "i"

Change-Id: If06a148bda70df84d1cc160e6459b0675364a284
CRs-Fixed: 3499324
Sijun Wu 1 year ago
parent
commit
ed3d32bf76
1 changed files with 2 additions and 1 deletions
  1. 2 1
      components/pmo/core/src/wlan_pmo_mc_addr_filtering.c

+ 2 - 1
components/pmo/core/src/wlan_pmo_mc_addr_filtering.c

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2017-2020 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -71,7 +72,7 @@ static void pmo_core_fill_mc_list(struct pmo_vdev_priv_obj **vdev_ctx,
 			     ip->mc_addr[i].bytes, QDF_MAC_ADDR_SIZE);
 		qdf_spin_unlock_bh(&temp_ctx->pmo_vdev_lock);
 		pmo_debug("Index = %d, mac["QDF_MAC_ADDR_FMT"]", j,
-			  QDF_MAC_ADDR_REF(op_list->mc_addr[i].bytes));
+			  QDF_MAC_ADDR_REF(op_list->mc_addr[j].bytes));
 		j++;
 	}
 }