]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: don't warn about CW params when not using them
authorBrian Norris <briannorris@chromium.org>
Thu, 18 Jul 2019 01:57:12 +0000 (18:57 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Sat, 20 Jul 2019 19:40:32 +0000 (21:40 +0200)
commita39496428a0e02af61e888bfc1fef25b9cec104e
treec8f52b6d96c2771f4d6827fe9a85cfefeeac8ed1
parentc61b0f5ec1b1b1bad734409a70ec2d25fb44f451
mac80211: don't warn about CW params when not using them

ieee80211_set_wmm_default() normally sets up the initial CW min/max for
each queue, except that it skips doing this if the driver doesn't
support ->conf_tx. We still end up calling drv_conf_tx() in some cases
(e.g., ieee80211_reconfig()), which also still won't do anything
useful...except it complains here about the invalid CW parameters.

Let's just skip the WARN if we weren't going to do anything useful with
the parameters.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Link: https://lore.kernel.org/r/20190718015712.197499-1-briannorris@chromium.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/driver-ops.c