diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-07-16 17:42:18 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2019-07-24 14:53:40 +0300 |
commit | 2ec4ad49b98e4a14147d04f914717135eca7c8b1 (patch) | |
tree | 8e589c83735c84ea8f1c95234fd8bb0983be680f | |
parent | 8812022cb2fdaa1c6d7e0c3e028b45ca039650ea (diff) | |
download | linux-2ec4ad49b98e4a14147d04f914717135eca7c8b1.tar.xz |
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: Hulk Robot <hulkci@huawei.com>
Fixes: 691cdb49388b ("libertas_tf: command helper functions for libertas_tf")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
-rw-r--r-- | drivers/net/wireless/marvell/libertas_tf/cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/marvell/libertas_tf/cmd.c b/drivers/net/wireless/marvell/libertas_tf/cmd.c index 1eacca0d079b..a0b4c9debc11 100644 --- a/drivers/net/wireless/marvell/libertas_tf/cmd.c +++ b/drivers/net/wireless/marvell/libertas_tf/cmd.c @@ -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; } |