staging: rtl8188eu: Remove unused function rtw_validate_ssid()
authornavin patidar <navin.patidar@gmail.com>
Sun, 13 Jul 2014 14:29:26 +0000 (19:59 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jul 2014 19:28:23 +0000 (12:28 -0700)
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_ioctl_set.c
drivers/staging/rtl8188eu/include/rtw_ioctl_set.h

index 09d5bf4c166d27b27d16a81f492d6e45dee53b4b..95c65392e3688b2a655092327339d14a8b46e910 100644 (file)
@@ -34,32 +34,6 @@ extern void indicate_wx_scan_complete_event(struct adapter *padapter);
                (addr[4] == 0xff) && (addr[5] == 0xff))  ? true : false \
 )
 
-u8 rtw_validate_ssid(struct ndis_802_11_ssid *ssid)
-{
-       u8       i;
-       u8      ret = true;
-
-
-       if (ssid->SsidLength > 32) {
-               RT_TRACE(_module_rtl871x_ioctl_set_c_, _drv_err_, ("ssid length >32\n"));
-               ret = false;
-               goto exit;
-       }
-
-       for (i = 0; i < ssid->SsidLength; i++) {
-               /* wifi, printable ascii code must be supported */
-               if (!((ssid->Ssid[i] >= 0x20) && (ssid->Ssid[i] <= 0x7e))) {
-                       RT_TRACE(_module_rtl871x_ioctl_set_c_, _drv_err_, ("ssid has nonprintabl ascii\n"));
-                       ret = false;
-                       break;
-               }
-       }
-
-exit:
-
-       return ret;
-}
-
 u8 rtw_do_join(struct adapter *padapter)
 {
        struct list_head *plist, *phead;
index 525abbd799bcdda613b2571f16b70b716eb5a555..11791cb80d8c1cac88027ddded309874d0427964 100644 (file)
@@ -40,7 +40,6 @@ u8 rtw_set_802_11_remove_wep(struct adapter *adapter, u32 keyindex);
 u8 rtw_set_802_11_ssid(struct adapter *adapt, struct ndis_802_11_ssid *ssid);
 u8 rtw_set_802_11_remove_key(struct adapter *adapt,
                             struct ndis_802_11_remove_key *key);
-u8 rtw_validate_ssid(struct ndis_802_11_ssid *ssid);
 u16 rtw_get_cur_max_rate(struct adapter *adapter);
 int rtw_set_country(struct adapter *adapter, const char *country_code);