mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
qcacmn: DP peer functions code cleanup
Remove pre processor directives for platform specific dp peer functions and have stubs for them. Change-Id: Ibdb9114918bbec86cc4be411f730da5777204226 CRs-Fixed: 2262603
This commit is contained in:
parent
45b7264097
commit
f1e0766647
2 changed files with 15 additions and 9 deletions
|
|
@ -367,6 +367,20 @@ void dp_local_peer_id_free(struct dp_pdev *pdev, struct dp_peer *peer);
|
|||
qdf_time_t *dp_get_last_assoc_received(void *peer_handle);
|
||||
qdf_time_t *dp_get_last_disassoc_received(void *peer_handle);
|
||||
qdf_time_t *dp_get_last_deauth_received(void *peer_handle);
|
||||
#else
|
||||
static inline void dp_local_peer_id_pool_init(struct dp_pdev *pdev)
|
||||
{
|
||||
}
|
||||
|
||||
static inline
|
||||
void dp_local_peer_id_alloc(struct dp_pdev *pdev, struct dp_peer *peer)
|
||||
{
|
||||
}
|
||||
|
||||
static inline
|
||||
void dp_local_peer_id_free(struct dp_pdev *pdev, struct dp_peer *peer)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
extern int dp_addba_requestprocess_wifi3(void *peer_handle,
|
||||
uint8_t dialogtoken, uint16_t tid, uint16_t batimeout,
|
||||
|
|
|
|||
|
|
@ -2758,10 +2758,8 @@ static struct cdp_pdev *dp_pdev_attach_wifi3(struct cdp_soc_t *txrx_soc,
|
|||
pdev->mo_ctrl_filter = FILTER_CTRL_ALL;
|
||||
pdev->mo_data_filter = FILTER_DATA_ALL;
|
||||
|
||||
#ifndef CONFIG_WIN
|
||||
/* MCL */
|
||||
dp_local_peer_id_pool_init(pdev);
|
||||
#endif
|
||||
|
||||
dp_dscp_tid_map_setup(pdev);
|
||||
|
||||
/* Rx monitor mode specific init */
|
||||
|
|
@ -3577,9 +3575,7 @@ static void *dp_peer_create_wifi3(struct cdp_vdev *vdev_handle,
|
|||
vdev->vdev_id, peer->mac_addr.raw);
|
||||
}
|
||||
|
||||
#ifndef CONFIG_WIN
|
||||
dp_local_peer_id_alloc(pdev, peer);
|
||||
#endif
|
||||
DP_STATS_INIT(peer);
|
||||
return (void *)peer;
|
||||
} else {
|
||||
|
|
@ -3660,9 +3656,7 @@ static void *dp_peer_create_wifi3(struct cdp_vdev *vdev_handle,
|
|||
}
|
||||
|
||||
|
||||
#ifndef CONFIG_WIN
|
||||
dp_local_peer_id_alloc(pdev, peer);
|
||||
#endif
|
||||
DP_STATS_INIT(peer);
|
||||
peer->ol_peer = ol_peer;
|
||||
return (void *)peer;
|
||||
|
|
@ -4297,9 +4291,7 @@ static void dp_peer_delete_wifi3(void *peer_handle, uint32_t bitmap)
|
|||
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_INFO_HIGH,
|
||||
FL("peer %pK (%pM)"), peer, peer->mac_addr.raw);
|
||||
|
||||
#ifndef CONFIG_WIN
|
||||
dp_local_peer_id_free(peer->vdev->pdev, peer);
|
||||
#endif
|
||||
qdf_spinlock_destroy(&peer->peer_info_lock);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue