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
..
2017-10-11 15:46:45 +02:00
2017-10-11 09:37:35 +02:00
2017-10-11 09:37:35 +02:00
2017-02-08 09:19:33 +01:00
2017-02-08 09:19:33 +01:00
2017-10-11 09:37:35 +02:00
2016-10-17 16:14:04 +02:00
2016-10-17 16:14:04 +02:00
2018-06-18 22:40:32 +02:00
2019-03-23 20:09:45 +01:00
2020-10-30 10:38:28 +01:00
2018-06-12 16:19:22 -07:00
2017-11-02 11:10:55 +01:00
2016-02-24 09:04:38 +01:00
2017-11-02 11:10:55 +01:00
2019-10-29 09:19:33 +01:00
2017-11-02 11:10:55 +01:00
2018-01-31 12:57:24 +01:00
2017-11-02 11:10:55 +01:00
2018-03-23 11:31:58 -04:00
2017-11-02 11:10:55 +01:00
2019-08-16 10:12:45 +02:00
2019-04-27 09:36:38 +02:00
2018-06-29 09:53:09 +02:00
2017-02-10 14:31:51 -05:00
2016-10-27 16:03:25 +02:00
2018-06-18 22:40:32 +02:00
2018-06-18 22:39:39 +02:00
2018-09-03 10:41:27 +02:00
2020-04-02 15:28:20 +02:00
2019-05-25 18:23:43 +02:00
2017-02-08 09:19:17 +01:00
2019-05-08 07:21:54 +02:00
2017-02-08 09:19:33 +01:00
2018-07-05 23:21:10 +02:00
2019-01-13 09:51:01 +01:00
2018-06-18 22:40:32 +02:00
2020-06-03 08:19:43 +02:00
2020-08-05 10:06:04 +02:00
2018-05-18 10:02:28 +02:00
2017-06-16 11:48:39 -04:00
2016-12-13 16:22:27 +01:00
2019-07-14 08:11:06 +02:00
2019-02-27 10:08:49 +01:00
2018-02-22 21:13:03 +01:00
2020-05-10 10:30:12 +02:00
2017-11-20 16:55:11 +01:00
2018-06-15 13:34:40 +02:00
2017-11-02 11:10:55 +01:00
2017-05-17 16:03:40 +02:00
2017-04-28 10:57:33 +02:00
2018-03-26 12:07:48 -04:00
2018-03-26 12:07:48 -04:00
2020-01-27 14:51:06 +01:00
2016-12-15 11:07:52 +01:00
2018-07-24 14:10:43 -07:00
2016-12-15 11:07:53 +01:00
2020-07-29 10:16:44 +02:00
2018-06-30 21:08:12 +09:00
2018-02-19 14:53:14 +01:00
2020-10-30 10:38:28 +01:00
2018-06-18 22:40:32 +02:00
2020-05-10 10:30:12 +02:00
2020-04-02 15:28:20 +02:00
2020-02-05 14:43:46 +00:00
2016-02-24 09:04:38 +01:00
2019-05-16 19:41:20 +02:00
2017-11-02 11:10:55 +01:00
2018-06-18 22:40:32 +02:00
2020-05-10 10:30:12 +02:00
2020-03-05 16:42:13 +01:00
2020-10-07 08:00:07 +02:00
2017-01-12 10:15:18 +01:00
2017-12-11 12:16:04 +01:00
2019-06-25 11:36:02 +08:00