linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Maxim Levitsky <maximlevitsky@gmail.com>
To: ipw3945-devel@lists.sourceforge.net, linux-wireless@vger.kernel.org
Subject: Re: [BUG] IWL3945: Led doesn't blink in monitor mode
Date: Mon, 04 Aug 2008 00:56:18 +0300	[thread overview]
Message-ID: <48962982.1000000@gmail.com> (raw)
In-Reply-To: <48942C35.6020400@gmail.com>

Maxim Levitsky wrote:
> After fixing super annoying bug about garbage scan results,
> I noticed smaller bug:
> 
> My wireless leds stop blinking if I enable monitor mode
> (Note that this time this doesn't happen if I enable promisc mode)

Ok, now I understand how its leds work.

the STATISTICS_NOTIFICATION reply from microcode drives all the led 
blinking code. on each such notification the handler decides based on
traffic whenever to turn led solid or blink it.

the handler for 3945 actually counts recieved and transmitted packets!:

> static inline u8 get_blink_rate(struct iwl3945_priv *priv)
> {
> 	int index;
> 	u64 current_tpt = priv->rxtxpackets;
> 	s64 tpt = current_tpt - priv->led_tpt;
> 
> 	if (tpt < 0)
> 		tpt = -tpt;
> 	priv->led_tpt = current_tpt;


in iwl3945-led.c

priv->rxtxpackets is updated each time a packet is recieved/transmitted 
by iwl3945_pass_packet_to_mac80211:

> #ifdef CONFIG_IWL3945_LEDS
> 	if (ieee80211_is_data(hdr->frame_control))
> 		priv->rxtxpackets += len;
> #endif


and iwl3945_build_tx_cmd_basic:

> #ifdef CONFIG_IWL3945_LEDS
> 		priv->rxtxpackets += le16_to_cpu(cmd->cmd.tx.len);
> #endif




now the problem is that as soon as the firmware enters the monitor mode
it stops sending STATISTICS_NOTIFICATION.


So ether I need a way to tell firmware to continue sending this message,
or use a timer instead in monitor mode.

How I can tell the firmware to send STATISTICS_NOTIFICATION in monitor mode?
Intel developers, can you comment on this?

Btw, the led code really should be shared between 3945/4965.

Best regards,
	Maxim Levitsky

  parent reply	other threads:[~2008-08-03 21:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-02  9:43 [BUG] IWL3945: Led doesn't blink in monitor mode Maxim Levitsky
2008-08-02 12:57 ` [ipw3945-devel] " Tomas Winkler
2008-08-03 21:56 ` Maxim Levitsky [this message]
2008-08-03 22:33   ` 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=48962982.1000000@gmail.com \
    --to=maximlevitsky@gmail.com \
    --cc=ipw3945-devel@lists.sourceforge.net \
    --cc=linux-wireless@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).