wifi: update driver 201 to adapter LEDE
authorYueguie He <yuegui.he@amlogic.com>
Fri, 3 Nov 2017 03:05:30 +0000 (11:05 +0800)
committerYueguie He <yuegui.he@amlogic.com>
Fri, 3 Nov 2017 03:07:16 +0000 (11:07 +0800)
PD#NONE

Change-Id: I4a8fb6e02fee314829a045ab27d544b25bb8cd51
Signed-off-by: Yueguie He <yuegui.he@amlogic.com>
bcmdhd_1_201_59_x/wl_iw.c

index a56579166c5b9905fed226efbfd5ef6bf90eb738..862405fd68773c546ef043915c4128c1dbc593ff 100644 (file)
@@ -592,9 +592,9 @@ 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);
        }
        WL_ERROR(("%s: chan=%d\n", __FUNCTION__, chan));
@@ -3227,11 +3227,12 @@ wl_iw_ioctl(
 
 #if WIRELESS_EXT > 13
        case SIOCGIWSCAN:
-       if (g_iscan)
+       if (g_iscan) {
                max_tokens = wrq->u.data.length;
-       else
+       } else {
                max_tokens = IW_SCAN_MAX_DATA;
-               break;
+       }
+       break;
 #endif /* WIRELESS_EXT > 13 */
 
        case SIOCSIWSPY: