qcacmn: Modify CDP AST APIs to synchronize add and delete cmds to FW

Change the CDP abstraction APIs for ast entry find, add and delete
to avoid external references for ast entry in upper layers

Process the HTT v2 peer map messages which will be enabled for
nexthop ast entries and use these messages instead of WMI event
for HKv1 WAR where we have to wait for delete confirmation from
target event which is processed in control path

Change-Id: Ifa91a259c0762344deb8ab89e868fc5554d75543
CRs-fixed: 2354951
This commit is contained in:
Chaithanya Garrepalli
2018-11-16 18:30:41 +05:30
committed by nshrivas
parent d6bdb6eb36
commit 9cc562c53b
10 changed files with 699 additions and 621 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2019 The Linux Foundation. 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
@@ -2965,11 +2965,12 @@ static void dp_htt_t2h_msg_handler(void *context, HTC_PACKET *pkt)
{
u_int16_t peer_id;
u_int8_t vdev_id;
u_int8_t mac_addr[HTT_MAC_ADDR_LEN] = {0};
peer_id = HTT_RX_PEER_UNMAP_PEER_ID_GET(*msg_word);
vdev_id = HTT_RX_PEER_UNMAP_VDEV_ID_GET(*msg_word);
dp_rx_peer_unmap_handler(soc->dp_soc, peer_id,
vdev_id, NULL, 0);
vdev_id, mac_addr, 0);
break;
}
case HTT_T2H_MSG_TYPE_SEC_IND:
@@ -3112,7 +3113,7 @@ static void dp_htt_t2h_msg_handler(void *context, HTC_PACKET *pkt)
case HTT_T2H_MSG_TYPE_PEER_UNMAP_V2:
{
u_int8_t mac_addr_deswizzle_buf[HTT_MAC_ADDR_LEN];
u_int8_t *peer_mac_addr;
u_int8_t *mac_addr;
u_int16_t peer_id;
u_int8_t vdev_id;
u_int8_t is_wds;
@@ -3120,7 +3121,7 @@ static void dp_htt_t2h_msg_handler(void *context, HTC_PACKET *pkt)
peer_id =
HTT_RX_PEER_UNMAP_V2_SW_PEER_ID_GET(*msg_word);
vdev_id = HTT_RX_PEER_UNMAP_V2_VDEV_ID_GET(*msg_word);
peer_mac_addr =
mac_addr =
htt_t2h_mac_addr_deswizzle((u_int8_t *)(msg_word + 1),
&mac_addr_deswizzle_buf[0]);
is_wds =
@@ -3131,7 +3132,7 @@ static void dp_htt_t2h_msg_handler(void *context, HTC_PACKET *pkt)
peer_id, vdev_id);
dp_rx_peer_unmap_handler(soc->dp_soc, peer_id,
vdev_id, peer_mac_addr,
vdev_id, mac_addr,
is_wds);
break;
}