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
This commit is contained in:
Zhang Qian 2018-02-05 13:40:16 +08:00 committed by snandini
parent 4cf57e4458
commit 79d0d13265

View File

@ -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;