diff options
author | Jean Tourrilhes <jt@hpl.hp.com> | 2006-08-29 21:02:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-09-25 16:52:15 -0400 |
commit | eeec9f1a931262d69811135092c8447d6dccc3e6 (patch) | |
tree | 8480c04931d504667afb8c34f61ae9826925b8d4 /drivers/net | |
parent | 5b63bae0ab750942e84bfb9b353e6222583457a2 (diff) |
[PATCH] WE-21 for orinoco
Signed-off-by: Jean Tourrilhes <jt@hpl.hp.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-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 | ||