qcacmn: keep objmgr_peer alive until txrx peer is freed

Make sure the objmgr_peer is not deleted before
dp peer is deleted, which will avoid the access
of already freed objmgr_peer for connected sta peers.

Change-Id: Ib931dcd0c5650fea5284e9dd53dae9e41f662c56
CRs-Fixed: 2359645
This commit is contained in:
Pavankumar Nandeshwar
2018-12-20 18:57:12 +05:30
committed by nshrivas
parent a06e8c8bfb
commit 2702aeeb0a
3 changed files with 18 additions and 5 deletions

View File

@@ -852,7 +852,8 @@ struct ol_if_ops {
uint8_t vdev_id, uint8_t *peer_macaddr,
uint32_t tid_mask);
int (*peer_unref_delete)(void *scn_handle, uint8_t *peer_mac,
uint8_t *vdev_mac, enum wlan_op_mode opmode);
uint8_t *vdev_mac, enum wlan_op_mode opmode,
void *old_peer, void *new_peer);
bool (*is_hw_dbs_2x2_capable)(struct wlan_objmgr_psoc *psoc);
int (*peer_add_wds_entry)(void *vdev_handle,
struct cdp_peer *peer_handle,