From 6893c8ebba521ea9d0f1cc4a53233fcb09271d52 Mon Sep 17 00:00:00 2001 From: Jes Sorensen Date: Wed, 21 May 2014 09:37:37 +0200 Subject: [PATCH] staging: rtl8723au: rtw_cfg80211_add_wep(): Get rid of unused keyindex flags Signed-off-by: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c index d89b400bc683..bc27b590443a 100644 --- a/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c +++ b/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c @@ -1935,16 +1935,12 @@ exit: return ret; } -static int rtw_cfg80211_add_wep(struct rtw_adapter* padapter, +static int rtw_cfg80211_add_wep(struct rtw_adapter *padapter, struct ndis_802_11_wep *wep) { - u8 bdefaultkey; - u8 btransmitkey; int keyid, res; struct security_priv *psecuritypriv = &padapter->securitypriv; - bdefaultkey = (wep->KeyIndex & 0x40000000) > 0 ? false : true; - btransmitkey = (wep->KeyIndex & 0x80000000) > 0 ? true : false; keyid = wep->KeyIndex & 0x3fffffff; if (keyid >= 4) { @@ -2223,7 +2219,6 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev, } pwep->KeyIndex = wep_key_idx; - pwep->KeyIndex |= 0x80000000; memcpy(pwep->KeyMaterial, (void *)sme->key, pwep->KeyLength); -- 2.39.5