mac80211: initialize last_rate for S1G STAs
authorThomas Pedersen <thomas@adapt-ip.com>
Mon, 5 Oct 2020 16:45:22 +0000 (09:45 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 8 Oct 2020 08:40:57 +0000 (10:40 +0200)
commit12bf8fad4ca3cf712f80766be017a521757e14c7
tree0975183d552e2d67288c7b073036ebaac7cbbb62
parent8b783d104e7f40684333d2ec155fac39219beb2f
mac80211: initialize last_rate for S1G STAs

last_rate is initialized to zero by sta_info_alloc(), but
this indicates legacy bitrate for the last TX rate (and
invalid for the last RX rate). To avoid a warning when
decoding the last rate as legacy (before a data frame
has been sent), initialize them as S1G MCS.

Signed-off-by: Thomas Pedersen <thomas@adapt-ip.com>
Link: https://lore.kernel.org/r/20201005164522.18069-2-thomas@adapt-ip.com
[rename to ieee80211_s1g_sta_rate_init(), seems more appropriate]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/Makefile
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c
net/mac80211/rate.c
net/mac80211/s1g.c [new file with mode: 0644]
net/mac80211/sta_info.h