qcacmn: Identify WIN/MCC specific features
Identify the WIN/MCC specific features. Move the features under feature specific flags. Get rid of WIN/MCC specific code. Change-Id: Iaf4e5befd7d574a20bea5c078201adbeac3b762c
This commit is contained in:

committed by
nshrivas

parent
409a3b2c53
commit
05862964ab
@@ -146,7 +146,8 @@ cdp_vdev_attach(ol_txrx_soc_handle soc, struct cdp_pdev *pdev,
|
|||||||
return soc->ops->cmn_drv_ops->txrx_vdev_attach(pdev,
|
return soc->ops->cmn_drv_ops->txrx_vdev_attach(pdev,
|
||||||
vdev_mac_addr, vdev_id, op_mode);
|
vdev_mac_addr, vdev_id, op_mode);
|
||||||
}
|
}
|
||||||
#ifndef CONFIG_WIN
|
|
||||||
|
#ifdef CONFIG_MCL
|
||||||
/**
|
/**
|
||||||
* cdp_flow_pool_map() - Create flow pool for vdev
|
* cdp_flow_pool_map() - Create flow pool for vdev
|
||||||
* @soc - data path soc handle
|
* @soc - data path soc handle
|
||||||
|
@@ -34,9 +34,9 @@
|
|||||||
#include "qdf_types.h"
|
#include "qdf_types.h"
|
||||||
#include "qdf_nbuf.h"
|
#include "qdf_nbuf.h"
|
||||||
#include "qdf_atomic.h"
|
#include "qdf_atomic.h"
|
||||||
#ifndef CONFIG_WIN
|
#ifdef CONFIG_MCL
|
||||||
#include <cdp_txrx_mob_def.h>
|
#include <cdp_txrx_mob_def.h>
|
||||||
#endif /* CONFIG_WIN */
|
#endif
|
||||||
#include <cdp_txrx_handle.h>
|
#include <cdp_txrx_handle.h>
|
||||||
#include <cdp_txrx_stats_struct.h>
|
#include <cdp_txrx_stats_struct.h>
|
||||||
#ifdef WLAN_RX_PKT_CAPTURE_ENH
|
#ifdef WLAN_RX_PKT_CAPTURE_ENH
|
||||||
|
@@ -850,12 +850,12 @@ struct cdp_raw_ops {
|
|||||||
struct cdp_raw_ast *raw_ast);
|
struct cdp_raw_ast *raw_ast);
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef CONFIG_WIN
|
#ifdef PEER_FLOW_CONTROL
|
||||||
struct cdp_pflow_ops {
|
struct cdp_pflow_ops {
|
||||||
uint32_t(*pflow_update_pdev_params)(void *,
|
uint32_t(*pflow_update_pdev_params)(void *,
|
||||||
enum _ol_ath_param_t, uint32_t, void *);
|
enum _ol_ath_param_t, uint32_t, void *);
|
||||||
};
|
};
|
||||||
#endif /* CONFIG_WIN */
|
#endif /* PEER_FLOW_CONTROL */
|
||||||
|
|
||||||
#define LRO_IPV4_SEED_ARR_SZ 5
|
#define LRO_IPV4_SEED_ARR_SZ 5
|
||||||
#define LRO_IPV6_SEED_ARR_SZ 11
|
#define LRO_IPV6_SEED_ARR_SZ 11
|
||||||
@@ -917,10 +917,10 @@ struct ol_if_ops {
|
|||||||
struct cdp_lro_hash_config *rx_offld_hash);
|
struct cdp_lro_hash_config *rx_offld_hash);
|
||||||
void (*update_dp_stats)(void *soc, void *stats, uint16_t id,
|
void (*update_dp_stats)(void *soc, void *stats, uint16_t id,
|
||||||
uint8_t type);
|
uint8_t type);
|
||||||
#ifdef CONFIG_WIN
|
#ifdef CONFIG_MCL
|
||||||
uint8_t (*rx_invalid_peer)(void *ctrl_pdev, void *msg);
|
|
||||||
#else
|
|
||||||
uint8_t (*rx_invalid_peer)(uint8_t vdev_id, void *wh);
|
uint8_t (*rx_invalid_peer)(uint8_t vdev_id, void *wh);
|
||||||
|
#else
|
||||||
|
uint8_t (*rx_invalid_peer)(void *ctrl_pdev, void *msg);
|
||||||
#endif
|
#endif
|
||||||
int (*peer_map_event)(void *ol_soc_handle, uint16_t peer_id, uint16_t hw_peer_id,
|
int (*peer_map_event)(void *ol_soc_handle, uint16_t peer_id, uint16_t hw_peer_id,
|
||||||
uint8_t vdev_id, uint8_t *peer_mac_addr,
|
uint8_t vdev_id, uint8_t *peer_mac_addr,
|
||||||
@@ -968,7 +968,7 @@ struct ol_if_ops {
|
|||||||
/* TODO: Add any other control path calls required to OL_IF/WMA layer */
|
/* TODO: Add any other control path calls required to OL_IF/WMA layer */
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifndef CONFIG_WIN
|
#ifdef CONFIG_MCL
|
||||||
/* From here MCL specific OPs */
|
/* From here MCL specific OPs */
|
||||||
/**
|
/**
|
||||||
* struct cdp_misc_ops - mcl ops not classified
|
* struct cdp_misc_ops - mcl ops not classified
|
||||||
@@ -1317,7 +1317,7 @@ struct cdp_mob_stats_ops {
|
|||||||
void (*clear_stats)(uint16_t bitmap);
|
void (*clear_stats)(uint16_t bitmap);
|
||||||
int (*stats)(uint8_t vdev_id, char *buffer, unsigned buf_len);
|
int (*stats)(uint8_t vdev_id, char *buffer, unsigned buf_len);
|
||||||
};
|
};
|
||||||
#endif /* CONFIG_WIN */
|
#endif /* CONFIG_MCL */
|
||||||
|
|
||||||
#ifdef RECEIVE_OFFLOAD
|
#ifdef RECEIVE_OFFLOAD
|
||||||
/**
|
/**
|
||||||
@@ -1340,7 +1340,7 @@ struct cdp_ops {
|
|||||||
struct cdp_wds_ops *wds_ops;
|
struct cdp_wds_ops *wds_ops;
|
||||||
struct cdp_raw_ops *raw_ops;
|
struct cdp_raw_ops *raw_ops;
|
||||||
struct cdp_pflow_ops *pflow_ops;
|
struct cdp_pflow_ops *pflow_ops;
|
||||||
#ifndef CONFIG_WIN
|
#ifdef CONFIG_MCL
|
||||||
struct cdp_misc_ops *misc_ops;
|
struct cdp_misc_ops *misc_ops;
|
||||||
struct cdp_cfg_ops *cfg_ops;
|
struct cdp_cfg_ops *cfg_ops;
|
||||||
struct cdp_flowctl_ops *flowctl_ops;
|
struct cdp_flowctl_ops *flowctl_ops;
|
||||||
@@ -1358,6 +1358,6 @@ struct cdp_ops {
|
|||||||
struct cdp_mob_stats_ops *mob_stats_ops;
|
struct cdp_mob_stats_ops *mob_stats_ops;
|
||||||
struct cdp_tx_delay_ops *delay_ops;
|
struct cdp_tx_delay_ops *delay_ops;
|
||||||
struct cdp_pmf_ops *pmf_ops;
|
struct cdp_pmf_ops *pmf_ops;
|
||||||
#endif /* CONFIG_WIN */
|
#endif
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
@@ -23,7 +23,7 @@
|
|||||||
*/
|
*/
|
||||||
#ifndef _CDP_TXRX_STATS_STRUCT_H_
|
#ifndef _CDP_TXRX_STATS_STRUCT_H_
|
||||||
#define _CDP_TXRX_STATS_STRUCT_H_
|
#define _CDP_TXRX_STATS_STRUCT_H_
|
||||||
#ifndef CONFIG_WIN
|
#ifdef CONFIG_MCL
|
||||||
#include <wlan_defs.h>
|
#include <wlan_defs.h>
|
||||||
#endif
|
#endif
|
||||||
#define TXRX_STATS_LEVEL_OFF 0
|
#define TXRX_STATS_LEVEL_OFF 0
|
||||||
|
@@ -1514,7 +1514,7 @@ fail0:
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(CONFIG_WIN) && WDI_EVENT_ENABLE
|
#if defined(HTT_STATS_ENABLE)
|
||||||
static inline QDF_STATUS dp_send_htt_stat_resp(struct htt_stats_context *htt_stats,
|
static inline QDF_STATUS dp_send_htt_stat_resp(struct htt_stats_context *htt_stats,
|
||||||
struct dp_soc *soc, qdf_nbuf_t htt_msg)
|
struct dp_soc *soc, qdf_nbuf_t htt_msg)
|
||||||
|
|
||||||
@@ -1546,13 +1546,13 @@ static inline QDF_STATUS dp_send_htt_stat_resp(struct htt_stats_context *htt_sta
|
|||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
static inline QDF_STATUS dp_send_htt_stat_resp(struct htt_stats_context *htt_stats,
|
static inline QDF_STATUS
|
||||||
struct dp_soc *soc, qdf_nbuf_t htt_msg)
|
dp_send_htt_stat_resp(struct htt_stats_context *htt_stats,
|
||||||
|
struct dp_soc *soc, qdf_nbuf_t htt_msg)
|
||||||
{
|
{
|
||||||
return QDF_STATUS_E_NOSUPPORT;
|
return QDF_STATUS_E_NOSUPPORT;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_process_htt_stat_msg(): Process the list of buffers of HTT EXT stats
|
* dp_process_htt_stat_msg(): Process the list of buffers of HTT EXT stats
|
||||||
* @htt_stats: htt stats info
|
* @htt_stats: htt stats info
|
||||||
|
@@ -2793,7 +2793,7 @@ dp_rx_sec_ind_handler(void *soc_handle, uint16_t peer_id,
|
|||||||
dp_peer_unref_del_find_by_id(peer);
|
dp_peer_unref_del_find_by_id(peer);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef CONFIG_WIN
|
#ifdef CONFIG_MCL
|
||||||
/**
|
/**
|
||||||
* dp_register_peer() - Register peer into physical device
|
* dp_register_peer() - Register peer into physical device
|
||||||
* @pdev - data path device instance
|
* @pdev - data path device instance
|
||||||
|
@@ -30,12 +30,7 @@
|
|||||||
#include "dp_rx_mon.h"
|
#include "dp_rx_mon.h"
|
||||||
#include "dp_ipa.h"
|
#include "dp_ipa.h"
|
||||||
|
|
||||||
#ifdef CONFIG_WIN
|
#ifdef CONFIG_MCL
|
||||||
static inline bool dp_rx_check_ap_bridge(struct dp_vdev *vdev)
|
|
||||||
{
|
|
||||||
return vdev->ap_bridge_enabled;
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
static inline bool dp_rx_check_ap_bridge(struct dp_vdev *vdev)
|
static inline bool dp_rx_check_ap_bridge(struct dp_vdev *vdev)
|
||||||
{
|
{
|
||||||
if (vdev->opmode != wlan_op_mode_sta)
|
if (vdev->opmode != wlan_op_mode_sta)
|
||||||
@@ -43,6 +38,11 @@ static inline bool dp_rx_check_ap_bridge(struct dp_vdev *vdev)
|
|||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
static inline bool dp_rx_check_ap_bridge(struct dp_vdev *vdev)
|
||||||
|
{
|
||||||
|
return vdev->ap_bridge_enabled;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ATH_RX_PRI_SAVE
|
#ifdef ATH_RX_PRI_SAVE
|
||||||
@@ -691,7 +691,7 @@ QDF_STATUS dp_rx_filter_mesh_packets(struct dp_vdev *vdev, qdf_nbuf_t nbuf,
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_WIN
|
#ifdef FEATURE_NAC_RSSI
|
||||||
/**
|
/**
|
||||||
* dp_rx_nac_filter(): Function to perform filtering of non-associated
|
* dp_rx_nac_filter(): Function to perform filtering of non-associated
|
||||||
* clients
|
* clients
|
||||||
|
@@ -626,7 +626,6 @@ static inline void dp_print_tx_tid_stats_tlv(uint32_t *tag_buf)
|
|||||||
qdf_mem_free(tid_name);
|
qdf_mem_free(tid_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_WIN
|
|
||||||
/*
|
/*
|
||||||
* dp_print_tx_tid_stats_v1_tlv: display htt_tx_tid_stats_v1_tlv
|
* dp_print_tx_tid_stats_v1_tlv: display htt_tx_tid_stats_v1_tlv
|
||||||
* @tag_buf: buffer containing the tlv htt_tx_tid_stats_v1_tlv
|
* @tag_buf: buffer containing the tlv htt_tx_tid_stats_v1_tlv
|
||||||
@@ -682,7 +681,6 @@ static inline void dp_print_tx_tid_stats_v1_tlv(uint32_t *tag_buf)
|
|||||||
dp_stats_buf->tid_tx_airtime);
|
dp_stats_buf->tid_tx_airtime);
|
||||||
qdf_mem_free(tid_name);
|
qdf_mem_free(tid_name);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* dp_print_rx_tid_stats_tlv: display htt_rx_tid_stats_tlv
|
* dp_print_rx_tid_stats_tlv: display htt_rx_tid_stats_tlv
|
||||||
@@ -3951,8 +3949,6 @@ void dp_htt_stats_copy_tag(struct dp_pdev *pdev, uint8_t tag_type, uint32_t *tag
|
|||||||
if (dest_ptr)
|
if (dest_ptr)
|
||||||
qdf_mem_copy(dest_ptr, tag_buf, size);
|
qdf_mem_copy(dest_ptr, tag_buf, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(CONFIG_WIN) && WDI_EVENT_ENABLE
|
|
||||||
QDF_STATUS dp_peer_stats_notify(struct dp_peer *peer)
|
QDF_STATUS dp_peer_stats_notify(struct dp_peer *peer)
|
||||||
{
|
{
|
||||||
struct dp_pdev *dp_pdev;
|
struct dp_pdev *dp_pdev;
|
||||||
@@ -3987,7 +3983,6 @@ QDF_STATUS dp_peer_stats_notify(struct dp_peer *peer)
|
|||||||
|
|
||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_WIN
|
#ifdef CONFIG_WIN
|
||||||
/**
|
/**
|
||||||
|
@@ -1844,78 +1844,6 @@ qdf_nbuf_t dp_tx_extract_mesh_meta_data(struct dp_vdev *vdev, qdf_nbuf_t nbuf,
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DP_FEATURE_NAWDS_TX
|
|
||||||
/**
|
|
||||||
* dp_tx_prepare_nawds(): Tramit NAWDS frames
|
|
||||||
* @vdev: dp_vdev handle
|
|
||||||
* @nbuf: skb
|
|
||||||
* @tid: TID from HLOS for overriding default DSCP-TID mapping
|
|
||||||
* @tx_q: Tx queue to be used for this Tx frame
|
|
||||||
* @meta_data: Meta date for mesh
|
|
||||||
* @peer_id: peer_id of the peer in case of NAWDS frames
|
|
||||||
*
|
|
||||||
* return: NULL on success nbuf on failure
|
|
||||||
*/
|
|
||||||
static qdf_nbuf_t dp_tx_prepare_nawds(struct dp_vdev *vdev, qdf_nbuf_t nbuf,
|
|
||||||
struct dp_tx_msdu_info_s *msdu_info)
|
|
||||||
{
|
|
||||||
struct dp_peer *peer = NULL;
|
|
||||||
struct dp_soc *soc = vdev->pdev->soc;
|
|
||||||
struct dp_ast_entry *ast_entry = NULL;
|
|
||||||
qdf_ether_header_t *eh = (qdf_ether_header_t *)qdf_nbuf_data(nbuf);
|
|
||||||
uint16_t peer_id = HTT_INVALID_PEER;
|
|
||||||
|
|
||||||
struct dp_peer *sa_peer = NULL;
|
|
||||||
qdf_nbuf_t nbuf_copy;
|
|
||||||
|
|
||||||
qdf_spin_lock_bh(&(soc->ast_lock));
|
|
||||||
ast_entry = dp_peer_ast_hash_find_by_pdevid
|
|
||||||
(soc,
|
|
||||||
(uint8_t *)(eh->ether_shost),
|
|
||||||
vdev->pdev->pdev_id);
|
|
||||||
|
|
||||||
if (ast_entry)
|
|
||||||
sa_peer = ast_entry->peer;
|
|
||||||
|
|
||||||
qdf_spin_unlock_bh(&(soc->ast_lock));
|
|
||||||
|
|
||||||
TAILQ_FOREACH(peer, &vdev->peer_list, peer_list_elem) {
|
|
||||||
if ((peer->peer_ids[0] != HTT_INVALID_PEER) &&
|
|
||||||
(peer->nawds_enabled)) {
|
|
||||||
if (sa_peer == peer) {
|
|
||||||
QDF_TRACE(QDF_MODULE_ID_DP,
|
|
||||||
QDF_TRACE_LEVEL_DEBUG,
|
|
||||||
" %s: broadcast multicast packet",
|
|
||||||
__func__);
|
|
||||||
DP_STATS_INC(peer, tx.nawds_mcast_drop, 1);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
nbuf_copy = qdf_nbuf_copy(nbuf);
|
|
||||||
if (!nbuf_copy) {
|
|
||||||
QDF_TRACE(QDF_MODULE_ID_DP,
|
|
||||||
QDF_TRACE_LEVEL_ERROR,
|
|
||||||
"nbuf copy failed");
|
|
||||||
}
|
|
||||||
|
|
||||||
peer_id = peer->peer_ids[0];
|
|
||||||
nbuf_copy = dp_tx_send_msdu_single(vdev, nbuf_copy,
|
|
||||||
msdu_info, peer_id, NULL);
|
|
||||||
if (nbuf_copy) {
|
|
||||||
qdf_nbuf_free(nbuf_copy);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
DP_STATS_INC_PKT(peer, tx.nawds_mcast,
|
|
||||||
1, qdf_nbuf_len(nbuf));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (peer_id == HTT_INVALID_PEER)
|
|
||||||
return nbuf;
|
|
||||||
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_check_exc_metadata() - Checks if parameters are valid
|
* dp_check_exc_metadata() - Checks if parameters are valid
|
||||||
* @tx_exc - holds all exception path parameters
|
* @tx_exc - holds all exception path parameters
|
||||||
|
@@ -32,9 +32,6 @@
|
|||||||
#include <cdp_txrx_cmn.h>
|
#include <cdp_txrx_cmn.h>
|
||||||
#ifdef CONFIG_MCL
|
#ifdef CONFIG_MCL
|
||||||
#include <cds_ieee80211_common.h>
|
#include <cds_ieee80211_common.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONFIG_WIN
|
|
||||||
#include <wdi_event_api.h> /* WDI subscriber event list */
|
#include <wdi_event_api.h> /* WDI subscriber event list */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -1910,7 +1907,6 @@ struct dp_peer {
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef CONFIG_WIN
|
|
||||||
/*
|
/*
|
||||||
* dp_invalid_peer_msg
|
* dp_invalid_peer_msg
|
||||||
* @nbuf: data buffer
|
* @nbuf: data buffer
|
||||||
@@ -1922,7 +1918,6 @@ struct dp_invalid_peer_msg {
|
|||||||
struct ieee80211_frame *wh;
|
struct ieee80211_frame *wh;
|
||||||
uint8_t vdev_id;
|
uint8_t vdev_id;
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* dp_tx_me_buf_t: ME buffer
|
* dp_tx_me_buf_t: ME buffer
|
||||||
|
Reference in New Issue
Block a user