Browse Source

qcacld-3.0: Update NDI close indication from ndi del resp handler

To close NAN data interface session, BSS stop request is sent to
firmware, as a response driver gets status and reason code for BSS
stop. To update NDI close session to user space, required information
is available in BSS stop response.

Hence, update NDI close indication to user space from ndi delete
response handler in HDD layer.

Change-Id: I2440cb6d15bd393ed9631d595634865fbee8bdd6
CRs-Fixed: 2600852
Abhishek Ambure 5 năm trước cách đây
mục cha
commit
650f992fd2
2 tập tin đã thay đổi với 7 bổ sung10 xóa
  1. 0 10
      core/hdd/src/wlan_hdd_main.c
  2. 7 0
      core/hdd/src/wlan_hdd_nan_datapath.c

+ 0 - 10
core/hdd/src/wlan_hdd_main.c

@@ -4539,13 +4539,6 @@ QDF_STATUS hdd_sme_close_session_callback(uint8_t vdev_id)
 		return QDF_STATUS_NOT_INITIALIZED;
 	}
 
-	/*
-	 * For NAN Data interface, the close session results in the final
-	 * indication to the userspace
-	 */
-	if (adapter->device_mode == QDF_NDI_MODE)
-		hdd_ndp_session_end_handler(adapter);
-
 	clear_bit(SME_SESSION_OPENED, &adapter->event_flags);
 
 	/*
@@ -4650,9 +4643,6 @@ int hdd_vdev_destroy(struct hdd_adapter *adapter)
 	if (rc) {
 		clear_bit(SME_SESSION_OPENED, &adapter->event_flags);
 
-		if (adapter->device_mode == QDF_NDI_MODE)
-			hdd_ndp_session_end_handler(adapter);
-
 		if (status == QDF_STATUS_E_TIMEOUT) {
 			hdd_err("timed out waiting for sme vdev delete");
 			sme_cleanup_session(hdd_ctx->mac_handle, vdev_id);

+ 7 - 0
core/hdd/src/wlan_hdd_nan_datapath.c

@@ -797,6 +797,13 @@ void hdd_ndi_drv_ndi_delete_rsp_handler(uint8_t vdev_id)
 				     WLAN_STOP_ALL_NETIF_QUEUE_N_CARRIER,
 				     WLAN_CONTROL_PATH);
 
+	/*
+	 * For NAN Data interface, the close session results in the final
+	 * indication to the userspace
+	 */
+	if (adapter->device_mode == QDF_NDI_MODE)
+		hdd_ndp_session_end_handler(adapter);
+
 	complete(&adapter->disconnect_comp_var);
 }