diff --git a/umac/dfs/core/src/dfs.h b/umac/dfs/core/src/dfs.h index fe0d4c325d2b..df06567e8ba6 100644 --- a/umac/dfs/core/src/dfs.h +++ b/umac/dfs/core/src/dfs.h @@ -412,7 +412,7 @@ * @DETECTOR_ID_2: Detector ID 2 (Agile detector in 80p80MHZ supported devices). * @AGILE_DETECTOR_ID_TRUE_160MHZ: Agile detector ID in true 160MHz devices. * @AGILE_DETECTOR_ID_80p80: Agile detector ID in 80p80MHz supported devices. - * @DETECTOR_ID_MAX: Maximum detector ID value. + * @INVALID_DETECTOR_ID: Invalid detector id. */ enum detector_id { DETECTOR_ID_0, @@ -420,7 +420,7 @@ enum detector_id { DETECTOR_ID_2, AGILE_DETECTOR_ID_TRUE_160MHZ = DETECTOR_ID_1, AGILE_DETECTOR_ID_80P80 = DETECTOR_ID_2, - DETECTOR_ID_MAX, + INVALID_DETECTOR_ID, }; /** @@ -2882,5 +2882,12 @@ static inline bool dfs_is_restricted_80p80mhz_supported(struct wlan_dfs *dfs) * * Return: Agile detector value (uint8_t). */ +#ifdef QCA_SUPPORT_AGILE_DFS uint8_t dfs_get_agile_detector_id(struct wlan_dfs *dfs); +#else +static inline uint8_t dfs_get_agile_detector_id(struct wlan_dfs *dfs) +{ + return INVALID_DETECTOR_ID; +} +#endif #endif /* _DFS_H_ */ diff --git a/umac/dfs/core/src/misc/dfs.c b/umac/dfs/core/src/misc/dfs.c index ad71a8df1f49..896cfc32e8af 100644 --- a/umac/dfs/core/src/misc/dfs.c +++ b/umac/dfs/core/src/misc/dfs.c @@ -978,7 +978,9 @@ bool dfs_is_restricted_80p80mhz_supported(struct wlan_dfs *dfs) } #endif +#ifdef QCA_SUPPORT_AGILE_DFS uint8_t dfs_get_agile_detector_id(struct wlan_dfs *dfs) { return dfs->dfs_agile_detector_id; } +#endif