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().
This commit is contained in:
parent
d82722d0a2
commit
5f8cdd3258
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user