wifi: fix compile error [4/8]
authorWeiguang Ruan <Weiguang.ruan@amlogic.com>
Wed, 30 Aug 2017 08:14:12 +0000 (16:14 +0800)
committerWeiguang Ruan <Weiguang.ruan@amlogic.com>
Wed, 30 Aug 2017 08:17:39 +0000 (16:17 +0800)
PD# 150114:

Change-Id: Id8c4429a721f45a43339bf22b51b644fab8a9521
driver: bcmdhd.1.363.59.144.x.cn

bcmdhd.1.363.59.144.x.cn/wl_iw.c

index a26b4ca6eb29c43e1673e3dc07141c948ddeb8a8..389d8f8f0510b86d287ebe2f795c43494c9f4d83 100644 (file)
@@ -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);