]> bbs.cooldavid.org Git - net-next-2.6.git/commit
iwl3945: improve 3945 leds
authorAbhijeet Kolekar <abhijeet.kolekar@intel.com>
Thu, 21 May 2009 20:44:21 +0000 (13:44 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 22 May 2009 18:06:02 +0000 (14:06 -0400)
commit749e091ee0065ed366cc26c115abc237e07ed786
tree77ecf16d1e104bb323f27b8696cb9ffab7aaae87
parent2c7e57981f24e9f8b732ecf1c01e16111d21b7a5
iwl3945: improve 3945 leds

'tpt' is a delta throughput (number of packets) and is corelated
to brightness of the LED. We already maintain a delta of packets in
rxtxpackets. There is no need to calculate this delta again which
was affecting the behaviour of LEDS.

Also add two new callback functions for ASSOCIATED/DISASSOCIATED states
where LED's will be *on* for associated state and *off* for disassociated state.

This fixes
http://www.intellinuxwireless.org/bugzilla/show_bug.cgi?id=1771.

Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-3945-led.c