From: Jes Sorensen <[email protected]>
Signed-off-by: Jes Sorensen <[email protected]>
---
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
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel