linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christian Lamparter <chunkeey@googlemail.com>
To: Michael Buesch <mb@bu3sch.de>, kvalo@adurom.com
Cc: Johannes Berg <johannes@sipsolutions.net>,
	"linux-wireless" <linux-wireless@vger.kernel.org>
Subject: Re: Powersave broken on p54
Date: Wed, 2 Mar 2011 19:18:30 +0100	[thread overview]
Message-ID: <201103021918.30528.chunkeey@googlemail.com> (raw)
In-Reply-To: <1299086257.13604.17.camel@marge>

On Wednesday 02 March 2011 18:17:37 Michael Buesch wrote:
> On Wed, 2011-03-02 at 18:13 +0100, Christian Lamparter wrote:
> > sure there was the rssi->dbm update (I hope you've already updated
> > your eeprom image.)
> 
> What change to the eeprom is needed? My eeprom doesn't
> contain any rssi info (see recent NULL ptr fix).

I think you should (re-)add it, I don't know what the
firmware is doing with it, but maybe Kalle knows more?

see "p54spi: update sample eeprom"
6c1cef43fb9d4979f9f7e0dcc71f61921730149b

(Note: If the rssi values are missing, the driver uses
the default for Indigo/Duette/Frisbee and XBow RF.
But these parameter could confuse p54spi's Longbow RF?)

> > No idea, it looks like the ps-poll is broken, because
> > "iwconfig wlanX power timeout 10" fixes the long delays
> > almost immediately. [let's see if there's more]
> 
> So maybe it's a generic mac80211 bug? Are there other
> devices with PS issues?
Not sure, don't have any hardware to play with ATM.
But maybe the attached "hack" helps a bit?
---
diff --git a/drivers/net/wireless/p54/fwio.c b/drivers/net/wireless/p54/fwio.c
index 2fab7d2..df56a82 100644
--- a/drivers/net/wireless/p54/fwio.c
+++ b/drivers/net/wireless/p54/fwio.c
@@ -615,8 +615,8 @@ int p54_set_ps(struct p54_common *priv)
 	psm->mode = cpu_to_le16(mode);
 	psm->aid = cpu_to_le16(priv->aid);
 	for (i = 0; i < ARRAY_SIZE(psm->intervals); i++) {
-		psm->intervals[i].interval =
-			cpu_to_le16(priv->hw->conf.listen_interval);
+		psm->intervals[i].interval = cpu_to_le16(1);
+//			cpu_to_le16(priv->hw->conf.listen_interval);
 		psm->intervals[i].periods = cpu_to_le16(1);
 	}
 

  reply	other threads:[~2011-03-02 18:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-01 18:12 Powersave broken on p54 Michael Büsch
2011-03-02 17:13 ` Christian Lamparter
2011-03-02 17:17   ` Michael Buesch
2011-03-02 18:18     ` Christian Lamparter [this message]
2011-03-04 16:49       ` Michael Buesch
2011-03-07 17:22       ` Michael Buesch
2011-03-08  7:43       ` Kalle Valo
2011-03-04  7:03     ` Luciano Coelho
2011-03-04 17:11       ` Luciano Coelho

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=201103021918.30528.chunkeey@googlemail.com \
    --to=chunkeey@googlemail.com \
    --cc=johannes@sipsolutions.net \
    --cc=kvalo@adurom.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mb@bu3sch.de \
    /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).