wifi: mac80211: check basic rates validity
authorJohannes Berg <johannes.berg@intel.com>
Fri, 24 Feb 2023 09:52:19 +0000 (10:52 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 10 Mar 2023 10:47:00 +0000 (11:47 +0100)
commitce04abc3fcc62cd5640af981ebfd7c4dc3bded28
tree103567c17daaa8d4b7dfb3d7f18ca01076ac582b
parentb27f07c50a73e34eefb6b1030b235192b7ded850
wifi: mac80211: check basic rates validity

When userspace sets basic rates, it might send us some rates
list that's empty or consists of invalid values only. We're
currently ignoring invalid values and then may end up with a
rates bitmap that's empty, which later results in a warning.

Reject the call if there were no valid rates.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c