nl80211: fix beacon tx rate mask validation
authorRajkumar Manoharan <rmanohar@codeaurora.org>
Fri, 16 Oct 2020 20:15:26 +0000 (13:15 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 6 Nov 2020 09:02:38 +0000 (10:02 +0100)
commit857b34c4fb104cecc95cd5c5fea5052628758a0f
tree09c705c07c277c4d68faf5905280a18a3f6ab935
parentba5c25236bc3d399df82ebe923490ea8d2d35cf2
nl80211: fix beacon tx rate mask validation

While adding HE MCS beacon tx rate support, it is observed that legacy
beacon tx rate in VHT hwsim test suite is failed. Whenever the
application doesn't explicitly set VHT/MCS rate attribute in fixed rate
command, by default all HE MCS masks are enabled in cfg80211. In beacon
fixed rate, more than one rate mask is not allowed. Fix that by not
setting all rate mask by default in case of beacon tx rate.

Signed-off-by: Rajkumar Manoharan <rmanohar@codeaurora.org>
Link: https://lore.kernel.org/r/1602879327-29488-1-git-send-email-rmanohar@codeaurora.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c