|
@@ -2456,12 +2456,10 @@ int hdd_update_tgt_cfg(hdd_handle_t hdd_handle, struct wma_tgt_cfg *cfg)
|
|
|
}
|
|
|
|
|
|
/* This can be extended to other configurations like ht, vht cap... */
|
|
|
-
|
|
|
- if (!qdf_is_macaddr_zero(&cfg->hw_macaddr))
|
|
|
+ status = wlan_hdd_validate_mac_address(&cfg->hw_macaddr);
|
|
|
+ if (QDF_IS_STATUS_SUCCESS(status))
|
|
|
qdf_mem_copy(&hdd_ctx->hw_macaddr, &cfg->hw_macaddr,
|
|
|
QDF_MAC_ADDR_SIZE);
|
|
|
- else
|
|
|
- hdd_info("hw_mac is zero");
|
|
|
|
|
|
hdd_ctx->target_fw_version = cfg->target_fw_version;
|
|
|
hdd_ctx->target_fw_vers_ext = cfg->target_fw_vers_ext;
|