linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3/6] ath5k: continue reset sequence if gain calibration fails
@ 2009-01-22 13:44 Bob Copeland
  2009-01-22 17:36 ` Nick Kossifidis
  0 siblings, 1 reply; 5+ messages in thread
From: Bob Copeland @ 2009-01-22 13:44 UTC (permalink / raw)
  To: linville
  Cc: jirislaby, mickflemm, lrodriguez, linux-wireless, ath5k-devel,
	Bob Copeland

If gain calibration fails, then ath5k_hw_reset will skip writing some
important registers like the interrupt mask.  In legacy_hal, only an
error is emitted in this case but the reset proceeds, so follow suit
here.

Changes to reset.c
Changes-licensed-under: ISC

Changes to base.c
Changes-licensed-under: 3-Clause-BSD

Signed-off-by: Bob Copeland <me@bobcopeland.com>
---
 drivers/net/wireless/ath5k/reset.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/ath5k/reset.c b/drivers/net/wireless/ath5k/reset.c
index c7cd380..3c8d3d6 100644
--- a/drivers/net/wireless/ath5k/reset.c
+++ b/drivers/net/wireless/ath5k/reset.c
@@ -829,7 +829,6 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode,
 			AR5K_PHY_AGCCTL_CAL, 0, false)) {
 		ATH5K_ERR(ah->ah_sc, "gain calibration timeout (%uMHz)\n",
 			channel->center_freq);
-		return -EAGAIN;
 	}
 
 	/*
-- 
1.6.0.6



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

end of thread, other threads:[~2009-01-22 20:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-22 13:44 [PATCH 3/6] ath5k: continue reset sequence if gain calibration fails Bob Copeland
2009-01-22 17:36 ` Nick Kossifidis
2009-01-22 18:28   ` Bob Copeland
2009-01-22 19:03     ` Nick Kossifidis
2009-01-22 20:06       ` Bob Copeland

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).