staging: rtl8723au: rtw_cfg80211_add_wep(): Get rid of unused keyindex flags

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Jes Sorensen 2014-05-21 09:37:37 +02:00 committed by Greg Kroah-Hartman
parent 1e6e7f6030
commit 6893c8ebba

View File

@ -1935,16 +1935,12 @@ exit:
return ret; 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) struct ndis_802_11_wep *wep)
{ {
u8 bdefaultkey;
u8 btransmitkey;
int keyid, res; int keyid, res;
struct security_priv *psecuritypriv = &padapter->securitypriv; struct security_priv *psecuritypriv = &padapter->securitypriv;
bdefaultkey = (wep->KeyIndex & 0x40000000) > 0 ? false : true;
btransmitkey = (wep->KeyIndex & 0x80000000) > 0 ? true : false;
keyid = wep->KeyIndex & 0x3fffffff; keyid = wep->KeyIndex & 0x3fffffff;
if (keyid >= 4) { 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 = wep_key_idx;
pwep->KeyIndex |= 0x80000000;
memcpy(pwep->KeyMaterial, (void *)sme->key, pwep->KeyLength); memcpy(pwep->KeyMaterial, (void *)sme->key, pwep->KeyLength);