qcacmn: Fix Key derivation for mesh rx stats

Fixed key derivation for mesh rx stats for received packet. Added cdp api
to get the key by passing key index and peer mac address.

Change-Id: I6a4c342b614ae85a5ad2fb047f2d8686aa068196
CRs-fixed: 2094335
このコミットが含まれているのは:
Venkateswara Swamy Bandaru
2017-07-10 19:47:09 +05:30
committed by snandini
コミット 3f4e1c48cc
4個のファイルの変更28行の追加4行の削除

ファイルの表示

@@ -319,6 +319,16 @@ typedef void (*ol_txrx_tx_flow_control_fp)(void *osif_dev,
*/
typedef QDF_STATUS(*ol_txrx_rx_fp)(void *osif_dev, qdf_nbuf_t msdu_list);
/**
* ol_txrx_get_key_fp - function to gey key based on keyix and peer
* mac address
* @osif_dev - the virtual device's OS shim object
* @key_buf - pointer to store key
* @mac_addr - pointer to mac address
* @keyix - key id
*/
typedef QDF_STATUS(*ol_txrx_get_key_fp)(void *osif_dev, uint8_t *key_buf, uint8_t *mac_addr, uint8_t keyix);
/**
* ol_txrx_rsim_rx_decap_fp - raw mode simulation function to decap the
* packets in receive path.
@@ -418,6 +428,8 @@ typedef void (*ol_txrx_stats_callback)(void *ctxt,
* header added before the MPDU contents.
* @proxy_arp - proxy arp function pointer - specified by
* OS shim, stored by txrx
* @get_key - function pointer to get key of the peer with
* specific key index
*/
struct ol_txrx_ops {
/* tx function pointers - specified by txrx, stored by OS shim */
@@ -437,6 +449,8 @@ struct ol_txrx_ops {
/* proxy arp function pointer - specified by OS shim, stored by txrx */
ol_txrx_proxy_arp_fp proxy_arp;
ol_txrx_mcast_me_fp me_convert;
ol_txrx_get_key_fp get_key;
};
/**