From 1c2caa3b11cd7147b4571d8bdac1d13fb13a2e65 Mon Sep 17 00:00:00 2001 From: Yuanyuan Liu Date: Mon, 7 Nov 2016 17:13:48 -0800 Subject: [PATCH] qcacld-3.0: QDF_ASSERT only when HDD fail to update mac to FW Do assert only when HDD fail to update mac to FW. CRs-Fixed: 1086914 Change-Id: I8744a08790328f0d2f5e800a3ea597ca6a54bc49 --- core/hdd/src/wlan_hdd_main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 077be9a5343a..5fea4a537004 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -7361,12 +7361,12 @@ static void hdd_initialize_mac_address(hdd_context_t *hdd_ctx) hdd_warn("can't update mac config via wlan_mac.bin, using MAC from ini file or auto-gen"); - if (hdd_ctx->update_mac_addr_to_fw) + if (hdd_ctx->update_mac_addr_to_fw) { ret = hdd_update_mac_addr_to_fw(hdd_ctx); - - if (ret != 0) { - hdd_err("MAC address out-of-sync, ret:%d", ret); - QDF_ASSERT(ret); + if (ret != 0) { + hdd_err("MAC address out-of-sync, ret:%d", ret); + QDF_ASSERT(ret); + } } }