carl9170: handle traps from firmware loader
authorChristian Lamparter <chunkeey@googlemail.com>
Sat, 6 Oct 2012 18:42:54 +0000 (20:42 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 19 Oct 2012 19:53:20 +0000 (15:53 -0400)
commitb4764c809a306ea37b6409494896e919bbb5ec5f
tree88e67274ab98bf590c11ba4357b4ab9657c6c912
parentafe3840a1a07371cf1b8bbe01b9bb4c410e3bba1
carl9170: handle traps from firmware loader

This patch changes the way the driver deals with
command responses and traps which are sent through
the special interrupt input endpoint 3.

While the carl9170 firmware does not use this
endpoint for command responses or traps, the
firmware loader on the device does. It uses it
to notify the host about 'watchdog triggered'
in case the firmware/hardware has crashed.

Note:
Even without this patch, the driver is still
able to detect the mishap and reset the device.
But previously it did that because the trap
event caused an out-of-order message sequence
number error, which also triggered a reset.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/carl9170/rx.c
drivers/net/wireless/ath/carl9170/usb.c