On Sat, Aug 30, 2014 at 03:20:54PM +1000, mark hellewell wrote:
> Hello,
> 
> I have a Soekris net6501-50 with an Atheros AR9380 (model AR5BXB112)
> wireless card attached to a Mini PCI Express slot.  When attempting to
> `ifconfig athn0 scan`, or otherwise interact with the interface, I
> trigger a panic.  I’ve tried both with and without the athn firmware
> installed via `fw_update`, and even tested the card in a PCI-E
> adapter.
> 
> Here’s the panic line:
> 
> panic: kernel diagnostic assertion "pin < sc->ngpiopins" failed: file
> "../../../../dev/ic/ar9003.c", line 514
> 
> I've included trace, ps, registers and objdump output below.  Any help
> would be appreciated!


Beware, the ar9003 parts of athn are somewhat broken and unfinished.

That said, can you try this?

Index: ar9003.c
===================================================================
RCS file: /cvs/src/sys/dev/ic/ar9003.c,v
retrieving revision 1.30
diff -u -p -r1.30 ar9003.c
--- ar9003.c    22 Jul 2014 13:12:11 -0000      1.30
+++ ar9003.c    30 Aug 2014 08:22:26 -0000
@@ -165,6 +165,8 @@ ar9003_attach(struct athn_softc *sc)
        struct athn_ops *ops = &sc->ops;
        int error;
 
+       sc->ngpiopins = 16;
+
        /* Set callbacks for AR9003 family. */
        ops->gpio_read = ar9003_gpio_read;
        ops->gpio_write = ar9003_gpio_write;

Reply via email to