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

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
...@@ -65,7 +65,7 @@ static void lbtf_geo_init(struct lbtf_private *priv) ...@@ -65,7 +65,7 @@ static void lbtf_geo_init(struct lbtf_private *priv)
break; 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; priv->channels[CHAN_TO_IDX(ch)].flags = 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment