All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ath5k: Disable fast channel switching by default
@ 2011-06-02  0:09 Nick Kossifidis
  2011-06-03  9:59 ` Sedat Dilek
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Kossifidis @ 2011-06-02  0:09 UTC (permalink / raw)
  To: ath5k-devel, linux-wireless; +Cc: linville, me, mcgrof, jirislaby, nbd, br1

Disable fast channel change by default on AR2413/AR5413 due to
some bug reports (it still works for me but it's better to be safe).
Add a module parameter "fastchanswitch" in case anyone wants to enable
it and play with it.

Signed-off-by: Nick Kossifidis <mickflemm@gmail.com>

diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c
index 2204762..b6c5d37 100644
--- a/drivers/net/wireless/ath/ath5k/base.c
+++ b/drivers/net/wireless/ath/ath5k/base.c
@@ -72,6 +72,11 @@ static int modparam_all_channels;
 module_param_named(all_channels, modparam_all_channels, bool, S_IRUGO);
 MODULE_PARM_DESC(all_channels, "Expose all channels the device can use.");
 
+static int modparam_fastchanswitch;
+module_param_named(fastchanswitch, modparam_fastchanswitch, bool, S_IRUGO);
+MODULE_PARM_DESC(fastchanswitch, "Enable fast channel switching for AR2413/AR5413 radios.");
+
+
 /* Module info */
 MODULE_AUTHOR("Jiri Slaby");
 MODULE_AUTHOR("Nick Kossifidis");
@@ -2686,6 +2691,7 @@ ath5k_reset(struct ath5k_softc *sc, struct ieee80211_channel *chan,
 	struct ath5k_hw *ah = sc->ah;
 	struct ath_common *common = ath5k_hw_common(ah);
 	int ret, ani_mode;
+	bool fast;
 
 	ATH5K_DBG(sc, ATH5K_DEBUG_RESET, "resetting\n");
 
@@ -2705,7 +2711,10 @@ ath5k_reset(struct ath5k_softc *sc, struct ieee80211_channel *chan,
 	ath5k_drain_tx_buffs(sc);
 	if (chan)
 		sc->curchan = chan;
-	ret = ath5k_hw_reset(ah, sc->opmode, sc->curchan, chan != NULL,
+
+	fast = ((chan != NULL) && modparam_fastchanswitch) ? 1 : 0;
+
+	ret = ath5k_hw_reset(ah, sc->opmode, sc->curchan, fast,
 								skip_pcu);
 	if (ret) {
 		ATH5K_ERR(sc, "can't reset hardware (%d)\n", ret);
diff --git a/drivers/net/wireless/ath/ath5k/reset.c b/drivers/net/wireless/ath/ath5k/reset.c
index 3510de2..126a4ea 100644
--- a/drivers/net/wireless/ath/ath5k/reset.c
+++ b/drivers/net/wireless/ath/ath5k/reset.c
@@ -1124,8 +1124,11 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode,
 			/* Non fatal, can happen eg.
 			 * on mode change */
 			ret = 0;
-		} else
+		} else {
+			ATH5K_DBG(ah->ah_sc, ATH5K_DEBUG_RESET,
+				"fast chan change successful\n");
 			return 0;
+		}
 	}
 
 	/*

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ath5k: Disable fast channel switching by default
  2011-06-02  0:09 [PATCH] ath5k: Disable fast channel switching by default Nick Kossifidis
@ 2011-06-03  9:59 ` Sedat Dilek
  2011-06-03 13:30   ` Seth Forshee
  0 siblings, 1 reply; 3+ messages in thread
From: Sedat Dilek @ 2011-06-03  9:59 UTC (permalink / raw)
  To: ath5k-devel, linux-wireless, linville, me, mcgrof, jirislaby, nbd, br1

On Thu, Jun 2, 2011 at 2:09 AM, Nick Kossifidis <mickflemm@gmail.com> wrote:
> Disable fast channel change by default on AR2413/AR5413 due to
> some bug reports (it still works for me but it's better to be safe).
> Add a module parameter "fastchanswitch" in case anyone wants to enable
> it and play with it.
>
> Signed-off-by: Nick Kossifidis <mickflemm@gmail.com>
>

Already tested your initial patch from [1] against linux-next (next-20110601).

Feel free to add...

     Tested-by: Sedat Dilek <sedat.dilek@gmail.com>

- Sedat -

[1] http://www.kernel.org/pub/linux/kernel/people/mickflemm/01-fast-chan-switch-modparm

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ath5k: Disable fast channel switching by default
  2011-06-03  9:59 ` Sedat Dilek
@ 2011-06-03 13:30   ` Seth Forshee
  0 siblings, 0 replies; 3+ messages in thread
From: Seth Forshee @ 2011-06-03 13:30 UTC (permalink / raw)
  To: ath5k-devel, linux-wireless, linville, me, mcgrof, jirislaby,
	nbd, br1, sedat.dilek

On Fri, Jun 03, 2011 at 11:59:41AM +0200, Sedat Dilek wrote:
> On Thu, Jun 2, 2011 at 2:09 AM, Nick Kossifidis <mickflemm@gmail.com> wrote:
> > Disable fast channel change by default on AR2413/AR5413 due to
> > some bug reports (it still works for me but it's better to be safe).
> > Add a module parameter "fastchanswitch" in case anyone wants to enable
> > it and play with it.
> >
> > Signed-off-by: Nick Kossifidis <mickflemm@gmail.com>
> >
> 
> Already tested your initial patch from [1] against linux-next (next-20110601).

It's also been tested by a number of our users and verified to fix the
wireless problems they've been seeing in .38. I'd suggest Cc-ing stable
for .38.x and .39.x.

Seth

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-06-03 13:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-02  0:09 [PATCH] ath5k: Disable fast channel switching by default Nick Kossifidis
2011-06-03  9:59 ` Sedat Dilek
2011-06-03 13:30   ` Seth Forshee

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.