qcacmn: Changing DBS query method from DP
Changing the method DP queries WMA regarding DBS capability. Now his call will be made through policy manager. Change-Id: I269537761a7acfa7e20a00c0ee7fc26ec1d17106 CRs-Fixed: 2025317
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
d817164e95
commit
7f7b4aa23d
@@ -35,7 +35,7 @@ ol_txrx_soc_handle ol_txrx_soc_attach(void *scn_handle, struct ol_if_ops *dp_ol_
|
|||||||
#ifdef QCA_WIFI_QCA8074
|
#ifdef QCA_WIFI_QCA8074
|
||||||
void *dp_soc_attach_wifi3(void *osif_soc, void *hif_handle,
|
void *dp_soc_attach_wifi3(void *osif_soc, void *hif_handle,
|
||||||
HTC_HANDLE htc_handle, qdf_device_t qdf_osdev,
|
HTC_HANDLE htc_handle, qdf_device_t qdf_osdev,
|
||||||
struct ol_if_ops *ol_ops);
|
struct ol_if_ops *ol_ops, struct wlan_objmgr_psoc *psoc);
|
||||||
#else
|
#else
|
||||||
/*
|
/*
|
||||||
* dp_soc_attach_wifi3() - Attach txrx SOC
|
* dp_soc_attach_wifi3() - Attach txrx SOC
|
||||||
@@ -48,7 +48,7 @@ void *dp_soc_attach_wifi3(void *osif_soc, void *hif_handle,
|
|||||||
*/
|
*/
|
||||||
static inline void *dp_soc_attach_wifi3(void *osif_soc, void *hif_handle,
|
static inline void *dp_soc_attach_wifi3(void *osif_soc, void *hif_handle,
|
||||||
HTC_HANDLE htc_handle, qdf_device_t qdf_osdev,
|
HTC_HANDLE htc_handle, qdf_device_t qdf_osdev,
|
||||||
struct ol_if_ops *ol_ops)
|
struct ol_if_ops *ol_ops, struct wlan_objmgr_psoc *psoc)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@@ -56,7 +56,8 @@ static inline void *dp_soc_attach_wifi3(void *osif_soc, void *hif_handle,
|
|||||||
|
|
||||||
static inline ol_txrx_soc_handle cdp_soc_attach(u_int16_t devid,
|
static inline ol_txrx_soc_handle cdp_soc_attach(u_int16_t devid,
|
||||||
void *hif_handle, void *scn, void *htc_handle,
|
void *hif_handle, void *scn, void *htc_handle,
|
||||||
qdf_device_t qdf_dev, struct ol_if_ops *dp_ol_if_ops)
|
qdf_device_t qdf_dev, struct ol_if_ops *dp_ol_if_ops,
|
||||||
|
struct wlan_objmgr_psoc *psoc)
|
||||||
{
|
{
|
||||||
switch (devid) {
|
switch (devid) {
|
||||||
case LITHIUM_DP: /*FIXME Add lithium devide IDs */
|
case LITHIUM_DP: /*FIXME Add lithium devide IDs */
|
||||||
@@ -66,7 +67,7 @@ static inline ol_txrx_soc_handle cdp_soc_attach(u_int16_t devid,
|
|||||||
case RUMIM2M_DEVICE_ID_NODE2: /*lithium emulation */
|
case RUMIM2M_DEVICE_ID_NODE2: /*lithium emulation */
|
||||||
case RUMIM2M_DEVICE_ID_NODE3: /*lithium emulation */
|
case RUMIM2M_DEVICE_ID_NODE3: /*lithium emulation */
|
||||||
return dp_soc_attach_wifi3(scn, hif_handle, htc_handle,
|
return dp_soc_attach_wifi3(scn, hif_handle, htc_handle,
|
||||||
qdf_dev, dp_ol_if_ops);
|
qdf_dev, dp_ol_if_ops, psoc);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return ol_txrx_soc_attach(scn, dp_ol_if_ops);
|
return ol_txrx_soc_attach(scn, dp_ol_if_ops);
|
||||||
|
@@ -32,6 +32,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#include "cdp_txrx_handle.h"
|
#include "cdp_txrx_handle.h"
|
||||||
#include <cdp_txrx_mon_struct.h>
|
#include <cdp_txrx_mon_struct.h>
|
||||||
|
#include "wlan_objmgr_psoc_obj.h"
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
*
|
*
|
||||||
@@ -574,7 +575,7 @@ struct ol_if_ops {
|
|||||||
uint32_t tid_mask);
|
uint32_t tid_mask);
|
||||||
int (*peer_unref_delete)(void *scn_handle, uint8_t vdev_id,
|
int (*peer_unref_delete)(void *scn_handle, uint8_t vdev_id,
|
||||||
uint8_t *peer_macaddr);
|
uint8_t *peer_macaddr);
|
||||||
bool (*is_hw_dbs_2x2_capable)(void);
|
bool (*is_hw_dbs_2x2_capable)(struct wlan_objmgr_psoc *psoc);
|
||||||
int (*peer_add_wds_entry)(void *ol_soc_handle,
|
int (*peer_add_wds_entry)(void *ol_soc_handle,
|
||||||
const uint8_t *dest_macaddr, uint8_t *peer_macaddr,
|
const uint8_t *dest_macaddr, uint8_t *peer_macaddr,
|
||||||
uint32_t flags);
|
uint32_t flags);
|
||||||
|
@@ -1484,7 +1484,7 @@ static void dp_rxdma_ring_config(struct dp_soc *soc)
|
|||||||
if (soc->cdp_soc.ol_ops->
|
if (soc->cdp_soc.ol_ops->
|
||||||
is_hw_dbs_2x2_capable) {
|
is_hw_dbs_2x2_capable) {
|
||||||
dbs_enable = soc->cdp_soc.ol_ops->
|
dbs_enable = soc->cdp_soc.ol_ops->
|
||||||
is_hw_dbs_2x2_capable();
|
is_hw_dbs_2x2_capable(soc->psoc);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dbs_enable) {
|
if (dbs_enable) {
|
||||||
@@ -3542,10 +3542,10 @@ static struct cdp_ops dp_txrx_ops = {
|
|||||||
*/
|
*/
|
||||||
void *dp_soc_attach_wifi3(void *osif_soc, void *hif_handle,
|
void *dp_soc_attach_wifi3(void *osif_soc, void *hif_handle,
|
||||||
HTC_HANDLE htc_handle, qdf_device_t qdf_osdev,
|
HTC_HANDLE htc_handle, qdf_device_t qdf_osdev,
|
||||||
struct ol_if_ops *ol_ops);
|
struct ol_if_ops *ol_ops, struct wlan_objmgr_psoc *psoc);
|
||||||
void *dp_soc_attach_wifi3(void *osif_soc, void *hif_handle,
|
void *dp_soc_attach_wifi3(void *osif_soc, void *hif_handle,
|
||||||
HTC_HANDLE htc_handle, qdf_device_t qdf_osdev,
|
HTC_HANDLE htc_handle, qdf_device_t qdf_osdev,
|
||||||
struct ol_if_ops *ol_ops)
|
struct ol_if_ops *ol_ops, struct wlan_objmgr_psoc *psoc)
|
||||||
{
|
{
|
||||||
struct dp_soc *soc = qdf_mem_malloc(sizeof(*soc));
|
struct dp_soc *soc = qdf_mem_malloc(sizeof(*soc));
|
||||||
|
|
||||||
@@ -3560,6 +3560,7 @@ void *dp_soc_attach_wifi3(void *osif_soc, void *hif_handle,
|
|||||||
soc->osif_soc = osif_soc;
|
soc->osif_soc = osif_soc;
|
||||||
soc->osdev = qdf_osdev;
|
soc->osdev = qdf_osdev;
|
||||||
soc->hif_handle = hif_handle;
|
soc->hif_handle = hif_handle;
|
||||||
|
soc->psoc = psoc;
|
||||||
|
|
||||||
soc->hal_soc = hif_get_hal_handle(hif_handle);
|
soc->hal_soc = hif_get_hal_handle(hif_handle);
|
||||||
soc->htt_handle = htt_soc_attach(soc, osif_soc, htc_handle,
|
soc->htt_handle = htt_soc_attach(soc, osif_soc, htc_handle,
|
||||||
|
@@ -673,6 +673,9 @@ struct dp_soc {
|
|||||||
#endif
|
#endif
|
||||||
qdf_list_t reo_desc_freelist;
|
qdf_list_t reo_desc_freelist;
|
||||||
qdf_spinlock_t reo_desc_freelist_lock;
|
qdf_spinlock_t reo_desc_freelist_lock;
|
||||||
|
|
||||||
|
/* Obj Mgr SoC */
|
||||||
|
struct wlan_objmgr_psoc *psoc;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* PDEV level structure for data path */
|
/* PDEV level structure for data path */
|
||||||
|
Reference in New Issue
Block a user