[PATCH] ipw2200: add iwconfig rts/frag auto support
This patch add ipw2200 support for iwconfig rts/frag auto. Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
2e9b2467de
commit
ea8862dc86
1 changed files with 2 additions and 2 deletions
|
@ -9166,7 +9166,7 @@ static int ipw_wx_set_rts(struct net_device *dev,
|
||||||
{
|
{
|
||||||
struct ipw_priv *priv = ieee80211_priv(dev);
|
struct ipw_priv *priv = ieee80211_priv(dev);
|
||||||
mutex_lock(&priv->mutex);
|
mutex_lock(&priv->mutex);
|
||||||
if (wrqu->rts.disabled)
|
if (wrqu->rts.disabled || !wrqu->rts.fixed)
|
||||||
priv->rts_threshold = DEFAULT_RTS_THRESHOLD;
|
priv->rts_threshold = DEFAULT_RTS_THRESHOLD;
|
||||||
else {
|
else {
|
||||||
if (wrqu->rts.value < MIN_RTS_THRESHOLD ||
|
if (wrqu->rts.value < MIN_RTS_THRESHOLD ||
|
||||||
|
@ -9255,7 +9255,7 @@ static int ipw_wx_set_frag(struct net_device *dev,
|
||||||
{
|
{
|
||||||
struct ipw_priv *priv = ieee80211_priv(dev);
|
struct ipw_priv *priv = ieee80211_priv(dev);
|
||||||
mutex_lock(&priv->mutex);
|
mutex_lock(&priv->mutex);
|
||||||
if (wrqu->frag.disabled)
|
if (wrqu->frag.disabled || !wrqu->frag.fixed)
|
||||||
priv->ieee->fts = DEFAULT_FTS;
|
priv->ieee->fts = DEFAULT_FTS;
|
||||||
else {
|
else {
|
||||||
if (wrqu->frag.value < MIN_FRAG_THRESHOLD ||
|
if (wrqu->frag.value < MIN_FRAG_THRESHOLD ||
|
||||||
|
|
Reference in a new issue