Thomas Pedersen 20ae51a368 mac80211: handle lack of sband->bitrates in rates
[ Upstream commit 8b783d104e7f40684333d2ec155fac39219beb2f ]

Even though a driver or mac80211 shouldn't produce a
legacy bitrate if sband->bitrates doesn't exist, don't
crash if that is the case either.

This fixes a kernel panic if station dump is run before
last_rate can be updated with a data frame when
sband->bitrates is missing (eg. in S1G bands).

Signed-off-by: Thomas Pedersen <thomas@adapt-ip.com>
Link: https://lore.kernel.org/r/20201005164522.18069-1-thomas@adapt-ip.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-30 10:38:28 +01:00
..
2018-06-18 22:40:32 +02:00
2018-06-12 16:19:22 -07:00
2017-02-10 14:31:51 -05:00
2018-06-18 22:40:32 +02:00
2018-06-18 22:40:32 +02:00
2018-02-22 21:13:03 +01:00
2018-06-30 21:08:12 +09:00
2018-06-18 22:40:32 +02:00
2019-05-16 19:41:20 +02:00
2018-06-18 22:40:32 +02:00
2020-05-10 10:30:12 +02:00