From 38152c94c4f303d73f0e96221cbc11861e5e17da Mon Sep 17 00:00:00 2001 From: Krunal Soni Date: Fri, 6 Jan 2017 11:05:43 -0800 Subject: [PATCH] qcacld-3.0: Release pre-cac adapter's mac addr once cac finishes As per the design pre-cac adapter will be assigned temporary mac address till it finishes the CAC operation. Once the cac operation finishes with success or failure, pre-cac adapter's mac address needs to be released. In failure case, pre-cac adapter's mac address is getting released but in success case, it is not released which results in to error code -22 at upper layer. CRs-Fixed: 1108497 Change-Id: I95da8b20392548fa3482cb92046f79b3536709b0 --- core/hdd/src/wlan_hdd_hostapd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index 860a769f2b..d93debdbaa 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -939,6 +939,8 @@ static void wlan_hdd_sap_pre_cac_success(void *data) } cds_ssr_protect(__func__); + wlan_hdd_release_intf_addr(hdd_ctx, + pHostapdAdapter->macAddressCurrent.bytes); hdd_stop_adapter(hdd_ctx, pHostapdAdapter, true); hdd_close_adapter(hdd_ctx, pHostapdAdapter, false); cds_ssr_unprotect(__func__);