qcacmn: Extending TDLS Peer ops and pause/unpause APIs

Changes are done to extend vdev based pause/unpause to
peer based pauses/unpause. Added changes to mark peer
as tdls peer and supports TDLS offchan operations which
will be used to pause/unpause the peer queues based on
pause type coming with pause event from FW.

Change-Id: I3976501c318ae5a295e71ed2265db04496974c7a
CRs-Fixed: 2508209
This commit is contained in:
nakul kachhwaha
2019-10-24 17:46:02 +05:30
committed by nshrivas
parent 215263ece0
commit f9ae9360f9
3 changed files with 55 additions and 6 deletions

View File

@@ -1157,6 +1157,8 @@ struct cdp_peer_ops {
void (*update_last_real_peer)(struct cdp_pdev *pdev, void *vdev,
uint8_t *peer_id, bool restore_last_peer);
void (*peer_detach_force_delete)(void *peer);
void (*set_tdls_offchan_enabled)(void *peer, bool val);
void (*set_peer_as_tdls_peer)(void *peer, bool val);
};
/**
@@ -1281,8 +1283,10 @@ struct cdp_lflowctl_ops {
unsigned int high_watermark_offset);
int (*ll_set_tx_pause_q_depth)(uint8_t vdev_id, int pause_q_depth);
void (*vdev_flush)(struct cdp_vdev *vdev);
void (*vdev_pause)(struct cdp_vdev *vdev, uint32_t reason);
void (*vdev_unpause)(struct cdp_vdev *vdev, uint32_t reason);
void (*vdev_pause)(struct cdp_vdev *vdev, uint32_t reason,
uint32_t pause_type);
void (*vdev_unpause)(struct cdp_vdev *vdev, uint32_t reason,
uint32_t pause_type);
};
/**