소스 검색

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
Krunal Soni 8 년 전
부모
커밋
38152c94c4
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      core/hdd/src/wlan_hdd_hostapd.c

+ 2 - 0
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__);