* [PATCH] ipw2200: add iwconfig rts/frag auto support
@ 2007-01-11 9:32 Zhu Yi
0 siblings, 0 replies; only message in thread
From: Zhu Yi @ 2007-01-11 9:32 UTC (permalink / raw)
To: John W.Linville; +Cc: netdev
This patch add ipw2200 support for iwconfig rts/frag auto.
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
---
ipw2200.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff -urp a/drivers/net/wireless/ipw2200.c
b/drivers/net/wireless/ipw2200.c
--- a/drivers/net/wireless/ipw2200.c 2007-01-05 10:53:27.000000000 +0800
+++ b/drivers/net/wireless/ipw2200.c 2007-01-11 17:42:05.000000000 +0800
@@ -9381,7 +9381,7 @@ static int ipw_wx_set_rts(struct net_dev
{
struct ipw_priv *priv = ieee80211_priv(dev);
mutex_lock(&priv->mutex);
- if (wrqu->rts.disabled)
+ if (wrqu->rts.disabled || !wrqu->rts.fixed)
priv->rts_threshold = DEFAULT_RTS_THRESHOLD;
else {
if (wrqu->rts.value < MIN_RTS_THRESHOLD ||
@@ -9470,7 +9470,7 @@ static int ipw_wx_set_frag(struct net_de
{
struct ipw_priv *priv = ieee80211_priv(dev);
mutex_lock(&priv->mutex);
- if (wrqu->frag.disabled)
+ if (wrqu->frag.disabled || !wrqu->frag.fixed)
priv->ieee->fts = DEFAULT_FTS;
else {
if (wrqu->frag.value < MIN_FRAG_THRESHOLD ||
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-01-11 9:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-11 9:32 [PATCH] ipw2200: add iwconfig rts/frag auto support Zhu Yi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).