Browse Source

qcacld-3.0: Release OCB resources when stop adapter

Currently, driver does not release resources acquired when
starting OCB adapter. So there is memory leak when stopping
OCB adapter.

CRs-Fixed: 2182236
Change-Id: I693f5ed86f55b00980f16cca1bb0567429a20385
Zhang Qian 7 years ago
parent
commit
79d0d13265
1 changed files with 2 additions and 0 deletions
  1. 2 0
      core/hdd/src/wlan_hdd_main.c

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

@@ -4915,6 +4915,8 @@ QDF_STATUS hdd_stop_adapter(struct hdd_context *hdd_ctx,
 		cdp_clear_peer(cds_get_context(QDF_MODULE_ID_SOC),
 			(struct cdp_pdev *)cds_get_context(QDF_MODULE_ID_TXRX),
 			WLAN_HDD_GET_STATION_CTX_PTR(adapter)->conn_info.staId[0]);
+		hdd_deregister_tx_flow_control(adapter);
+		hdd_vdev_destroy(adapter);
 		break;
 	default:
 		break;