diff options
author | Jean Tourrilhes <jt@hpl.hp.com> | 2006-08-29 21:00:48 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-09-25 16:52:15 -0400 |
commit | 5b63bae0ab750942e84bfb9b353e6222583457a2 (patch) | |
tree | 788ebae3d57eb8da46d6c22a45cadbcff702b34f /drivers/net/wireless | |
parent | 9fb08363f1f6d360dbaf6d7f51b9e7ca07c05ecd (diff) |
[PATCH] WE-21 for ipw2100
Signed-off-by: Jean Tourrilhes <jt@hpl.hp.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ipw2100.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c index b4d81a04c895..6c5add701a6f 100644 --- a/drivers/net/wireless/ipw2100.c +++ b/drivers/net/wireless/ipw2100.c | |||
@@ -6958,7 +6958,7 @@ static int ipw2100_wx_set_essid(struct net_device *dev, | |||
6958 | } | 6958 | } |
6959 | 6959 | ||
6960 | if (wrqu->essid.flags && wrqu->essid.length) { | 6960 | if (wrqu->essid.flags && wrqu->essid.length) { |
6961 | length = wrqu->essid.length - 1; | 6961 | length = wrqu->essid.length; |
6962 | essid = extra; | 6962 | essid = extra; |
6963 | } | 6963 | } |
6964 | 6964 | ||
@@ -7051,7 +7051,7 @@ static int ipw2100_wx_get_nick(struct net_device *dev, | |||
7051 | 7051 | ||
7052 | struct ipw2100_priv *priv = ieee80211_priv(dev); | 7052 | struct ipw2100_priv *priv = ieee80211_priv(dev); |
7053 | 7053 | ||
7054 | wrqu->data.length = strlen(priv->nick) + 1; | 7054 | wrqu->data.length = strlen(priv->nick); |
7055 | memcpy(extra, priv->nick, wrqu->data.length); | 7055 | memcpy(extra, priv->nick, wrqu->data.length); |
7056 | wrqu->data.flags = 1; /* active */ | 7056 | wrqu->data.flags = 1; /* active */ |
7057 | 7057 | ||
@@ -7343,14 +7343,14 @@ static int ipw2100_wx_set_retry(struct net_device *dev, | |||
7343 | goto done; | 7343 | goto done; |
7344 | } | 7344 | } |
7345 | 7345 | ||
7346 | if (wrqu->retry.flags & IW_RETRY_MIN) { | 7346 | if (wrqu->retry.flags & IW_RETRY_SHORT) { |
7347 | err = ipw2100_set_short_retry(priv, wrqu->retry.value); | 7347 | err = ipw2100_set_short_retry(priv, wrqu->retry.value); |
7348 | IPW_DEBUG_WX("SET Short Retry Limit -> %d \n", | 7348 | IPW_DEBUG_WX("SET Short Retry Limit -> %d \n", |
7349 | wrqu->retry.value); | 7349 | wrqu->retry.value); |
7350 | goto done; | 7350 | goto done; |
7351 | } | 7351 | } |
7352 | 7352 | ||
7353 | if (wrqu->retry.flags & IW_RETRY_MAX) { | 7353 | if (wrqu->retry.flags & IW_RETRY_LONG) { |
7354 | err = ipw2100_set_long_retry(priv, wrqu->retry.value); | 7354 | err = ipw2100_set_long_retry(priv, wrqu->retry.value); |
7355 | IPW_DEBUG_WX("SET Long Retry Limit -> %d \n", | 7355 | IPW_DEBUG_WX("SET Long Retry Limit -> %d \n", |
7356 | wrqu->retry.value); | 7356 | wrqu->retry.value); |
@@ -7383,14 +7383,14 @@ static int ipw2100_wx_get_retry(struct net_device *dev, | |||
7383 | if ((wrqu->retry.flags & IW_RETRY_TYPE) == IW_RETRY_LIFETIME) | 7383 | if ((wrqu->retry.flags & IW_RETRY_TYPE) == IW_RETRY_LIFETIME) |
7384 | return -EINVAL; | 7384 | return -EINVAL; |
7385 | 7385 | ||
7386 | if (wrqu->retry.flags & IW_RETRY_MAX) { | 7386 | if (wrqu->retry.flags & IW_RETRY_LONG) { |
7387 | wrqu->retry.flags = IW_RETRY_LIMIT | IW_RETRY_MAX; | 7387 | wrqu->retry.flags = IW_RETRY_LIMIT | IW_RETRY_LONG; |
7388 | wrqu->retry.value = priv->long_retry_limit; | 7388 | wrqu->retry.value = priv->long_retry_limit; |
7389 | } else { | 7389 | } else { |
7390 | wrqu->retry.flags = | 7390 | wrqu->retry.flags = |
7391 | (priv->short_retry_limit != | 7391 | (priv->short_retry_limit != |
7392 | priv->long_retry_limit) ? | 7392 | priv->long_retry_limit) ? |
7393 | IW_RETRY_LIMIT | IW_RETRY_MIN : IW_RETRY_LIMIT; | 7393 | IW_RETRY_LIMIT | IW_RETRY_SHORT : IW_RETRY_LIMIT; |
7394 | 7394 | ||
7395 | wrqu->retry.value = priv->short_retry_limit; | 7395 | wrqu->retry.value = priv->short_retry_limit; |
7396 | } | 7396 | } |