mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
qcacld-3.0: Fix peer address stored in wma_rx_invalid_peer_ind
In wma_rx_invalid_peer_ind driver store the i_addr1(ra) in invalid peer list, which is the self address. To fix store i_addr2(ta), which is the actual peer address, in invalid peer list. Change-Id: I6ff035f3155e611d867778ea56bfdbe8ed3302c8 CRs-Fixed: 2583502
This commit is contained in:
parent
ff74647dc0
commit
fdeea3fdc6
1 changed files with 3 additions and 3 deletions
|
|
@ -3190,7 +3190,7 @@ uint8_t wma_rx_invalid_peer_ind(uint8_t vdev_id, void *wh)
|
|||
for (i = 0; i < INVALID_PEER_MAX_NUM; i++) {
|
||||
if (qdf_mem_cmp
|
||||
(iface->invalid_peers[i].rx_macaddr,
|
||||
rx_inv_msg->ra,
|
||||
rx_inv_msg->ta,
|
||||
QDF_MAC_ADDR_SIZE) == 0) {
|
||||
invalid_peer_found = true;
|
||||
break;
|
||||
|
|
@ -3199,7 +3199,7 @@ uint8_t wma_rx_invalid_peer_ind(uint8_t vdev_id, void *wh)
|
|||
|
||||
if (!invalid_peer_found) {
|
||||
qdf_mem_copy(iface->invalid_peers[index].rx_macaddr,
|
||||
rx_inv_msg->ra,
|
||||
rx_inv_msg->ta,
|
||||
QDF_MAC_ADDR_SIZE);
|
||||
|
||||
/* reset count if reached max */
|
||||
|
|
@ -3219,7 +3219,7 @@ uint8_t wma_rx_invalid_peer_ind(uint8_t vdev_id, void *wh)
|
|||
} else {
|
||||
wma_debug_rl("Ignore invalid peer indication as received more than once "
|
||||
QDF_MAC_ADDR_STR,
|
||||
QDF_MAC_ADDR_ARRAY(rx_inv_msg->ra));
|
||||
QDF_MAC_ADDR_ARRAY(rx_inv_msg->ta));
|
||||
qdf_mem_free(rx_inv_msg);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue