提交 6e87be5d 编写于 作者: B Bartlomiej Zolnierkiewicz 提交者: Greg Kroah-Hartman

Staging: rt28x0: rt_ioctl_siwencode() fixes

Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 a0f2906f
...@@ -1437,9 +1437,6 @@ int rt_ioctl_siwencode(struct net_device *dev, ...@@ -1437,9 +1437,6 @@ int rt_ioctl_siwencode(struct net_device *dev,
pAdapter->StaCfg.AuthMode = Ndis802_11AuthModeOpen; pAdapter->StaCfg.AuthMode = Ndis802_11AuthModeOpen;
goto done; goto done;
} else if ( } else if (
#ifndef RT30xx
erq->length == 0 &&
#endif
(erq->flags & IW_ENCODE_RESTRICTED || erq->flags & IW_ENCODE_OPEN)) { (erq->flags & IW_ENCODE_RESTRICTED || erq->flags & IW_ENCODE_OPEN)) {
STA_PORT_SECURED(pAdapter); STA_PORT_SECURED(pAdapter);
pAdapter->StaCfg.PairCipher = Ndis802_11WEPEnabled; pAdapter->StaCfg.PairCipher = Ndis802_11WEPEnabled;
...@@ -1450,9 +1447,6 @@ int rt_ioctl_siwencode(struct net_device *dev, ...@@ -1450,9 +1447,6 @@ int rt_ioctl_siwencode(struct net_device *dev,
pAdapter->StaCfg.AuthMode = Ndis802_11AuthModeShared; pAdapter->StaCfg.AuthMode = Ndis802_11AuthModeShared;
else else
pAdapter->StaCfg.AuthMode = Ndis802_11AuthModeOpen; pAdapter->StaCfg.AuthMode = Ndis802_11AuthModeOpen;
#ifndef RT30xx
goto done;
#endif
} }
if (erq->length > 0) if (erq->length > 0)
...@@ -1471,12 +1465,8 @@ int rt_ioctl_siwencode(struct net_device *dev, ...@@ -1471,12 +1465,8 @@ int rt_ioctl_siwencode(struct net_device *dev,
//Using default key //Using default key
keyIdx = pAdapter->StaCfg.DefaultKeyId; keyIdx = pAdapter->StaCfg.DefaultKeyId;
} }
#ifdef RT30xx
else else
{
pAdapter->StaCfg.DefaultKeyId=keyIdx; pAdapter->StaCfg.DefaultKeyId=keyIdx;
}
#endif
NdisZeroMemory(pAdapter->SharedKey[BSS0][keyIdx].Key, 16); NdisZeroMemory(pAdapter->SharedKey[BSS0][keyIdx].Key, 16);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册