diff options
Diffstat (limited to 'drivers/net/wireless/orinoco.c')
-rw-r--r-- | drivers/net/wireless/orinoco.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/orinoco.c b/drivers/net/wireless/orinoco.c index 1840b69e3cb5..9e19a963febc 100644 --- a/drivers/net/wireless/orinoco.c +++ b/drivers/net/wireless/orinoco.c | |||
@@ -3037,7 +3037,7 @@ static int orinoco_ioctl_getessid(struct net_device *dev, | |||
3037 | } | 3037 | } |
3038 | 3038 | ||
3039 | erq->flags = 1; | 3039 | erq->flags = 1; |
3040 | erq->length = strlen(essidbuf) + 1; | 3040 | erq->length = strlen(essidbuf); |
3041 | 3041 | ||
3042 | return 0; | 3042 | return 0; |
3043 | } | 3043 | } |
@@ -3078,7 +3078,7 @@ static int orinoco_ioctl_getnick(struct net_device *dev, | |||
3078 | memcpy(nickbuf, priv->nick, IW_ESSID_MAX_SIZE+1); | 3078 | memcpy(nickbuf, priv->nick, IW_ESSID_MAX_SIZE+1); |
3079 | orinoco_unlock(priv, &flags); | 3079 | orinoco_unlock(priv, &flags); |
3080 | 3080 | ||
3081 | nrq->length = strlen(nickbuf)+1; | 3081 | nrq->length = strlen(nickbuf); |
3082 | 3082 | ||
3083 | return 0; | 3083 | return 0; |
3084 | } | 3084 | } |
@@ -3575,14 +3575,14 @@ static int orinoco_ioctl_getretry(struct net_device *dev, | |||
3575 | rrq->value = lifetime * 1000; /* ??? */ | 3575 | rrq->value = lifetime * 1000; /* ??? */ |
3576 | } else { | 3576 | } else { |
3577 | /* By default, display the min number */ | 3577 | /* By default, display the min number */ |
3578 | if ((rrq->flags & IW_RETRY_MAX)) { | 3578 | if ((rrq->flags & IW_RETRY_LONG)) { |
3579 | rrq->flags = IW_RETRY_LIMIT | IW_RETRY_MAX; | 3579 | rrq->flags = IW_RETRY_LIMIT | IW_RETRY_LONG; |
3580 | rrq->value = long_limit; | 3580 | rrq->value = long_limit; |
3581 | } else { | 3581 | } else { |
3582 | rrq->flags = IW_RETRY_LIMIT; | 3582 | rrq->flags = IW_RETRY_LIMIT; |
3583 | rrq->value = short_limit; | 3583 | rrq->value = short_limit; |
3584 | if(short_limit != long_limit) | 3584 | if(short_limit != long_limit) |
3585 | rrq->flags |= IW_RETRY_MIN; | 3585 | rrq->flags |= IW_RETRY_SHORT; |
3586 | } | 3586 | } |
3587 | } | 3587 | } |
3588 | 3588 | ||