Эх сурвалжийг харах

qcacld-3.0: Remove unused hdd_cm_is_disconnecting() API

Remove unused hdd_cm_is_disconnecting() API from the driver.

Change-Id: I436c83499a78cd2077f5cba786edb5bb5799bfb5
CRs-Fixed: 3294911
Deeksha Gupta 2 жил өмнө
parent
commit
ecb2f11325

+ 0 - 8
core/hdd/src/wlan_hdd_cm_api.h

@@ -331,14 +331,6 @@ bool hdd_cm_is_connecting(struct hdd_adapter *adapter);
  */
 bool hdd_cm_is_disconnected(struct hdd_adapter *adapter);
 
-/**
- * hdd_cm_is_disconnecting() - Function to check disconnection in progress
- * @adapter: pointer to the adapter structure
- *
- * Return: true if disconnecting, false otherwise
- */
-bool hdd_cm_is_disconnecting(struct hdd_adapter *adapter);
-
 /**
  * hdd_cm_is_vdev_roaming() - Function to check roaming in progress
  * @adapter: pointer to the adapter structure

+ 0 - 23
core/hdd/src/wlan_hdd_cm_connect.c

@@ -154,29 +154,6 @@ bool hdd_cm_is_disconnected(struct hdd_adapter *adapter)
 	return is_vdev_disconnected;
 }
 
-bool hdd_cm_is_disconnecting(struct hdd_adapter *adapter)
-{
-	struct wlan_objmgr_vdev *vdev;
-	bool is_vdev_disconnecting;
-	enum QDF_OPMODE opmode;
-
-	vdev = hdd_objmgr_get_vdev_by_user(adapter, WLAN_OSIF_CM_ID);
-
-	if (!vdev)
-		return false;
-
-	opmode = wlan_vdev_mlme_get_opmode(vdev);
-	if (opmode != QDF_STA_MODE && opmode != QDF_P2P_CLIENT_MODE) {
-		hdd_objmgr_put_vdev_by_user(vdev, WLAN_OSIF_CM_ID);
-		return false;
-	}
-	is_vdev_disconnecting = ucfg_cm_is_vdev_disconnecting(vdev);
-
-	hdd_objmgr_put_vdev_by_user(vdev, WLAN_OSIF_CM_ID);
-
-	return is_vdev_disconnecting;
-}
-
 bool hdd_cm_is_vdev_roaming(struct hdd_adapter *adapter)
 {
 	struct wlan_objmgr_vdev *vdev;