svn commit: r269638 - head/tools/tools/ath/athdecode

Adrian Chadd adrian at FreeBSD.org
Wed Aug 6 18:59:39 UTC 2014


Author: adrian
Date: Wed Aug  6 18:59:39 2014
New Revision: 269638
URL: http://svnweb.freebsd.org/changeset/base/269638

Log:
  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().

Modified:
  head/tools/tools/ath/athdecode/main.c

Modified: head/tools/tools/ath/athdecode/main.c
==============================================================================
--- head/tools/tools/ath/athdecode/main.c	Wed Aug  6 18:15:33 2014	(r269637)
+++ head/tools/tools/ath/athdecode/main.c	Wed Aug  6 18:59:39 2014	(r269638)
@@ -192,7 +192,7 @@ opmark(FILE *fd, int i, const struct ath
 		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;


More information about the svn-src-head mailing list