qcacmn: Cleanup duplicate STA inactivity detection
Move the station inactivity detection code from datapath to SON layer. Change-Id: Ia071a19ce2fd36b46a8b0bf4362077609e8b98f9 CRs-Fixed: 2326638
This commit is contained in:

committed by
nshrivas

parent
3871ce8c90
commit
9e0e1667d4
@@ -25,23 +25,6 @@
|
||||
|
||||
#if QCA_SUPPORT_SON
|
||||
|
||||
bool son_ol_is_peer_inact(struct wlan_objmgr_peer *peer)
|
||||
{
|
||||
struct wlan_objmgr_vdev *vdev;
|
||||
struct wlan_objmgr_psoc *psoc;
|
||||
|
||||
vdev = wlan_peer_get_vdev(peer);
|
||||
if (!vdev)
|
||||
return false;
|
||||
|
||||
psoc = wlan_vdev_get_psoc(vdev);
|
||||
if (!psoc)
|
||||
return false;
|
||||
|
||||
return cdp_peer_is_inact(wlan_psoc_get_dp_handle(psoc),
|
||||
(void *)(wlan_peer_get_dp_handle(peer)));
|
||||
}
|
||||
|
||||
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);
|
||||
@@ -50,42 +33,7 @@ u_int32_t son_ol_get_peer_rate(struct wlan_objmgr_peer *peer, u_int8_t type)
|
||||
|
||||
bool son_ol_enable(struct wlan_objmgr_pdev *pdev, bool enable)
|
||||
{
|
||||
struct wlan_objmgr_psoc *psoc;
|
||||
|
||||
psoc = wlan_pdev_get_psoc(pdev);
|
||||
if (!psoc)
|
||||
return false;
|
||||
|
||||
return cdp_start_inact_timer(wlan_psoc_get_dp_handle(psoc),
|
||||
(void *)(wlan_pdev_get_dp_handle(pdev)),
|
||||
enable);
|
||||
}
|
||||
|
||||
/* Function pointer to set overload status */
|
||||
void son_ol_set_overload(struct wlan_objmgr_pdev *pdev, bool overload)
|
||||
{
|
||||
struct wlan_objmgr_psoc *psoc;
|
||||
|
||||
psoc = wlan_pdev_get_psoc(pdev);
|
||||
|
||||
return cdp_set_overload(wlan_psoc_get_dp_handle(psoc),
|
||||
(void *)(wlan_pdev_get_dp_handle(pdev)),
|
||||
overload);
|
||||
}
|
||||
/* Function pointer to set band steering parameters */
|
||||
bool son_ol_set_params(struct wlan_objmgr_pdev *pdev,
|
||||
u_int32_t inactivity_check_period,
|
||||
u_int32_t inactivity_threshold_normal,
|
||||
u_int32_t inactivity_threshold_overload)
|
||||
{
|
||||
struct wlan_objmgr_psoc *psoc;
|
||||
|
||||
psoc = wlan_pdev_get_psoc(pdev);
|
||||
return cdp_set_inact_params(wlan_psoc_get_dp_handle(psoc),
|
||||
(void *)wlan_pdev_get_dp_handle(pdev),
|
||||
inactivity_check_period,
|
||||
inactivity_threshold_normal,
|
||||
inactivity_threshold_overload);
|
||||
return true;
|
||||
}
|
||||
|
||||
int8_t son_ol_sanitize_util_invtl(struct wlan_objmgr_pdev *pdev,
|
||||
@@ -142,8 +90,6 @@ 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.set_overload = son_ol_set_overload;
|
||||
tx_ops->son_tx_ops.set_params = son_ol_set_params;
|
||||
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;
|
||||
@@ -151,7 +97,6 @@ void target_if_son_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops)
|
||||
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;
|
||||
tx_ops->son_tx_ops.son_node_isinact = son_ol_is_peer_inact;
|
||||
return;
|
||||
}
|
||||
#else
|
||||
@@ -179,27 +124,6 @@ bool son_ol_enable(struct wlan_objmgr_pdev *pdev, bool enable)
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* Function pointer to set overload status */
|
||||
|
||||
void son_ol_set_overload(struct wlan_objmgr_pdev *pdev, bool overload)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/* Function pointer to set band steering parameters */
|
||||
|
||||
bool son_ol_set_params(struct wlan_objmgr_pdev *dev,
|
||||
u_int32_t inactivity_check_period,
|
||||
u_int32_t inactivity_threshold_normal,
|
||||
u_int32_t inactivity_threshold_overload)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
QDF_STATUS son_ol_send_null(struct wlan_objmgr_pdev *pdev,
|
||||
u_int8_t *macaddr,
|
||||
struct wlan_objmgr_vdev *vdev)
|
||||
@@ -239,8 +163,4 @@ void son_ol_rx_rate_update(struct wlan_objmgr_pdev *pdev, u_int8_t *macaddres,
|
||||
return;
|
||||
}
|
||||
|
||||
bool son_ol_is_peer_inact(struct wlan_objmgr_peer *peer)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user