From: "Luis R. Rodriguez" <lrodriguez@atheros.com>
To: linville@tuxdriver.com, johannes@sipsolutions.net
Cc: linux-wireless@vger.kernel.org,
"Luis R. Rodriguez" <lrodriguez@atheros.com>,
Johannes Berg <johannes.berg@intel.com>
Subject: [PATCH 2/3] mac80211_hwsim: supress scan conflict message
Date: Tue, 27 Jul 2010 16:33:07 -0400 [thread overview]
Message-ID: <1280262788-9890-3-git-send-email-lrodriguez@atheros.com> (raw)
In-Reply-To: <1280262788-9890-1-git-send-email-lrodriguez@atheros.com>
Johannes already debugged this and determined it was due
to a race condition in mac80211, in order to fix this though
we would need to change drivers quite a bit so for now just
supress this and we'll correct this on the next kernel release.
Cc: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
---
drivers/net/wireless/mac80211_hwsim.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index 01ad7f7..d766a5f 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -995,10 +995,8 @@ static void mac80211_hwsim_sw_scan(struct ieee80211_hw *hw)
mutex_lock(&hwsim->mutex);
- if (hwsim->scanning) {
- printk(KERN_DEBUG "two hwsim sw_scans detected!\n");
+ if (hwsim->scanning)
goto out;
- }
printk(KERN_DEBUG "hwsim sw_scan request, prepping stuff\n");
hwsim->scanning = true;
--
1.7.0.4
next prev parent reply other threads:[~2010-07-27 20:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-27 20:33 [PATCH 0/3] Revert of mac80211 scan complete callback move Luis R. Rodriguez
2010-07-27 20:33 ` [PATCH 1/3] ath9k: remove the two wiphys scanning at the same time message Luis R. Rodriguez
2010-07-27 20:33 ` Luis R. Rodriguez [this message]
2010-07-28 6:52 ` [PATCH 2/3] mac80211_hwsim: supress scan conflict message Johannes Berg
2010-07-28 17:31 ` Luis R. Rodriguez
2010-07-27 20:33 ` [PATCH 3/3] Revert "mac80211: fix sw scan bracketing" Luis R. Rodriguez
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=1280262788-9890-3-git-send-email-lrodriguez@atheros.com \
--to=lrodriguez@atheros.com \
--cc=johannes.berg@intel.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.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;
as well as URLs for NNTP newsgroup(s).