]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: make LED triggering depend on activation
authorJohannes Berg <johannes.berg@intel.com>
Thu, 23 Apr 2015 10:19:22 +0000 (12:19 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 5 May 2015 12:21:56 +0000 (14:21 +0200)
commit56437c3fc4d2bbaed33fce3626d4c9764abfd6ad
treeef166e18c83c91618e208e9726084ab77acd388c
parent870691255fd33bbe5e31336ba2ee4e5d685f3287
mac80211: make LED triggering depend on activation

When LED triggers are compiled in, but not used, mac80211 will still
call them to update the status. This isn't really a problem for the
assoc and radio ones, but the TX/RX (and to a certain extend TPT)
ones can be called very frequently (for every packet.)

In order to avoid that when they're not used, track their activation
and call the corresponding trigger (and in the TPT case, account for
throughput) only when the trigger is actually used by an LED.

Additionally, make those trigger functions inlines since theyre only
used once in the remaining code.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ieee80211_i.h
net/mac80211/led.c
net/mac80211/led.h
net/mac80211/main.c