OSDN Git Service

libertas_tf: Use correct channel range in lbtf_geo_init
authorYueHaibing <yuehaibing@huawei.com>
Tue, 16 Jul 2019 14:42:18 +0000 (22:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:51:02 +0000 (14:51 +0100)
commit81e26cee53be4ef24b8eac605291e7e3358facac
tree3b8572c2a5bd57edc98bb3d95f22f8b1972a5e49
parent9311fd211ad6d9779ceae504d63ee1d810f42503
libertas_tf: Use correct channel range in lbtf_geo_init

[ Upstream commit 2ec4ad49b98e4a14147d04f914717135eca7c8b1 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/marvell/libertas_tf/cmd.c