qcacmn: WLAN SON related functions cleanup
Code clean up and removal of WLAN SON related functions which were unused. Change-Id: Icb4fddc9ca9dee8735e91f6772d9978b69a01726 CRs-Fixed: 2703210
This commit is contained in:

committed by
nshrivas

parent
96a1be4fcb
commit
53ffdd36b9
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017-2019 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2017-2020 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
@@ -30,19 +30,6 @@ u_int32_t son_ol_get_peer_rate(struct wlan_objmgr_peer *peer, u_int8_t type)
|
||||
return ol_if_peer_get_rate(peer, type);
|
||||
}
|
||||
|
||||
|
||||
bool son_ol_enable(struct wlan_objmgr_pdev *pdev, bool enable)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
int8_t son_ol_sanitize_util_invtl(struct wlan_objmgr_pdev *pdev,
|
||||
u_int32_t *sample_period,
|
||||
u_int32_t *num_of_sample)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
QDF_STATUS son_ol_send_null(struct wlan_objmgr_pdev *pdev,
|
||||
u_int8_t *macaddr,
|
||||
struct wlan_objmgr_vdev *vdev)
|
||||
@@ -65,66 +52,24 @@ QDF_STATUS son_ol_send_null(struct wlan_objmgr_pdev *pdev,
|
||||
return wmi_unified_stats_request_send(wmi_handle, macaddr, ¶m);
|
||||
}
|
||||
|
||||
int son_ol_lmac_create(struct wlan_objmgr_pdev *pdev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int son_ol_lmac_destroy(struct wlan_objmgr_pdev *pdev)
|
||||
{
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
void son_ol_rx_rssi_update(struct wlan_objmgr_pdev *pdev, u_int8_t *macaddres,
|
||||
u_int8_t status, int8_t rssi, u_int8_t subtype)
|
||||
{
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
void son_ol_rx_rate_update(struct wlan_objmgr_pdev *pdev, u_int8_t *macaddres,
|
||||
u_int8_t status, u_int32_t rateKbps)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
void target_if_son_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops)
|
||||
{
|
||||
/* wlan son related function handler */
|
||||
tx_ops->son_tx_ops.son_enable = son_ol_enable;
|
||||
tx_ops->son_tx_ops.lmac_create = son_ol_lmac_create;
|
||||
tx_ops->son_tx_ops.lmac_destroy = son_ol_lmac_destroy;
|
||||
tx_ops->son_tx_ops.son_send_null = son_ol_send_null;
|
||||
tx_ops->son_tx_ops.son_rssi_update = son_ol_rx_rssi_update;
|
||||
tx_ops->son_tx_ops.son_rate_update = son_ol_rx_rate_update;
|
||||
tx_ops->son_tx_ops.son_sanity_util_intvl = son_ol_sanitize_util_invtl;
|
||||
tx_ops->son_tx_ops.get_peer_rate = son_ol_get_peer_rate;
|
||||
return;
|
||||
}
|
||||
#else
|
||||
void target_if_son_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops)
|
||||
{
|
||||
return;
|
||||
}
|
||||
int8_t son_ol_sanitize_util_intvl(struct wlan_objmgr_pdev *pdev,
|
||||
u_int32_t *sample_period,
|
||||
u_int32_t *num_of_sample)
|
||||
{
|
||||
return -EINVAL;
|
||||
|
||||
}
|
||||
#else
|
||||
|
||||
u_int32_t son_ol_get_peer_rate(struct wlan_objmgr_peer *peer, u_int8_t type)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
bool son_ol_enable(struct wlan_objmgr_pdev *pdev, bool enable)
|
||||
void target_if_son_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops)
|
||||
{
|
||||
return -EINVAL;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
QDF_STATUS son_ol_send_null(struct wlan_objmgr_pdev *pdev,
|
||||
@@ -133,37 +78,5 @@ QDF_STATUS son_ol_send_null(struct wlan_objmgr_pdev *pdev,
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
int8_t son_ol_sanitize_util_invtl(struct wlan_objmgr_pdev *pdev,
|
||||
u_int32_t *sample_period,
|
||||
u_int32_t *num_of_sample)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int son_ol_lmac_create(struct wlan_objmgr_pdev *pdev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int son_ol_lmac_destroy(struct wlan_objmgr_pdev *pdev)
|
||||
{
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
|
||||
void son_ol_rx_rssi_update(struct wlan_objmgr_pdev *pdev, u_int8_t *macaddres,
|
||||
u_int8_t status, int8_t rssi, u_int8_t subtype)
|
||||
{
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
void son_ol_rx_rate_update(struct wlan_objmgr_pdev *pdev, u_int8_t *macaddres,
|
||||
u_int8_t status, u_int32_t rateKbps)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user