Version 2 of this patch set adds a helper function that checks if a frame is a data frame taking hardware encapsulation into account. Suggested by Johannes Berg and Felix Fietkau. The refactoring of the rc_no_data_or_no_ack_use_min function makes use of this new function too. I added a comment about the refactoring too. Suggested by Kalle Valo. Best Regards Philipp Borgers Philipp Borgers (3): mac80211: add ieee80211_is_tx_data helper function mac80211: do not use low data rates for data frames with no ack flag mac80211: refactor rc_no_data_or_no_ack_use_min function include/net/mac80211.h | 18 ++++++++++++++++++ net/mac80211/rate.c | 10 +++++----- 2 files changed, 23 insertions(+), 5 deletions(-) -- 2.31.1