diff options
| author | Krunal Soni <ksoni@codeaurora.org> | 2017-01-06 11:05:43 -0800 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2017-01-08 20:28:26 -0800 |
| commit | a0aca3f01e4c40569c994173ed17a0bf60a239ec (patch) | |
| tree | ca9fc529151be7c5798ebe06cd3c5fb50e0c9902 | |
| parent | d07cf990d98f8e41266af241cfccdfe7c4bcd2c1 (diff) | |
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
| -rw-r--r-- | core/hdd/src/wlan_hdd_hostapd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index bd97e3e64397..d92089ac17e0 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -943,6 +943,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__); |
