From 2e905529a761b5a6e6e763d9b11f6f1475301717 Mon Sep 17 00:00:00 2001 From: Weiguang Ruan Date: Wed, 30 Aug 2017 16:14:12 +0800 Subject: [PATCH] wifi: fix compile error [4/8] PD# 150114: Change-Id: Id8c4429a721f45a43339bf22b51b644fab8a9521 driver: bcmdhd.1.363.59.144.x.cn --- bcmdhd.1.363.59.144.x.cn/wl_iw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bcmdhd.1.363.59.144.x.cn/wl_iw.c b/bcmdhd.1.363.59.144.x.cn/wl_iw.c index a26b4ca..389d8f8 100644 --- a/bcmdhd.1.363.59.144.x.cn/wl_iw.c +++ b/bcmdhd.1.363.59.144.x.cn/wl_iw.c @@ -598,10 +598,11 @@ wl_iw_set_freq( fwrq->m /= 10; } /* handle 4.9GHz frequencies as Japan 4 GHz based channelization */ - if (fwrq->m > 4000 && fwrq->m < 5000) + if (fwrq->m > 4000 && fwrq->m < 5000) { sf = WF_CHAN_FACTOR_4_G; /* start factor for 4 GHz */ + } - chan = wf_mhz2channel(fwrq->m, sf); + chan = wf_mhz2channel(fwrq->m, sf); } WL_ERROR(("%s: chan=%d\n", __FUNCTION__, chan)); chan = htod32(chan); -- 2.20.1