iwlwifi: fix LED stall
authorTomas Winkler <tomas.winkler@intel.com>
Fri, 11 Jul 2008 03:53:36 +0000 (11:53 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 14 Jul 2008 18:52:59 +0000 (14:52 -0400)
commit0eee612731e133604023bfa8d20047e98160845e
treeae9cf4291493c65925727bf3591fe3dbff4f1a4d
parent9f17b318a1e2335b45cf35ad6509b90e972c0e6b
iwlwifi: fix LED stall

This patch fixes LED stall. last_blink_time was updated only if LED command
was sent, causing wrong computation of the througput.
Some code cleanup comes with this patch as well

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-dev.h
drivers/net/wireless/iwlwifi/iwl-led.c
drivers/net/wireless/iwlwifi/iwl-led.h