From: Johannes Berg <johannes@sipsolutions.net>
To: Niel Lambrechts <niel.lambrechts@gmail.com>
Cc: reinette chatre <reinette.chatre@intel.com>,
linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: 2.6.30-rc3: iwlagn probe timeouts (regression)
Date: Tue, 28 Apr 2009 23:47:35 +0200 [thread overview]
Message-ID: <1240955255.593.7.camel@johannes.local> (raw)
In-Reply-To: <1240954959.593.5.camel@johannes.local> (sfid-20090428_234319_487972_6219E84E)
On Tue, 2009-04-28 at 23:42 +0200, Johannes Berg wrote:
> Ok, that's confusing. It doesn't even change any code that is normally
> executed, at least not significantly since local->user_power_level is
> usually 0; checking
> if (local->user_power_level)
> vs. checking
> if (local->user_power_level >= 0)
> shouldn't make a difference in that case (although I admit that I forgot
> a few cases in that commit, will fix).
>
> Can you please verify that the code behaves correctly if you revert just
> this commit? Unless you're playing with "iwconfig wlan0 txpower .." I
> don't see a reason for this to cause a problem.
Scratch that, try this patch instead. Sorry, stupid mistake! mac80211
never asks the driver to set a txpower level, and keeps the variable set
to 0, but the driver looks at it anyway. Bug on both accounts, I guess,
but mac80211 should set the variable and tell the driver anyway.
johannes
---
net/mac80211/main.c | 1 +
1 file changed, 1 insertion(+)
--- wireless-testing.orig/net/mac80211/main.c 2009-04-28 23:43:49.000000000 +0200
+++ wireless-testing/net/mac80211/main.c 2009-04-28 23:47:22.000000000 +0200
@@ -764,6 +764,7 @@ struct ieee80211_hw *ieee80211_alloc_hw(
local->hw.conf.long_frame_max_tx_count = wiphy->retry_long;
local->hw.conf.short_frame_max_tx_count = wiphy->retry_short;
local->hw.conf.radio_enabled = true;
+ local->user_power_level = -1;
INIT_LIST_HEAD(&local->interfaces);
mutex_init(&local->iflist_mtx);
next prev parent reply other threads:[~2009-04-28 21:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-27 0:00 2.6.30-rc3: iwlagn probe timeouts (regression) Niel Lambrechts
2009-04-27 17:19 ` reinette chatre
2009-04-28 20:58 ` Niel Lambrechts
2009-04-28 21:42 ` Johannes Berg
2009-04-28 21:47 ` Johannes Berg [this message]
2009-04-28 23:20 ` Niel Lambrechts
2009-04-29 8:28 ` Johannes Berg
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=1240955255.593.7.camel@johannes.local \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=niel.lambrechts@gmail.com \
--cc=reinette.chatre@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