From: Bartlomiej Zolnierkiewicz Date: Sun, 23 Aug 2009 13:31:15 +0000 (+0200) Subject: Staging: rt28x0: rt_ioctl_siwencode() fixes X-Git-Tag: 2.1b_release~11442^2~113 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e87be5d6aefdebeb66115480dbdf0c7fa96dd28;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git Staging: rt28x0: rt_ioctl_siwencode() fixes Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rt2860/sta_ioctl.c b/drivers/staging/rt2860/sta_ioctl.c index a5aa622..881ed6c 100644 --- a/drivers/staging/rt2860/sta_ioctl.c +++ b/drivers/staging/rt2860/sta_ioctl.c @@ -1437,9 +1437,6 @@ int rt_ioctl_siwencode(struct net_device *dev, pAdapter->StaCfg.AuthMode = Ndis802_11AuthModeOpen; goto done; } else if ( -#ifndef RT30xx - erq->length == 0 && -#endif (erq->flags & IW_ENCODE_RESTRICTED || erq->flags & IW_ENCODE_OPEN)) { STA_PORT_SECURED(pAdapter); pAdapter->StaCfg.PairCipher = Ndis802_11WEPEnabled; @@ -1450,9 +1447,6 @@ int rt_ioctl_siwencode(struct net_device *dev, pAdapter->StaCfg.AuthMode = Ndis802_11AuthModeShared; else pAdapter->StaCfg.AuthMode = Ndis802_11AuthModeOpen; -#ifndef RT30xx - goto done; -#endif } if (erq->length > 0) @@ -1471,12 +1465,8 @@ int rt_ioctl_siwencode(struct net_device *dev, //Using default key keyIdx = pAdapter->StaCfg.DefaultKeyId; } -#ifdef RT30xx else - { pAdapter->StaCfg.DefaultKeyId=keyIdx; - } -#endif NdisZeroMemory(pAdapter->SharedKey[BSS0][keyIdx].Key, 16);