Jonas Jelonek
ee34a19dbe
wifi: mac80211_hwsim: fix debugfs attribute ps with rc table support
...
[ Upstream commit 69188df5f6 ]
Fixes a warning that occurs when rc table support is enabled
(IEEE80211_HW_SUPPORTS_RC_TABLE) in mac80211_hwsim and the PS mode
is changed via the exported debugfs attribute.
When the PS mode is changed, a packet is broadcasted via
hwsim_send_nullfunc by creating and transmitting a plain skb with only
header initialized. The ieee80211 rate array in the control buffer is
zero-initialized. When ratetbl support is enabled, ieee80211_get_tx_rates
is called for the skb with sta parameter set to NULL and thus no
ratetbl can be used. The final rate array then looks like
[-1,0; 0,0; 0,0; 0,0] which causes the warning in ieee80211_get_tx_rate.
The issue is fixed by setting the count of the first rate with idx '0'
to 1 and hence ieee80211_get_tx_rates won't overwrite it with idx '-1'.
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com >
Signed-off-by: Johannes Berg <johannes.berg@intel.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2022-12-02 17:41:01 +01:00
..
2022-11-26 09:24:44 +01:00
2022-11-26 09:24:31 +01:00
2021-11-06 14:13:31 +01:00
2022-12-02 17:41:00 +01:00
2022-12-02 17:41:00 +01:00
2022-08-25 11:40:15 +02:00
2022-03-08 19:12:47 +01:00
2022-11-03 23:59:18 +09:00
2021-09-01 08:44:42 -07:00
2022-11-26 09:24:40 +01:00
2022-11-10 18:15:30 +01:00
2022-08-17 14:23:10 +02:00
2022-10-26 12:35:24 +02:00
2022-11-10 18:15:35 +01:00
2022-07-07 17:53:32 +02:00
2022-06-22 14:22:03 +02:00
2022-11-03 23:59:13 +09:00
2022-11-03 23:59:12 +09:00
2022-06-09 10:22:33 +02:00
2022-10-26 12:35:28 +02:00
2022-07-12 16:34:58 +02:00
2022-09-28 11:11:57 +02:00
2022-07-07 17:53:27 +02:00
2022-11-16 09:58:30 +01:00
2022-10-26 12:35:39 +02:00
2022-08-03 12:03:55 +02:00
2022-06-14 18:36:22 +02:00
2022-05-12 12:30:05 +02:00
2022-11-26 09:24:48 +01:00
2022-10-26 12:35:07 +02:00
2022-10-26 12:35:17 +02:00
2022-10-26 12:34:26 +02:00
2022-12-02 17:41:00 +01:00
2022-04-08 14:22:50 +02:00
2022-11-16 09:58:15 +01:00
2022-10-26 12:35:05 +02:00
2022-09-28 11:11:55 +02:00
2022-10-29 10:12:54 +02:00
2022-11-16 09:58:13 +01:00
2022-11-03 23:59:13 +09:00
2022-11-26 09:24:31 +01:00
2022-03-08 19:12:37 +01:00
2022-07-23 12:54:04 +02:00
2022-12-02 17:41:00 +01:00
2022-11-26 09:24:31 +01:00
2022-11-26 09:24:50 +01:00
2022-08-17 14:23:53 +02:00
2022-11-26 09:24:47 +01:00
2021-09-27 17:38:49 +02:00
2022-08-25 11:40:32 +02:00
2022-11-26 09:24:39 +01:00
2022-10-26 12:34:39 +02:00
2022-08-11 13:07:54 +02:00
2022-10-26 12:35:21 +02:00
2021-09-14 11:22:26 +02:00
2022-11-26 09:24:46 +01:00
2022-11-10 18:15:34 +01:00
2022-10-26 12:34:58 +02:00
2022-08-17 14:23:50 +02:00
2022-11-26 09:24:32 +01:00
2022-11-26 09:24:48 +01:00
2022-11-26 09:24:48 +01:00
2021-11-18 19:16:08 +01:00
2022-11-26 09:24:32 +01:00
2022-12-02 17:41:01 +01:00
2022-11-10 18:15:28 +01:00
2022-08-25 11:40:14 +02:00
2022-07-07 17:53:24 +02:00
2022-12-02 17:41:00 +01:00
2022-10-26 12:34:23 +02:00
2022-09-23 14:15:46 +02:00
2022-08-17 14:24:01 +02:00
2022-11-10 18:15:40 +01:00
2022-11-26 09:24:36 +01:00
2022-10-26 12:34:24 +02:00
2022-06-14 18:36:02 +02:00
2022-09-20 12:39:45 +02:00
2022-11-16 09:58:17 +01:00
2022-11-26 09:24:36 +01:00
2022-11-26 09:24:41 +01:00
2022-10-26 12:35:47 +02:00
2022-10-26 12:35:30 +02:00
2022-04-08 14:23:44 +02:00
2022-04-13 20:59:01 +02:00
2022-08-17 14:23:16 +02:00
2022-10-26 12:35:35 +02:00
2022-08-17 14:24:09 +02:00
2022-10-05 10:39:40 +02:00
2022-10-12 09:53:28 +02:00
2022-08-17 14:22:53 +02:00
2022-11-26 09:24:47 +01:00
2022-11-26 09:24:50 +01:00
2021-11-25 09:48:31 +01:00
2022-11-26 09:24:36 +01:00
2022-11-26 09:24:44 +01:00
2022-11-26 09:24:39 +01:00
2022-11-16 09:58:14 +01:00
2022-11-26 09:24:33 +01:00
2022-10-26 12:35:19 +02:00
2022-11-10 18:15:34 +01:00
2022-11-26 09:24:49 +01:00
2022-11-10 18:15:42 +01:00
2022-10-26 12:35:56 +02:00
2022-11-16 09:58:13 +01:00
2022-12-02 17:40:59 +01:00
2022-11-26 09:24:45 +01:00
2022-10-05 10:39:43 +02:00
2022-09-15 11:30:02 +02:00
2022-10-26 12:34:47 +02:00
2022-11-10 18:15:32 +01:00
2022-08-25 11:40:33 +02:00
2022-07-21 21:24:33 +02:00
2022-04-13 20:59:11 +02:00
2022-08-17 14:24:11 +02:00
2022-11-26 09:24:40 +01:00
2021-10-07 16:51:26 +02:00
2021-12-22 09:32:39 +01:00