From: khalasa@piap.pl (Krzysztof Hałasa)
To: linux-wireless <linux-wireless@vger.kernel.org>
Subject: [PATCH v3.15-rcX] Fix IBSS join by initializing last_scan_completed
Date: Mon, 26 May 2014 14:14:46 +0200 [thread overview]
Message-ID: <m361ksvirt.fsf@t19.piap.pl> (raw)
Without this fix, freshly rebooted Linux creates a new IBSS, instead
of joining existing one. Only when jiffies counter overflows after
5 minutes the IBSS can be successfully joined.
Intel Wireless 7260 PCIe.
Signed-off-by: Krzysztof Hałasa <khalasa@piap.pl>
--- a/net/mac80211/ibss.c
+++ b/net/mac80211/ibss.c
@@ -1648,6 +1648,7 @@ int ieee80211_ibss_join(struct ieee80211_sub_if_data *sdata,
sdata->u.ibss.control_port = params->control_port;
sdata->u.ibss.userspace_handles_dfs = params->userspace_handles_dfs;
sdata->u.ibss.basic_rates = params->basic_rates;
+ sdata->u.ibss.last_scan_completed = jiffies;
/* fix basic_rates if channel does not support these rates */
rate_flags = ieee80211_chandef_rate_flags(¶ms->chandef);
--
Krzysztof Halasa
Research Institute for Automation and Measurements PIAP
Al. Jerozolimskie 202, 02-486 Warsaw, Poland
next reply other threads:[~2014-05-26 12:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-26 12:14 Krzysztof Hałasa [this message]
2014-05-27 6:51 ` [PATCH v3.15-rcX] Fix IBSS join by initializing last_scan_completed 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=m361ksvirt.fsf@t19.piap.pl \
--to=khalasa@piap.pl \
--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).