diff options
author | Michael Straube <straube.linux@gmail.com> | 2021-09-22 22:03:53 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-09-27 17:29:40 +0200 |
commit | 5bde5fbfbb7de0ac9d6a59d098edfe7937c740e0 (patch) | |
tree | d55cd10cbd319974fc95b57bb1dbf2f3f06b7c0d /drivers/staging/r8188eu/core/rtw_ioctl_set.c | |
parent | staging: r8188eu: remove rtw_set_802_11_remove_key() (diff) | |
download | linux-dev-5bde5fbfbb7de0ac9d6a59d098edfe7937c740e0.tar.xz linux-dev-5bde5fbfbb7de0ac9d6a59d098edfe7937c740e0.zip |
staging: r8188eu: remove rtw_set_802_11_remove_wep()
Function rtw_set_802_11_remove_wep() is not used, remove it.
Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20210922200420.9693-21-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/r8188eu/core/rtw_ioctl_set.c')
-rw-r--r-- | drivers/staging/r8188eu/core/rtw_ioctl_set.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/staging/r8188eu/core/rtw_ioctl_set.c b/drivers/staging/r8188eu/core/rtw_ioctl_set.c index 219d579a853f..9b083829fffa 100644 --- a/drivers/staging/r8188eu/core/rtw_ioctl_set.c +++ b/drivers/staging/r8188eu/core/rtw_ioctl_set.c @@ -467,31 +467,6 @@ exit: return ret; } -u8 rtw_set_802_11_remove_wep(struct adapter *padapter, u32 keyindex) -{ - u8 ret = _SUCCESS; - - if (keyindex >= 0x80000000 || !padapter) { - ret = false; - goto exit; - } else { - int res; - struct security_priv *psecuritypriv = &padapter->securitypriv; - if (keyindex < 4) { - memset(&psecuritypriv->dot11DefKey[keyindex], 0, 16); - res = rtw_set_key(padapter, psecuritypriv, keyindex, 0); - psecuritypriv->dot11DefKeylen[keyindex] = 0; - if (res == _FAIL) - ret = _FAIL; - } else { - ret = _FAIL; - } - } -exit: - - return ret; -} - /* * rtw_get_cur_max_rate - * @adapter: pointer to struct adapter structure |