qcacld-3.0: Fix hdd_tsf_is_ptp_enabled function for CFG item

Fix compilation error caused after TSF PTP Options INI item
is moved to CFG component from HDD config.

Change-Id: I0c39fb4eb546ebd236d82e684aff7010512c74f9
CRs-fixed: 2380983
This commit is contained in:
Manikandan Mohan 2019-01-14 18:00:04 -08:00 • committed by nshrivas
commit 0faf628eaa

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@ -146,8 +146,13 @@ static QDF_STATUS hdd_tsf_set_gpio(struct hdd_context *hdd_ctx)
bool hdd_tsf_is_ptp_enabled(struct hdd_context *hdd)
{
return (hdd && (hdd->config) &&
(hdd->config->tsf_ptp_options));
uint32_t tsf_ptp_options;
if (hdd && QDF_IS_STATUS_SUCCESS(
ucfg_fwol_get_tsf_ptp_options(hdd->psoc, &tsf_ptp_options)))
return !!tsf_ptp_options;
else
return false;
}
bool hdd_tsf_is_tx_set(struct hdd_context *hdd)