Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Aug 2014 18:59:39 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r269638 - head/tools/tools/ath/athdecode
Message-ID:  <53e27b1b.58ee.439e7b54@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53e27b1b.58ee.439e7b54>