]> 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)
commit158161dcabb267ae534b302c1dd4947d4d0777cf
treef4bef1650d78db3f44af55198280161a30dd41ee
parentb98ef17d18170bf73bdf952ab119852cb79b2ba0
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