From: Tino Keitel <tino.keitel+iwl@tikei.de>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: "Ondřej Kučera" <ondrej.kucera@centrum.cz>,
jikos@suse.cz, yi.zhu@intel.com, reinette.chatre@intel.com,
linux-wireless@vger.kernel.org,
ipw3945-devel@lists.sourceforge.net
Subject: Re: [ipw3945-devel] PROBLEM: Led for wifi blinking all the time
Date: Mon, 3 Nov 2008 21:14:12 +0100 [thread overview]
Message-ID: <20081103201412.GB8059@x61> (raw)
In-Reply-To: <20081031145434.GB4310@tuxdriver.com>
[-- Attachment #1: Type: text/plain, Size: 1294 bytes --]
On Fri, Oct 31, 2008 at 10:54:35 -0400, John W. Linville wrote:
> On Fri, Oct 31, 2008 at 02:19:53AM +0100, Ondřej Kučera wrote:
> > Hello,
> >
> > this is my first kernel bug report ever so I'm not 100% sure about the
> > protocol but I'll try my best...
> >
> > After upgrading to 2.6.27 the wifi led starts blinking right after
> > connecting to the network and then continues blinking even when there's
> > no network traffic at all. This wasn't happening before, the led used to
> > be just "on" when I was connected but not generating any traffic.
> >
> > Up to kernel 2.6.26.5 (the last 2.6.26.* kernel in my distribution -
> > ArchLinux) the behavior was correct, the problem first occurred with
> > 2.6.27 and is present up to 2.6.27.4 (the last of 2.6.27.* I've tried).
> > The driver used is iwl3945, the corresponding line from lspci:
> > 03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG
> > Network Connection (rev 02)
> >
> > If any other information is relevant, please tell me and I'll try to
> > provide it, too.
>
> I'm pretty sure this is how the iwlwifi team wants the LEDs to work...
To change from the annoying blinking to some more decent traffic
indicator, I wrote a small patch. I attached the version for 2.6.27.
Regards,
Tino
[-- Attachment #2: iwl-shorter-blink_2.6.27.patch --]
[-- Type: text/x-diff, Size: 952 bytes --]
diff --git a/drivers/net/wireless/iwlwifi/iwl-led.c b/drivers/net/wireless/iwlwifi/iwl-led.c
index 4eee1b1..50eff75 100644
--- a/drivers/net/wireless/iwlwifi/iwl-led.c
+++ b/drivers/net/wireless/iwlwifi/iwl-led.c
@@ -69,7 +69,7 @@ static const struct {
{15, 95, 95 },
{10, 110, 110},
{5, 130, 130},
- {0, 167, 167},
+ {0, 25, 25},
/* SOLID_ON */
{-1, IWL_LED_SOLID, 0}
};
@@ -289,7 +289,7 @@ static int iwl_get_blink_rate(struct iwl_priv *priv)
if (!priv->allow_blinking)
i = IWL_MAX_BLINK_TBL;
else
- for (i = 0; i < IWL_MAX_BLINK_TBL; i++)
+ for (i = IWL_MAX_BLINK_TBL - 1 ; i < IWL_MAX_BLINK_TBL; i++)
if (tpt > (blink_tbl[i].tpt * IWL_1MB_RATE))
break;
@@ -326,7 +326,7 @@ void iwl_leds_background(struct iwl_priv *priv)
}
if (!priv->last_blink_time ||
!time_after(jiffies, priv->last_blink_time +
- msecs_to_jiffies(1000)))
+ msecs_to_jiffies(40)))
return;
blink_idx = iwl_get_blink_rate(priv);
next prev parent reply other threads:[~2008-11-03 20:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-31 1:19 PROBLEM: Led for wifi blinking all the time Ondřej Kučera
2008-10-31 14:54 ` John W. Linville
2008-10-31 18:59 ` [ipw3945-devel] " Marcos Barbosa
2008-11-04 1:58 ` Ondřej Kučera
2008-11-04 17:35 ` reinette chatre
2008-11-03 20:14 ` Tino Keitel [this message]
2008-11-04 19:03 ` Tino Keitel
2008-11-05 0:58 ` Tomas Winkler
2008-11-05 1:04 ` Tomas Winkler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081103201412.GB8059@x61 \
--to=tino.keitel+iwl@tikei.de \
--cc=ipw3945-devel@lists.sourceforge.net \
--cc=jikos@suse.cz \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=ondrej.kucera@centrum.cz \
--cc=reinette.chatre@intel.com \
--cc=yi.zhu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox