All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3.15-rcX] Fix IBSS join by initializing last_scan_completed
@ 2014-05-26 12:14 Krzysztof Hałasa
  2014-05-27  6:51 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Hałasa @ 2014-05-26 12:14 UTC (permalink / raw)
  To: linux-wireless

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(&params->chandef);

-- 
Krzysztof Halasa

Research Institute for Automation and Measurements PIAP
Al. Jerozolimskie 202, 02-486 Warsaw, Poland

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v3.15-rcX] Fix IBSS join by initializing last_scan_completed
  2014-05-26 12:14 [PATCH v3.15-rcX] Fix IBSS join by initializing last_scan_completed Krzysztof Hałasa
@ 2014-05-27  6:51 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2014-05-27  6:51 UTC (permalink / raw)
  To: Krzysztof Hałasa; +Cc: linux-wireless

On Mon, 2014-05-26 at 14:14 +0200, Krzysztof Hałasa wrote:
> 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>

Applied, thanks.

johannes


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-27  6:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-26 12:14 [PATCH v3.15-rcX] Fix IBSS join by initializing last_scan_completed Krzysztof Hałasa
2014-05-27  6:51 ` Johannes Berg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.