Browse Source

qcacld-3.0: Deregister TX function hook from HDD

Reset the transmit callback registered with HDD when hostapd is
deregistered.

CRs-Fixed: 2008710
Change-Id: I6a5fe49c07573cfb28af412a08708a7a465b2c2a
Dhanashri Atre 8 years ago
parent
commit
ed3bf51415
1 changed files with 8 additions and 2 deletions
  1. 8 2
      core/hdd/src/wlan_hdd_softap_tx_rx.c

+ 8 - 2
core/hdd/src/wlan_hdd_softap_tx_rx.c

@@ -530,9 +530,15 @@ QDF_STATUS hdd_softap_init_tx_rx(hdd_adapter_t *pAdapter)
  */
  */
 QDF_STATUS hdd_softap_deinit_tx_rx(hdd_adapter_t *pAdapter)
 QDF_STATUS hdd_softap_deinit_tx_rx(hdd_adapter_t *pAdapter)
 {
 {
-	QDF_STATUS status = QDF_STATUS_SUCCESS;
+	if (pAdapter == NULL) {
+		hdd_err("Called with pAdapter = NULL.");
+		return QDF_STATUS_E_FAILURE;
+	}
 
 
-	return status;
+	pAdapter->txrx_vdev = NULL;
+	pAdapter->tx_fn = NULL;
+	hdd_info("Deregistering TX function hook !");
+	return QDF_STATUS_SUCCESS;
 }
 }
 
 
 /**
 /**