linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* carl9170 firmware
@ 2012-04-17 17:25 Larry Finger
  2012-04-17 18:35 ` Christian Lamparter
  0 siblings, 1 reply; 12+ messages in thread
From: Larry Finger @ 2012-04-17 17:25 UTC (permalink / raw)
  To: Chr; +Cc: wireless

Christian,

A question regarding adding carl9170-1.fw to the openSUSE firmware package is 
being discussed on the oS kernel mailing list; however, I do not see that one in 
the linux-firmware git repo. Should it be there? Is there a legal problem with 
redistribution?

Thanks,

Larry

^ permalink raw reply	[flat|nested] 12+ messages in thread
[parent not found: <CAEh_CyWdC+-mV+YhmoxS6dubWVN10utDim+GWmDLYCX9K9AkkQ@mail.gmail.com>]
* Carl9170 firmware
@ 2011-09-13 21:21 J Igrap
  0 siblings, 0 replies; 12+ messages in thread
From: J Igrap @ 2011-09-13 21:21 UTC (permalink / raw)
  To: linux-wireless

While using the past days the carl9170 firmware with a USB card under
a linux guest running different kernel and driver versions I kept
running into the issue of a usb disconnect when the card was put under
load:
 usb 1-1: no command feedback received (-110).
 carl9170 cmd: 08 01 00 00 f0 36 1c 00 00 24 00 00              .....6...$..
 usb 1-1: restart device (6)

No matter what kernel driver/firmware I tried I will still get it. I
decided to look into it a bit more and I narrowed it down to be a
firmware issue with the following code snippet:

void handle_cmd(struct carl9170_rsp *resp) in src/cmd.c
        case CARL9170_CMD_WREG:
esp->hdr.len = 0;
                for (i = 0; i < (cmd->hdr.len / 8); i++)
                        set(cmd->wreg.regs[i].addr, cmd->wreg.regs[i].val);
                break;

That code appears to handle event 1 which is a write into a register.
In some cases that write appeared to cause a failure and a reset into
the card. I added a simple delay loop before the switch statement and
that seemed to fix the issue and I don't lose the card anymore even
under a lot of load. Obviously that's not a real fix and something
else more reliable needs to be in place.

-jigrap

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-04-18 19:09 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-17 17:25 carl9170 firmware Larry Finger
2012-04-17 18:35 ` Christian Lamparter
2012-04-17 19:27   ` Larry Finger
2012-04-18 18:26     ` Christian Lamparter
2012-04-18 19:09       ` Larry Finger
     [not found] <CAEh_CyWdC+-mV+YhmoxS6dubWVN10utDim+GWmDLYCX9K9AkkQ@mail.gmail.com>
2011-09-14  9:50 ` Carl9170 Firmware Christian Lamparter
2011-09-14 13:09   ` J Igrap
2011-09-14 17:00     ` Christian Lamparter
2012-04-11 13:20       ` J Igrap
2012-04-11 16:54         ` Christian Lamparter
2012-04-11 17:24           ` J Igrap
  -- strict thread matches above, loose matches on Subject: below --
2011-09-13 21:21 Carl9170 firmware J Igrap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).