[PATCH 13/74] staging: rtl8723au: rtw_cfg80211_add_wep(): Get rid of unused keyindex flags
Jes.Sorensen at redhat.com
Jes.Sorensen at redhat.com
Wed May 21 07:37:37 UTC 2014
From: Jes Sorensen <Jes.Sorensen at redhat.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen at redhat.com>
---
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 d89b400..bc27b59 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);
--
1.9.0
More information about the devel
mailing list