iwlwifi: Add led support
authorMohamed Abbas <mabbas@linux.intel.com>
Tue, 25 Mar 2008 23:33:36 +0000 (16:33 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 27 Mar 2008 20:03:16 +0000 (16:03 -0400)
commitab53d8af6772b22d4d68b1bcd74f7a5dba693983
tree599c6682d75e15b30af9bf994595e7d5eed5c3ac
parente0e0a67e44ce13e34f553b6ab6377560fa9813f1
iwlwifi: Add led support

This patch add LEDS support to 3965 and 4965 drivers. It is based on
led trigger and class. For our drivers we needed to avoid two things.
1- We receive led trigger on/off on each Rx\Tx frame. In our driver
    we can not call led command like that. In this driver once driver
    receive a start of traffic it call the led command to start blinking
    then we count all bytes of Tx and Rx frame, after two second we count the
    blink rate of last two second then id blink rate changed we call the led
     commands
2- Since we can call led command very often, we make sure we call the
    led command after we receive the statistics notification so
    we don't need to wake up the ucode id it is in sleep state.
    This patch was tested with 4965 and 3945.

Signed-off-by: Mohamed Abbas <mabbas@linux.intel.com>
Signed-off-by: Ian Schram<ischram@telenet.be>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
13 files changed:
drivers/net/wireless/iwlwifi/Kconfig
drivers/net/wireless/iwlwifi/Makefile
drivers/net/wireless/iwlwifi/iwl-3945-led.c [new file with mode: 0644]
drivers/net/wireless/iwlwifi/iwl-3945-led.h [new file with mode: 0644]
drivers/net/wireless/iwlwifi/iwl-3945.c
drivers/net/wireless/iwlwifi/iwl-3945.h
drivers/net/wireless/iwlwifi/iwl-4965.c
drivers/net/wireless/iwlwifi/iwl-4965.h
drivers/net/wireless/iwlwifi/iwl-csr.h
drivers/net/wireless/iwlwifi/iwl-led.c [new file with mode: 0644]
drivers/net/wireless/iwlwifi/iwl-led.h [new file with mode: 0644]
drivers/net/wireless/iwlwifi/iwl3945-base.c
drivers/net/wireless/iwlwifi/iwl4965-base.c