aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2014-08-06 18:59:39 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2014-08-06 18:59:39 +0000
commit8f5074017e0a8c7b80451d8bf53d79c0f1946139 (patch)
tree6227527db62ea6770ec89c744f5ef7fb425435b4
parentf051baa008b4a52ba5173d35a406411cb3ba09bd (diff)
downloadsrc-8f5074017e0a8c7b80451d8bf53d79c0f1946139.tar.gz
src-8f5074017e0a8c7b80451d8bf53d79c0f1946139.zip
Fix athdecode to actually work.
* Add AR9287 and AR9331 chipset support - it just uses the AR5416 support for now so some of the register mappings are wrong, but it works well enough. * don't call exit() from opmark().
Notes
Notes: svn path=/head/; revision=269638
-rw-r--r--tools/tools/ath/athdecode/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/tools/ath/athdecode/main.c b/tools/tools/ath/athdecode/main.c
index 701f8355a9ca..e565698f4fbf 100644
--- a/tools/tools/ath/athdecode/main.c
+++ b/tools/tools/ath/athdecode/main.c
@@ -192,7 +192,7 @@ opmark(FILE *fd, int i, const struct athregrec *r)
fprintf(fd, "mark #%u value %u/0x%x", r->reg, r->val, r->val);
break;
}
- exit(0);
+ return (NULL);
}
#include "ah_devid.h"
@@ -260,6 +260,9 @@ opdevice(const struct athregrec *r)
case AR9280_DEVID_PCI:
case AR9280_DEVID_PCIE:
case AR9285_DEVID_PCIE:
+ case AR9287_DEVID_PCI:
+ case AR9287_DEVID_PCIE:
+ case AR9300_DEVID_AR9330:
state.chipnum = 5416;
state.revs.ah_macVersion = 13;
state.revs.ah_macRev = 8;