summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath/if_ath.c
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2012-11-03 22:12:35 +0000
committeradrian <adrian@FreeBSD.org>2012-11-03 22:12:35 +0000
commit7a72be7da20f98374bf637cd26f21204ffd65d45 (patch)
tree3dd4a1d2be4097435db9106767b29d6c4f1977d8 /sys/dev/ath/if_ath.c
parent35b3593ff24bff29174560ecf0052522ba298d96 (diff)
downloadFreeBSD-src-7a72be7da20f98374bf637cd26f21204ffd65d45.zip
FreeBSD-src-7a72be7da20f98374bf637cd26f21204ffd65d45.tar.gz
Add a new HAL call to extract out the HAL enterprise bits from the
AR9300 HAL.
Diffstat (limited to 'sys/dev/ath/if_ath.c')
-rw-r--r--sys/dev/ath/if_ath.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index 0f8679b..cfd0559 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -701,6 +701,13 @@ ath_attach(u_int16_t devid, struct ath_softc *sc)
*/
sc->sc_mrrprot = 0; /* XXX should be a capability */
+ /*
+ * Query the enterprise mode information the HAL.
+ */
+ if (ath_hal_getcapability(ah, HAL_CAP_ENTERPRISE_MODE, 0,
+ &sc->sc_ent_cfg) == HAL_OK)
+ sc->sc_use_ent = 1;
+
#ifdef ATH_ENABLE_11N
/*
* Query HT capabilities
OpenPOWER on IntegriCloud