staging: rtl8188eu: Remove unused function rtw_set_802_11_remove_key()
authornavin patidar <navin.patidar@gmail.com>
Sun, 13 Jul 2014 14:29:28 +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 8c107f8a9eeabb8e59da19ca69b6fa757fe90a46..f4116d1c17ed8c61bdddf33de3575ecb81eacbb9 100644 (file)
@@ -591,44 +591,6 @@ exit:
        return ret;
 }
 
-u8 rtw_set_802_11_remove_key(struct adapter *padapter, struct ndis_802_11_remove_key *key)
-{
-       u8 *pbssid;
-       struct sta_info *stainfo;
-       u8      bgroup = (key->KeyIndex & 0x4000000) > 0 ? false : true;
-       u8      keyIndex = (u8)key->KeyIndex & 0x03;
-       u8      ret = _SUCCESS;
-
-
-       if ((key->KeyIndex & 0xbffffffc) > 0) {
-               ret = _FAIL;
-               goto exit;
-       }
-
-       if (bgroup) {
-               /*  clear group key by index */
-
-               memset(&padapter->securitypriv.dot118021XGrpKey[keyIndex], 0, 16);
-
-               /*  \todo Send a H2C Command to Firmware for removing this Key in CAM Entry. */
-       } else {
-               pbssid = get_bssid(&padapter->mlmepriv);
-               stainfo = rtw_get_stainfo(&padapter->stapriv, pbssid);
-               if (stainfo) {
-                       /*  clear key by BSSID */
-                       memset(&stainfo->dot118021x_UncstKey, 0, 16);
-
-                       /*  \todo Send a H2C Command to Firmware for disable this Key in CAM Entry. */
-               } else {
-                       ret = _FAIL;
-                       goto exit;
-               }
-       }
-exit:
-
-       return ret;
-}
-
 /*
 * rtw_get_cur_max_rate -
 * @adapter: pointer to struct adapter structure
index 9ec645666dde0071c3b8986db5f5121a993aea1c..a325326e1c720a707a996897a4e2539dd266882e 100644 (file)
@@ -37,8 +37,6 @@ u8 rtw_set_802_11_infrastructure_mode(struct adapter *adapter,
                                      enum ndis_802_11_network_infra type);
 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);
 u16 rtw_get_cur_max_rate(struct adapter *adapter);
 int rtw_set_country(struct adapter *adapter, const char *country_code);