From: Jes Sorensen <jes.soren...@redhat.com>

Signed-off-by: Jes Sorensen <jes.soren...@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

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to