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
This commit is contained in:
Krunal Soni
2017-01-06 11:05:43 -08:00
committed by qcabuildsw
parent cf1f1384a8
commit 38152c94c4

View File

@@ -939,6 +939,8 @@ static void wlan_hdd_sap_pre_cac_success(void *data)
} }
cds_ssr_protect(__func__); cds_ssr_protect(__func__);
wlan_hdd_release_intf_addr(hdd_ctx,
pHostapdAdapter->macAddressCurrent.bytes);
hdd_stop_adapter(hdd_ctx, pHostapdAdapter, true); hdd_stop_adapter(hdd_ctx, pHostapdAdapter, true);
hdd_close_adapter(hdd_ctx, pHostapdAdapter, false); hdd_close_adapter(hdd_ctx, pHostapdAdapter, false);
cds_ssr_unprotect(__func__); cds_ssr_unprotect(__func__);