aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorStanislaw Gruszka <sgruszka@redhat.com>2015-03-19 10:32:49 -0400
committerKalle Valo <kvalo@codeaurora.org>2015-03-30 04:29:16 -0400
commit01fbd4ecff4f8dc8ca9614778326cc159705623e (patch)
treeb359a567f8323a60eb0e38e8cb246e69eabe7633 /drivers/net/wireless
parent44a89c82feca565efd44b5aef1f1b99b93621d19 (diff)
rt2800usb: check Autorun mode on FW load only once
Seems H/W report correctly firmware Autorun value only at initialization stage. When we close interface and open it again, Autorun value is 0 and we try to load firmware what kills the device. To fix clear REQUIRE_FIRMWARE firmware flag, to do not load firmware again, once we discover Autorun mode. Reported-and-tested-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/rt2x00/rt2800usb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c
index 41b6fb16c661..6ec2466b52b6 100644
--- a/drivers/net/wireless/rt2x00/rt2800usb.c
+++ b/drivers/net/wireless/rt2x00/rt2800usb.c
@@ -293,6 +293,7 @@ static int rt2800usb_write_firmware(struct rt2x00_dev *rt2x00dev,
293 if (retval) { 293 if (retval) {
294 rt2x00_info(rt2x00dev, 294 rt2x00_info(rt2x00dev,
295 "Firmware loading not required - NIC in AutoRun mode\n"); 295 "Firmware loading not required - NIC in AutoRun mode\n");
296 __clear_bit(REQUIRE_FIRMWARE, &rt2x00dev->cap_flags);
296 } else { 297 } else {
297 rt2x00usb_register_multiwrite(rt2x00dev, FIRMWARE_IMAGE_BASE, 298 rt2x00usb_register_multiwrite(rt2x00dev, FIRMWARE_IMAGE_BASE,
298 data + offset, length); 299 data + offset, length);