qcacmn: Smart Mesh-Add filtering configuration to data path

Add nac(non associated client) configuration to pdev. It will be
used to perform smart mesh filtering on rx packets.

Change-Id: I29989d379e10fcc4a0e4aa19dbb3499650d6bf39
CRs-Fixed: 2017269
This commit is contained in:
Pratik Gandhi
2017-03-09 17:41:40 +05:30
committed by snandini
parent c59be52d47
commit 8b8334baa4
5 changed files with 215 additions and 24 deletions

View File

@@ -52,6 +52,16 @@ cdp_mempools_attach(ol_txrx_soc_handle soc, void *ctrl_pdev)
return 0;
}
/**
* @brief set filter neighbour peers
* @details
* This defines interface function to set neighbour peer filtering.
*
* @param soc - the pointer to soc object
* @param pdev - the pointer physical device object
* @param val - the enable/disable value
* @return - int
*/
static inline int
cdp_set_filter_neighbour_peers(ol_txrx_soc_handle soc,
struct cdp_pdev *pdev, u_int32_t val)
@@ -61,6 +71,29 @@ cdp_set_filter_neighbour_peers(ol_txrx_soc_handle soc,
(pdev, val);
return 0;
}
/**
* @brief update the neighbour peer addresses
* @details
* This defines interface function to update neighbour peers addresses
* which needs to be filtered
*
* @param soc - the pointer to soc object
* @param pdev - the pointer to physical device object
* @param cmd - add/del entry into peer table
* @param macaddr - the address of neighbour peer
* @return - int
*/
static inline int
cdp_update_filter_neighbour_peers(ol_txrx_soc_handle soc,
struct cdp_pdev *pdev, uint32_t cmd, uint8_t *macaddr)
{
if (soc->ops->ctrl_ops->txrx_update_filter_neighbour_peers)
return soc->ops->ctrl_ops->txrx_update_filter_neighbour_peers
(pdev, cmd, macaddr);
return 0;
}
/**
* @brief set the safemode of the device
* @details
@@ -73,7 +106,6 @@ cdp_set_filter_neighbour_peers(ol_txrx_soc_handle soc,
* @param val - the safemode state
* @return - void
*/
static inline void
cdp_set_safemode(ol_txrx_soc_handle soc,
struct cdp_vdev *vdev, u_int32_t val)