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
diff --git a/core/hdd/src/wlan_hdd_softap_tx_rx.c b/core/hdd/src/wlan_hdd_softap_tx_rx.c
index a36504c..6688471 100644
--- a/core/hdd/src/wlan_hdd_softap_tx_rx.c
+++ b/core/hdd/src/wlan_hdd_softap_tx_rx.c
@@ -530,9 +530,15 @@
  */
 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;
 }
 
 /**