Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d473fed authored by Bjorn Andersson's avatar Bjorn Andersson Committed by Johannes Berg
Browse files

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: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent e45a79da
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -546,6 +546,8 @@ static void ieee80211_report_used_skb(struct ieee80211_local *local,
		skb->wifi_acked_valid = 1;
		skb->wifi_acked = acked;
	}

	ieee80211_led_tx(local);
}

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

	ieee80211_led_tx(local);

	/* SNMP counters
	 * Fragments are passed to low-level drivers as separate skbs, so these
	 * are actually fragments, not frames. Update frame counters only for