mac80211: don't open-code LED manipulations
authorJohannes Berg <johannes.berg@intel.com>
Wed, 16 Jun 2021 19:28:05 +0000 (21:28 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 23 Jun 2021 09:29:12 +0000 (11:29 +0200)
commit3f9d9725cb7daf7e9a834aa4f24d88b049c3c1f5
tree05274a8b3d317610d1ae635c178572c92e61c192
parentd656a4c6ead6c3f252b2f2532bc9735598f7e317
mac80211: don't open-code LED manipulations

We shouldn't open-code led_trigger_blink() or led_trigger_event(),
use them instead of badly open-coding them. This also fixes the
locking, led_trigger_blink() and led_trigger_event() now use
read_lock_irqsave().

Link: https://lore.kernel.org/r/20210616212804.b19ba1c60353.I8ea1b4defd5e12fc20ef281291e602feeec336a6@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/led.c