Skip to contentSkip to conversation

rt2x00: Reset LED assoc status after firmware update

PATCH New Ivo van Doorn 1 participant 1 message Jul 13, 2008 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rt2x00: Reset LED assoc status after firmware update

According to the legacy drivers the LED association status must be reset after the firmware has been uploaded to the hardware.

---
 drivers/net/wireless/rt2x00/rt2x00firmware.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
drivers/net/wireless/rt2x00/rt2x00firmware.c +8 -0
index b971bc6..bab05a5 100644
@@ -100,6 +100,14 @@ int rt2x00lib_load_firmware(struct rt2x00_dev *rt2x00dev)
 	retval = rt2x00dev->ops->lib->load_firmware(rt2x00dev,
 						    rt2x00dev->fw->data,
 						    rt2x00dev->fw->size);
+
+	/*
+	 * When the firmware is uploaded to the hardware the LED
+	 * association status might have been triggered, for correct
+	 * LED handling it should now be reset.
+	 */
+	rt2x00leds_led_assoc(rt2x00dev, false);
+
 	return retval;
 }
 
Signature · 1 line
1.5.6.1