diff options
| -rw-r--r-- | CORE/VOSS/inc/vos_cnss.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/CORE/VOSS/inc/vos_cnss.h b/CORE/VOSS/inc/vos_cnss.h index fa2d7f8d508e..8bfae8619cb4 100644 --- a/CORE/VOSS/inc/vos_cnss.h +++ b/CORE/VOSS/inc/vos_cnss.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2015-2018 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 @@ -579,6 +579,18 @@ static inline int vos_cache_boarddata(unsigned int offset, #endif #if defined(CONFIG_CNSS) && defined(HIF_SDIO) +#include <linux/version.h> +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0)) +static inline bool vos_oob_enabled(void) +{ + bool enabled = true; + + if (-EINVAL == cnss_wlan_query_oob_status()) + enabled = false; + + return enabled; +} +#else static inline bool vos_oob_enabled(void) { bool enabled = true; @@ -588,6 +600,7 @@ static inline bool vos_oob_enabled(void) return enabled; } +#endif static inline int vos_register_oob_irq_handler(oob_irq_handler_t handler, void *pm_oob) |
