git: 61c83c4e8b6f - main - [ath] Add ath_hal_getnav and ath_hal_setnav so the driver layer can check the NAV as appropriate.
Adrian Chadd
adrian at FreeBSD.org
Mon Apr 19 05:59:35 UTC 2021
The branch main has been updated by adrian:
URL: https://cgit.FreeBSD.org/src/commit/?id=61c83c4e8b6fba915b2261fb019ad77d107c7b2b
commit 61c83c4e8b6fba915b2261fb019ad77d107c7b2b
Author: Adrian Chadd <adrian at FreeBSD.org>
AuthorDate: 2021-04-01 04:48:59 +0000
Commit: Adrian Chadd <adrian at FreeBSD.org>
CommitDate: 2021-04-19 05:59:28 +0000
[ath] Add ath_hal_getnav and ath_hal_setnav so the driver layer
can check the NAV as appropriate.
---
sys/dev/ath/if_athvar.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sys/dev/ath/if_athvar.h b/sys/dev/ath/if_athvar.h
index 1d2f842197cd..f36f66f6c3f4 100644
--- a/sys/dev/ath/if_athvar.h
+++ b/sys/dev/ath/if_athvar.h
@@ -1492,6 +1492,10 @@ void ath_intr(void *);
((*(_ah)->ah_setChainMasks)((_ah), (_txchainmask), (_rxchainmask)))
#define ath_hal_set_quiet(_ah, _p, _d, _o, _f) \
((*(_ah)->ah_setQuiet)((_ah), (_p), (_d), (_o), (_f)))
+#define ath_hal_getnav(_ah) \
+ ((*(_ah)->ah_getNav)((_ah)))
+#define ath_hal_setnav(_ah, _val) \
+ ((*(_ah)->ah_setNav)((_ah), (_val)))
#define ath_hal_spectral_supported(_ah) \
(ath_hal_getcapability(_ah, HAL_CAP_SPECTRAL_SCAN, 0, NULL) == HAL_OK)
More information about the dev-commits-src-main
mailing list