]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mac80211_hwsim: avoid mac80211 warning on bad rate
authorJohannes Berg <johannes.berg@intel.com>
Wed, 5 Oct 2022 13:10:09 +0000 (15:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Oct 2022 06:01:45 +0000 (08:01 +0200)
commit2bee6f75e3c64097d1d11bc36f1e54a500060acc
tree7983c96147111c15159a257b7ab994db78ebf681
parent1d73c990e9bafc2754b1ced71345f73f5beb1781
wifi: mac80211_hwsim: avoid mac80211 warning on bad rate

commit 1833b6f46d7e2830251a063935ab464256defe22 upstream.

If the tool on the other side (e.g. wmediumd) gets confused
about the rate, we hit a warning in mac80211. Silence that
by effectively duplicating the check here and dropping the
frame silently (in mac80211 it's dropped with the warning).

Reported-by: Sönke Huster <shuster@seemoo.tu-darmstadt.de>
Tested-by: Sönke Huster <shuster@seemoo.tu-darmstadt.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mac80211_hwsim.c