Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> wrote: > If the chip can have an LED, register a struct led_classdev and enable > hardware-controlled blinking. When the chip is not transmitting or > receiving anything the LED is off. Otherwise the LED will blink > faster or slower according to the throughput. > > The LED can be controlled from userspace by writing 0, 1, or 2 to > /sys/class/leds/rtl8xxxu-usbX-Y/brightness: > 0 - solid off. > 1 - solid on. > 2 - hardware-controlled blinking. > > In this patch none of the chips advertise having an LED. That will be > added in the next patches. > > Signed-off-by: Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> > Reviewed-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx> 4 patches applied to wireless-next.git, thanks. 3be01622995b wifi: rtl8xxxu: Register the LED and make it blink 873b3811728b wifi: rtl8xxxu: Add LED control code for RTL8188EU ae0a6df673c2 wifi: rtl8xxxu: Add LED control code for RTL8192EU 2cef0aeebf2c wifi: rtl8xxxu: Add LED control code for RTL8723AU -- https://patchwork.kernel.org/project/linux-wireless/patch/b8235bca-60c3-d0fe-a958-53c6dd3ba3f6@xxxxxxxxx/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches