]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix bad guard when reporting legacy rates
authorJohn Crispin <john@phrozen.org>
Wed, 7 Aug 2019 07:59:47 +0000 (09:59 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 21 Aug 2019 08:32:57 +0000 (10:32 +0200)
commitc6525990346edfbd2eac57c77aacb9c66461ffea
tree0fed45b42a7a99307810e0a198f1802317c9d5ae
parent790d2727cc19b7dfd0d49176f82e16ef6c3789d4
mac80211: fix bad guard when reporting legacy rates

When reporting legacy rates inside the TX Radiotap header we need to split
the check between "uses tx_statua_ext" and "is legacy rate". Not doing so
would make the code drop into the !tx_status_ext path.

Fixes: dd70689edb6f ("mac80211: add struct ieee80211_tx_status support to ieee80211_add_tx_radiotap_header")
Signed-off-by: John Crispin <john@phrozen.org>
Link: https://lore.kernel.org/r/20190807075949.32414-2-john@phrozen.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/status.c