|
@@ -222,6 +222,32 @@ void dp_soc_wds_detach(struct dp_soc *soc)
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
+#ifdef QCA_SUPPORT_WDS_EXTENDED
|
|
|
+bool dp_peer_check_wds_ext_peer(struct dp_peer *peer)
|
|
|
+{
|
|
|
+ struct dp_vdev *vdev = peer->vdev;
|
|
|
+ struct dp_txrx_peer *txrx_peer;
|
|
|
+
|
|
|
+ if (!vdev->wds_ext_enabled)
|
|
|
+ return false;
|
|
|
+
|
|
|
+ txrx_peer = dp_get_txrx_peer(peer);
|
|
|
+ if (!txrx_peer)
|
|
|
+ return false;
|
|
|
+
|
|
|
+ if (qdf_atomic_test_bit(WDS_EXT_PEER_INIT_BIT,
|
|
|
+ &txrx_peer->wds_ext.init))
|
|
|
+ return true;
|
|
|
+
|
|
|
+ return false;
|
|
|
+}
|
|
|
+#else
|
|
|
+bool dp_peer_check_wds_ext_peer(struct dp_peer *peer)
|
|
|
+{
|
|
|
+ return false;
|
|
|
+}
|
|
|
+#endif
|
|
|
+
|
|
|
#ifdef REO_QDESC_HISTORY
|
|
|
static inline void
|
|
|
dp_rx_reo_qdesc_history_add(struct reo_desc_list_node *free_desc,
|
|
@@ -5792,22 +5818,6 @@ bool dp_find_peer_exist_on_other_vdev(struct cdp_soc_t *soc_hdl,
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
-bool dp_find_peer_exist(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
|
|
|
- uint8_t *peer_addr)
|
|
|
-{
|
|
|
- struct dp_soc *soc = cdp_soc_t_to_dp_soc(soc_hdl);
|
|
|
- struct dp_peer *peer = NULL;
|
|
|
-
|
|
|
- peer = dp_peer_find_hash_find(soc, peer_addr, 0, DP_VDEV_ALL,
|
|
|
- DP_MOD_ID_CDP);
|
|
|
- if (peer) {
|
|
|
- dp_peer_unref_delete(peer, DP_MOD_ID_CDP);
|
|
|
- return true;
|
|
|
- }
|
|
|
-
|
|
|
- return false;
|
|
|
-}
|
|
|
-
|
|
|
void dp_set_peer_as_tdls_peer(struct cdp_soc_t *soc_hdl, uint8_t vdev_id,
|
|
|
uint8_t *peer_mac, bool val)
|
|
|
{
|
|
@@ -5830,6 +5840,22 @@ void dp_set_peer_as_tdls_peer(struct cdp_soc_t *soc_hdl, uint8_t vdev_id,
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
+bool dp_find_peer_exist(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
|
|
|
+ uint8_t *peer_addr)
|
|
|
+{
|
|
|
+ struct dp_soc *soc = cdp_soc_t_to_dp_soc(soc_hdl);
|
|
|
+ struct dp_peer *peer = NULL;
|
|
|
+
|
|
|
+ peer = dp_peer_find_hash_find(soc, peer_addr, 0, DP_VDEV_ALL,
|
|
|
+ DP_MOD_ID_CDP);
|
|
|
+ if (peer) {
|
|
|
+ dp_peer_unref_delete(peer, DP_MOD_ID_CDP);
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ return false;
|
|
|
+}
|
|
|
+
|
|
|
#ifdef IPA_OFFLOAD
|
|
|
int dp_peer_get_rxtid_stats_ipa(struct dp_peer *peer,
|
|
|
dp_rxtid_stats_cmd_cb dp_stats_cmd_cb)
|