Commit 17ae2acd authored by Tomislav Požega's avatar Tomislav Požega Committed by Kalle Valo
Browse files

rt2x00: remove unneeded check



Remove band check from rf53xx channel config routine since all chips
using it are single band.

Signed-off-by: default avatarTomislav Požega <pozega.tomislav@gmail.com>
Signed-off-by: default avatarStanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent dc76bb1e
Loading
Loading
Loading
Loading
+50 −53
Original line number Diff line number Diff line
@@ -2966,6 +2966,7 @@ static void rt2800_config_channel_rf53xx(struct rt2x00_dev *rt2x00dev,
					 struct channel_info *info)
{
	u8 rfcsr;
	int idx = rf->channel-1;

	rt2800_rfcsr_write(rt2x00dev, 8, rf->rf1);
	rt2800_rfcsr_write(rt2x00dev, 9, rf->rf3);
@@ -3003,9 +3004,6 @@ static void rt2800_config_channel_rf53xx(struct rt2x00_dev *rt2x00dev,

	rt2800_freq_cal_mode1(rt2x00dev);

	if (rf->channel <= 14) {
		int idx = rf->channel-1;

	if (rt2x00_has_cap_bt_coexist(rt2x00dev)) {
		if (rt2x00_rt_rev_gte(rt2x00dev, RT5390, REV_RT5390F)) {
			/* r55/r59 value array of channel 1~14 */
@@ -3059,7 +3057,6 @@ static void rt2800_config_channel_rf53xx(struct rt2x00_dev *rt2x00dev,
		}
	}
}
}

static void rt2800_config_channel_rf55xx(struct rt2x00_dev *rt2x00dev,
					 struct ieee80211_conf *conf,