mac80211: minstrel_ht: move short preamble check out of get_rate
authorFelix Fietkau <nbd@nbd.name>
Wed, 14 Dec 2016 19:46:55 +0000 (20:46 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 15 Dec 2016 10:07:52 +0000 (11:07 +0100)
commit782dda00ab8e9485ddc2a1fb8d8681dcc5136283
tree8051eb60a30f52ae917600945a541b86232bbde9
parent41d085835d3d2258633d8959e717198e31d3862e
mac80211: minstrel_ht: move short preamble check out of get_rate

Test short preamble support in minstrel_ht_update_caps instead of
looking at the per-packet flag. Makes the code more efficient.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rc80211_minstrel_ht.c