qcacld-3.0: Correct the peer_macaddr index to the expected value

valid_idx should be used instead of idx to check peer_macaddr
mac address.

Change-Id: Ifd761e4b9caa36d2a04b1dd3bcd75c7181b347f2
CRs-Fixed: 2644625
Цей коміт міститься в:
Qun Zhang
2020-03-18 20:28:43 +08:00
зафіксовано nshrivas
джерело b994a75a34
коміт 6bb9513217

Переглянути файл

@@ -3762,7 +3762,7 @@ static bool roam_remove_ibss_station(struct hdd_adapter *adapter,
if (successful) {
if (del_idx == 0) {
if (hdd_is_valid_mac_address(
sta_ctx->conn_info.peer_macaddr[idx].bytes)) {
sta_ctx->conn_info.peer_macaddr[valid_idx].bytes)) {
qdf_copy_macaddr(&sta_ctx->conn_info.
peer_macaddr[0],
&sta_ctx->conn_info.