Ver Fonte

qcacmn: Provide new objmgr API

Provide objmgr API to reset os private object of vdev, during
vap deletion.

Change-Id: I52c6b7905f0bb9ef109390d649f2f59ba3c8d849
CRs-Fixed: 2019136
Soumya Bhat há 8 anos atrás
pai
commit
40b91b83fa
1 ficheiros alterados com 16 adições e 0 exclusões
  1. 16 0
      umac/cmn_services/obj_mgr/inc/wlan_objmgr_vdev_obj.h

+ 16 - 0
umac/cmn_services/obj_mgr/inc/wlan_objmgr_vdev_obj.h

@@ -1377,6 +1377,22 @@ static inline struct vdev_osif_priv *wlan_vdev_get_ospriv(
 	return vdev->vdev_nif.osdev;
 }
 
+/**
+ * wlan_vdev_reset_ospriv() - reset os priv pointer
+ * @vdev: VDEV object
+ *
+ * API to reset OS private pointer in VDEV
+ *
+ * Caller need to acquire lock with wlan_vdev_obj_lock()
+ *
+ * Return: void
+ */
+static inline void wlan_vdev_reset_ospriv(struct wlan_objmgr_vdev *vdev)
+{
+	/* This API is invoked with lock acquired, do not add log prints */
+	vdev->vdev_nif.osdev = NULL;
+}
+
 /**
  * wlan_vdev_get_peer_count() - get vdev peer count
  * @vdev: VDEV object