From 0ee5697aebfe0f32387047558bb06b15881089bd Mon Sep 17 00:00:00 2001 From: Sourav Mohapatra Date: Fri, 17 Apr 2020 10:14:11 +0530 Subject: [PATCH] qcacld-3.0: Rectify mac address validation check In function hdd_dis_connect_handler, before calling ucfg_ipa_wlan_evt, the driver validates the mac address being passed. Currently this validation is not done properly and valid mac address are marked as invalid. Replace the incorrect validation API with the correct one. Change-Id: Ia6bee986089bc0f0defe94ede1d093210bc47034 CRs-Fixed: 2664190 --- core/hdd/src/wlan_hdd_assoc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c index 44b5f86a5fd8..1f00d396259c 100644 --- a/core/hdd/src/wlan_hdd_assoc.c +++ b/core/hdd/src/wlan_hdd_assoc.c @@ -1827,7 +1827,8 @@ static QDF_STATUS hdd_dis_connect_handler(struct hdd_adapter *adapter, WLAN_CONTROL_PATH); if (ucfg_ipa_is_enabled() && - (hdd_is_valid_mac_address(sta_ctx->conn_info.bssid.bytes))) + QDF_IS_STATUS_SUCCESS(wlan_hdd_validate_mac_address( + &sta_ctx->conn_info.bssid))) ucfg_ipa_wlan_evt(hdd_ctx->pdev, adapter->dev, adapter->device_mode, adapter->vdev_id,