Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3656ab0f authored by Igor Mitsyanko's avatar Igor Mitsyanko Committed by Kalle Valo
Browse files

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: default avatarIgor Mitsyanko <igor.mitsyanko.os@quantenna.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 96d4eaf2
Loading
Loading
Loading
Loading
+0 −5
Original line number Original line Diff line number Diff line
@@ -846,11 +846,6 @@ static int qtnf_channel_switch(struct wiphy *wiphy, struct net_device *dev,
		return -EINVAL;
		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);
	ret = qtnf_cmd_send_chan_switch(mac, params);
	if (ret)
	if (ret)
		pr_warn("%s: failed to switch to channel (%u)\n",
		pr_warn("%s: failed to switch to channel (%u)\n",