From 5f8cdd32588288535ca67ce7abcb67a1c67aaead Mon Sep 17 00:00:00 2001 From: adrian Date: Wed, 6 Aug 2014 18:59:39 +0000 Subject: [PATCH] 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(). --- tools/tools/ath/athdecode/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;