From 3d8690cf1429c0754df3be7f65bb6f5efa8920e7 Mon Sep 17 00:00:00 2001 From: "Masti, Narayanraddi" Date: Mon, 2 Nov 2015 11:13:42 +0530 Subject: [PATCH] qcacld-3.0: Fix memory leak in tx flow control timer qcacld-2.0 to qcacld-3.0 propagation TX flow control timer initialized when STATION interface is created. During IBSS startup, STATION interface is changed to ADHOC type. TX flow control timer is not required, so close tx flow control and destroy timer. Change-Id: Id9c440638964fb3ab0e95d8a7c747708886a94ff CRs-Fixed: 882821 --- core/hdd/src/wlan_hdd_cfg80211.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 97b3fef55d41..b392482b3900 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -5540,6 +5540,7 @@ static int __wlan_hdd_cfg80211_change_iface(struct wiphy *wiphy, case NL80211_IFTYPE_ADHOC: wlan_hdd_tdls_exit(pAdapter); + hdd_deregister_tx_flow_control(pAdapter); hddLog(LOG1, FL("Setting interface Type to ADHOC")); wlan_hdd_change_iface_to_adhoc(ndev, pRoamProfile, type);