summaryrefslogtreecommitdiff
path: root/include/uapi/linux/matroxfb.h
diff options
context:
space:
mode:
authorJonas Jelonek <jelonek.jonas@gmail.com>2022-10-14 16:54:39 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-12-08 11:18:28 +0100
commit27f557ac538e68bffcb57ae594d62dc9f83323a5 (patch)
treec944e0f4830f0d1887ec9dd986d4cf209e73cae3 /include/uapi/linux/matroxfb.h
parentc1ccef20f08e192228a2056808113b453d18c094 (diff)
wifi: mac80211_hwsim: fix debugfs attribute ps with rc table support
[ Upstream commit 69188df5f6e4cecc6b76b958979ba363cd5240e8 ] 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>
Diffstat (limited to 'include/uapi/linux/matroxfb.h')
0 files changed, 0 insertions, 0 deletions