summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2007-01-15 04:26:19 +0000
committersam <sam@FreeBSD.org>2007-01-15 04:26:19 +0000
commit14527025f48b8b94f37b882093fd59199d126f8b (patch)
tree09cfcab559c33dd2705eb02f7797d3abac956654 /sys/dev/ath
parentc0993d4628582604f3421ff1d855ce4f34135e0f (diff)
downloadFreeBSD-src-14527025f48b8b94f37b882093fd59199d126f8b.zip
FreeBSD-src-14527025f48b8b94f37b882093fd59199d126f8b.tar.gz
add compat shim for ath_hal_isgsmsku until the new hal gets committed
Diffstat (limited to 'sys/dev/ath')
-rw-r--r--sys/dev/ath/if_athvar.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/ath/if_athvar.h b/sys/dev/ath/if_athvar.h
index 288a977..25f6bf2 100644
--- a/sys/dev/ath/if_athvar.h
+++ b/sys/dev/ath/if_athvar.h
@@ -559,6 +559,11 @@ void ath_intr(void *);
(((ah)->ah_regdomain == 0 && (ah)->ah_countryCode == 842) || \
(ah)->ah_regdomain == 0x12)
#endif
+#if HAL_ABI_VERSION < 0x06122400
+/* XXX yech, can't get to regdomain so just hack a compat shim */
+#define ath_hal_isgsmsku(ah) \
+ ((ah)->ah_countryCode == 843)
+#endif
#define ath_hal_setuprxdesc(_ah, _ds, _size, _intreq) \
((*(_ah)->ah_setupRxDesc)((_ah), (_ds), (_size), (_intreq)))
OpenPOWER on IntegriCloud