qcacmn: Enable WDS learning only when configured

Add support to make WDS source port learning in lithium datapath
to be configurable.

Change-Id: I63eb64d6f46560a31f8e40a806d05d1dceddd784
CRs-Fixed: 2004658
此提交包含在:
Karunakar Dasineni
2017-01-16 10:08:58 -08:00
提交者 Sandeep Puligilla
父節點 7e19ec5b53
當前提交 ca792543cf
共有 6 個檔案被更改,包括 46 行新增13 行删除

查看文件

@@ -58,4 +58,21 @@ cdp_set_wds_rx_policy(ol_txrx_soc_handle soc,
return;
}
/**
* cdp_vdev_set_wds() - Set/unset wds_enable flag in vdev
* @soc - data path soc handle
* @vdev - data path vap handle
* @val - value to be set in wds_en flag
*
* This flag enables WDS source port learning feature on a vdev
*
* return 1 on success
*/
static inline int
cdp_vdev_set_wds(ol_txrx_soc_handle soc, void *vdev, uint32_t val)
{
if (soc->ops->wds_ops->vdev_set_wds)
return soc->ops->wds_ops->vdev_set_wds(vdev, val);
return 0;
}
#endif