]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: refactor rc_no_data_or_no_ack_use_min function
authorPhilipp Borgers <borgers@mi.fu-berlin.de>
Wed, 19 May 2021 12:20:19 +0000 (14:20 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 23 Jun 2021 09:01:49 +0000 (11:01 +0200)
commit64b01cde438c50f12e65211d32ef8ee1b7749655
treef4bef1650d78db3f44af55198280161a30dd41ee
parent5b99418f9cb90d6b9cf8d2b9f6d45c312444ab6e
mac80211: refactor rc_no_data_or_no_ack_use_min function

Use newly introduced helper function ieee80211_is_tx_data to check if
frame is a data frame. Takes into account that hardware encapsulation
can be enabled for a frame and therefore no ieee80211 header is present.

Signed-off-by: Philipp Borgers <borgers@mi.fu-berlin.de>
Link: https://lore.kernel.org/r/20210519122019.92359-4-borgers@mi.fu-berlin.de
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rate.c