qcacmn: Add CDP APIs to get security type from peer handler

Add CDP API to get security type for ucast and mcast from
peer handler. Add additional peer handler argument for raw mode
rx decap functions. The peer handler is needed in the raw mode
functions for getting the security type of the frame and process
it accordingly.

Change-Id: I8b4728e9eb0ff29849805bb461c81e4fc3accc81
This commit is contained in:
c_cgodav
2017-06-07 12:31:40 +05:30
committed by snandini
parent a6e0694098
commit bd5b3c2c9b
7 changed files with 49 additions and 13 deletions

View File

@@ -2223,7 +2223,7 @@ fail0:
* @authorize
*
*/
static void dp_peer_authorize(void *peer_handle, uint32_t authorize)
static void dp_peer_authorize(struct cdp_peer *peer_handle, uint32_t authorize)
{
struct dp_peer *peer = (struct dp_peer *)peer_handle;
struct dp_soc *soc;
@@ -3592,7 +3592,7 @@ static void dp_set_vdev_param(struct cdp_vdev *vdev_handle,
*
* return: void
*/
static void dp_peer_set_nawds(void *peer_handle, uint8_t value)
static void dp_peer_set_nawds(struct cdp_peer *peer_handle, uint8_t value)
{
struct dp_peer *peer = (struct dp_peer *)peer_handle;
peer->nawds_enabled = value;