qcacld-3.0: Add CDP API to set key in data path

Add CDP API to set RX MIC key in datapath.
Required to perform RX demic of fragmented packets.

Change-Id: I3c05da62ff20f8551cdc5780ce2f7b8d23c73a37
CRs-Fixed: 2217884
Este commit está contenido en:
psimha
2018-04-03 17:38:38 -07:00
cometido por nshrivas
padre f7ab655435
commit 8696f772fe
Se han modificado 4 ficheros con 8 adiciones y 2 borrados

Ver fichero

@@ -2819,7 +2819,8 @@ static void ol_txrx_dump_peer_access_list(ol_txrx_peer_handle peer)
* fails
*/
static void *
ol_txrx_peer_attach(struct cdp_vdev *pvdev, uint8_t *peer_mac_addr)
ol_txrx_peer_attach(struct cdp_vdev *pvdev, uint8_t *peer_mac_addr,
void *ol_peer)
{
struct ol_txrx_vdev_t *vdev = (struct ol_txrx_vdev_t *)pvdev;
struct ol_txrx_peer_t *peer;

Ver fichero

@@ -337,6 +337,7 @@ enum ds_mode {
#define WMA_TXMIC_LEN 8
#define WMA_RXMIC_LEN 8
#define WMA_IV_KEY_LEN 16
/*
* Length = (2 octets for Index and CTWin/Opp PS) and

Ver fichero

@@ -1732,7 +1732,7 @@ QDF_STATUS wma_create_peer(tp_wma_handle wma, struct cdp_pdev *pdev,
* where the HTT peer map event is received before the peer object
* is created in the data path
*/
peer = cdp_peer_create(dp_soc, vdev, peer_addr);
peer = cdp_peer_create(dp_soc, vdev, peer_addr, NULL);
if (!peer) {
WMA_LOGE("%s : Unable to attach peer %pM", __func__, peer_addr);
wlan_objmgr_peer_obj_delete(obj_peer);

Ver fichero

@@ -1965,6 +1965,10 @@ static QDF_STATUS wma_setup_install_key_cmd(tp_wma_handle wma_handle,
/* Set PN check & security type in data path */
cdp_set_pn_check(soc, txrx_vdev, peer, sec_type, pn);
cdp_set_key(soc, peer, key_params->unicast,
(uint32_t *)(key_params->key_data +
WMA_IV_KEY_LEN +
WMA_TXMIC_LEN));
status = wmi_unified_setup_install_key_cmd(wma_handle->wmi_handle,
&params);