summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorIgor Mitsyanko <igor.mitsyanko.os@quantenna.com>2017-09-21 14:34:33 -0700
committerKalle Valo <kvalo@codeaurora.org>2017-09-25 11:27:15 +0300
commit3656ab0fef5b29e95d251e3f0a0bfb7da311337a (patch)
tree0267c11f1e9cd4697d7d8d35e9149ab543a5cba8 /drivers/net/wireless
parent96d4eaf20fb8d34a475c4086de3ed9bd483993d6 (diff)
downloadblackbird-op-linux-3656ab0fef5b29e95d251e3f0a0bfb7da311337a.tar.gz
blackbird-op-linux-3656ab0fef5b29e95d251e3f0a0bfb7da311337a.zip
qtnfmac: let wifi card handle channel switch request to the same chan
No reason to verify channel switch request in driver, it can simply be forwarded to wireless device. Device can perform required checks and return appropriate error code, and driver may not even have information on current operational channel. Signed-off-by: Igor Mitsyanko <igor.mitsyanko.os@quantenna.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/quantenna/qtnfmac/cfg80211.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
index 17b323e2e83e..4590f3038120 100644
--- a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
+++ b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
@@ -846,11 +846,6 @@ static int qtnf_channel_switch(struct wiphy *wiphy, struct net_device *dev,
return -EINVAL;
}
- if (cfg80211_chandef_identical(&params->chandef, &mac->chandef)) {
- pr_err("%s: switch request to the same channel\n", dev->name);
- return -EALREADY;
- }
-
ret = qtnf_cmd_send_chan_switch(mac, params);
if (ret)
pr_warn("%s: failed to switch to channel (%u)\n",
OpenPOWER on IntegriCloud