summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/ar5210.c5
-rw-r--r--sys/dev/ic/ar5xxx.h3
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/ic/ar5210.c b/sys/dev/ic/ar5210.c
index c834b06f3bd..daa9283a6a1 100644
--- a/sys/dev/ic/ar5210.c
+++ b/sys/dev/ic/ar5210.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar5210.c,v 1.6 2004/11/11 20:11:28 reyk Exp $ */
+/* $OpenBSD: ar5210.c,v 1.7 2004/11/23 10:13:04 reyk Exp $ */
/*
* Copyright (c) 2004 Reyk Floeter <reyk@vantronix.net>.
@@ -2339,6 +2339,9 @@ ar5k_ar5210_get_capabilities(hal)
/* Set supported modes */
hal->ah_capabilities.cap_mode = HAL_MODE_11A | HAL_MODE_TURBO;
+ /* Set number of GPIO pins */
+ hal->ah_gpio_npins = AR5K_AR5210_NUM_GPIO;
+
return (AH_TRUE);
}
diff --git a/sys/dev/ic/ar5xxx.h b/sys/dev/ic/ar5xxx.h
index b3fbae8251f..a254cbb10ba 100644
--- a/sys/dev/ic/ar5xxx.h
+++ b/sys/dev/ic/ar5xxx.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar5xxx.h,v 1.5 2004/11/11 20:11:28 reyk Exp $ */
+/* $OpenBSD: ar5xxx.h,v 1.6 2004/11/23 10:13:04 reyk Exp $ */
/*
* Copyright (c) 2004 Reyk Floeter <reyk@vantronix.net>.
@@ -772,6 +772,7 @@ struct ath_hal {
u_int8_t ah_bssid[IEEE80211_ADDR_LEN];
u_int32_t ah_gpio[AR5K_MAX_GPIO];
+ int ah_gpio_npins;
ar5k_capabilities_t ah_capabilities;