iwlwifi: dvm: handle zero brightness for wifi LED
authorHubert Tarasiuk <hubert.tarasiuk@gmail.com>
Sun, 24 Jan 2016 12:35:06 +0000 (13:35 +0100)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 1 Feb 2016 14:40:18 +0000 (16:40 +0200)
commitbdf408eca877a2ae310e3df9f05e865ffe10e4de
treeae53c6fae71bdd3f932983207fdc2d8630669ad9
parent15ffd075e4088d3fc83ce8db914e7d3b6f31bc1c
iwlwifi: dvm: handle zero brightness for wifi LED

In order to have the LED being OFF constantly when the
brightness is set to 0, we need to pass IWL_LED_SOLID to
iwl_led_cmd as the off parameter, otherwise the led will
stay on constantly.

This fixes
https://bugzilla.kernel.org/show_bug.cgi?id=110551

Signed-off-by: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
[reworked the commit message]
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/dvm/led.c