Skip to content

Commit 5d473fe

Browse files
anderssonjmberg-intel
authored andcommitted
mac80211: Invoke TX LED in more code paths
ieee80211_tx_status() is only one of the possible ways a driver can report a handled packet, some drivers call this for every packet while others calls it rarely or never. In order to invoke the TX LED in the non-status reporting cases this patch pushes the call to ieee80211_led_tx() into ieee80211_report_used_skb(), which is shared between the various code paths. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent e45a79d commit 5d473fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/mac80211/status.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,8 @@ static void ieee80211_report_used_skb(struct ieee80211_local *local,
546546
skb->wifi_acked_valid = 1;
547547
skb->wifi_acked = acked;
548548
}
549+
550+
ieee80211_led_tx(local);
549551
}
550552

551553
/*
@@ -823,8 +825,6 @@ static void __ieee80211_tx_status(struct ieee80211_hw *hw,
823825
}
824826
}
825827

826-
ieee80211_led_tx(local);
827-
828828
/* SNMP counters
829829
* Fragments are passed to low-level drivers as separate skbs, so these
830830
* are actually fragments, not frames. Update frame counters only for

0 commit comments

Comments
 (0)