]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
staging: rtl8723bs: os_dep: fix spelling mistake "offet" -> "offset"
[linux.git] / drivers / staging / rtl8723bs / os_dep / ioctl_linux.c
index 99e6b1028f71409d380fbbb545ae5fc37d9be25f..8e58763c8a8d83d0f9a35bb4d59edd87cdb70ac6 100644 (file)
 #define RATE_COUNT 4
 
 /*  combo scan */
-#define WEXT_CSCAN_AMOUNT 9
-#define WEXT_CSCAN_BUF_LEN             360
 #define WEXT_CSCAN_HEADER              "CSCAN S\x01\x00\x00S\x00"
 #define WEXT_CSCAN_HEADER_SIZE         12
 #define WEXT_CSCAN_SSID_SECTION                'S'
 #define WEXT_CSCAN_CHANNEL_SECTION     'C'
-#define WEXT_CSCAN_NPROBE_SECTION      'N'
 #define WEXT_CSCAN_ACTV_DWELL_SECTION  'A'
 #define WEXT_CSCAN_PASV_DWELL_SECTION  'P'
 #define WEXT_CSCAN_HOME_DWELL_SECTION  'H'
@@ -215,8 +212,6 @@ static char *translate_scan(struct adapter *padapter,
        } else if (ht_cap) {
                if (mcs_rate&0x8000) { /* MCS15 */
                        max_rate = (bw_40MHz) ? ((short_GI)?300:270):((short_GI)?144:130);
-               } else if (mcs_rate&0x0080) { /* MCS7 */
-                       max_rate = (bw_40MHz) ? ((short_GI)?150:135):((short_GI)?72:65);
                } else { /* default MCS7 */
                        /* DBG_871X("wx_get_scan, mcs_rate_bitmap = 0x%x\n", mcs_rate); */
                        max_rate = (bw_40MHz) ? ((short_GI)?150:135):((short_GI)?72:65);
@@ -2430,13 +2425,6 @@ static  int rtw_drvext_hdl(struct net_device *dev, struct iw_request_info *info,
        return 0;
 }
 
-static int rtw_mp_ioctl_hdl(struct net_device *dev, struct iw_request_info *info,
-                                               union iwreq_data *wrqu, char *extra)
-{
-       int ret = 0;
-       return ret;
-}
-
 static int rtw_get_ap_info(struct net_device *dev,
                                struct iw_request_info *info,
                                union iwreq_data *wrqu, char *extra)
@@ -2798,7 +2786,7 @@ static int rtw_dbg_port(struct net_device *dev,
 
                                        DBG_871X("oper_ch =%d\n", rtw_get_oper_ch(padapter));
                                        DBG_871X("oper_bw =%d\n", rtw_get_oper_bw(padapter));
-                                       DBG_871X("oper_ch_offet =%d\n", rtw_get_oper_choffset(padapter));
+                                       DBG_871X("oper_ch_offset =%d\n", rtw_get_oper_choffset(padapter));
 
                                        break;
                                case 0x05:
@@ -4463,43 +4451,6 @@ static int rtw_pm_set(struct net_device *dev,
        return ret;
 }
 
-static int rtw_mp_efuse_get(struct net_device *dev,
-                       struct iw_request_info *info,
-                       union iwreq_data *wdata, char *extra)
-{
-       int err = 0;
-       return err;
-}
-
-static int rtw_mp_efuse_set(struct net_device *dev,
-                       struct iw_request_info *info,
-                       union iwreq_data *wdata, char *extra)
-{
-       int err = 0;
-       return err;
-}
-
-static int rtw_tdls(struct net_device *dev,
-                               struct iw_request_info *info,
-                               union iwreq_data *wrqu, char *extra)
-{
-       int ret = 0;
-       return ret;
-}
-
-
-static int rtw_tdls_get(struct net_device *dev,
-                               struct iw_request_info *info,
-                               union iwreq_data *wrqu, char *extra)
-{
-       int ret = 0;
-       return ret;
-}
-
-
-
-
-
 static int rtw_test(
        struct net_device *dev,
        struct iw_request_info *info,
@@ -4749,7 +4700,7 @@ static iw_handler rtw_private_handler[] = {
        rtw_wx_write32,                                 /* 0x00 */
        rtw_wx_read32,                                  /* 0x01 */
        rtw_drvext_hdl,                                 /* 0x02 */
-       rtw_mp_ioctl_hdl,                               /* 0x03 */
+       NULL,                                           /* 0x03 */
 
 /*  for MM DTV platform */
        rtw_get_ap_info,                                        /* 0x04 */
@@ -4776,15 +4727,15 @@ static iw_handler rtw_private_handler[] = {
        NULL,                                                   /* 0x12 */
        rtw_p2p_get2,                                   /* 0x13 */
 
-       rtw_tdls,                                               /* 0x14 */
-       rtw_tdls_get,                                   /* 0x15 */
+       NULL,                                           /* 0x14 */
+       NULL,                                           /* 0x15 */
 
        rtw_pm_set,                                             /* 0x16 */
        rtw_wx_priv_null,                               /* 0x17 */
        rtw_rereg_nd_name,                              /* 0x18 */
        rtw_wx_priv_null,                               /* 0x19 */
-       rtw_mp_efuse_set,                               /* 0x1A */
-       rtw_mp_efuse_get,                               /* 0x1B */
+       NULL,                                           /* 0x1A */
+       NULL,                                           /* 0x1B */
        NULL,                                                   /*  0x1C is reserved for hostapd */
        rtw_test,                                               /*  0x1D */
 };
@@ -4912,7 +4863,6 @@ static int rtw_ioctl_wext_private(struct net_device *dev, union iwreq_data *wrq_
        s32 k;
        const iw_handler *priv;         /* Private ioctl */
        const struct iw_priv_args *priv_args;   /* Private ioctl description */
-       u32 num_priv;                           /* Number of ioctl */
        u32 num_priv_args;                      /* Number of descriptions */
        iw_handler handler;
        int temp;
@@ -4948,7 +4898,6 @@ static int rtw_ioctl_wext_private(struct net_device *dev, union iwreq_data *wrq_
 
        priv = rtw_private_handler;
        priv_args = rtw_private_args;
-       num_priv = ARRAY_SIZE(rtw_private_handler);
        num_priv_args = ARRAY_SIZE(rtw_private_args);
 
        if (num_priv_args == 0) {