Commit 5631f829 authored by Stanislaw Gruszka's avatar Stanislaw Gruszka Committed by Greg Kroah-Hartman
Browse files

wifi: iwlegacy: Check rate_idx range after addition



[ Upstream commit 0de19d5a ]

Limit rate_idx to IL_LAST_OFDM_RATE for 5GHz band for thinkable case
the index is incorrect.

Reported-by: default avatarFedor Pchelkin <pchelkin@ispras.ru>
Reported-by: default avatarAlexei Safin <a.safin@rosa.ru>
Signed-off-by: default avatarStanislaw Gruszka <stf_xl@wp.pl>
Reviewed-by: default avatarFedor Pchelkin <pchelkin@ispras.ru>
Link: https://patch.msgid.link/20250525144524.GA172583@wp.pl


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 467e5c00
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment