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

Commit 2ec4ad49 authored by YueHaibing's avatar YueHaibing Committed by Kalle Valo
Browse files

libertas_tf: Use correct channel range in lbtf_geo_init



It seems we should use 'range' instead of 'priv->range'
in lbtf_geo_init(), because 'range' is the corret one
related to current regioncode.

Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Fixes: 691cdb49 ("libertas_tf: command helper functions for libertas_tf")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 8812022c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ static void lbtf_geo_init(struct lbtf_private *priv)
			break;
		}

	for (ch = priv->range.start; ch < priv->range.end; ch++)
	for (ch = range->start; ch < range->end; ch++)
		priv->channels[CHAN_TO_IDX(ch)].flags = 0;
}