mac80211: fix IBSS join by initializing last_scan_completed
authorKrzysztof Hałasa <khalasa@piap.pl>
Mon, 26 May 2014 12:14:46 +0000 (14:14 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 27 May 2014 06:54:01 +0000 (08:54 +0200)
commitc7d37a66e345df2fdf1aa7b2c9a6d3d53846ca5b
treef1973438062febd95c3013e1d58e01d7d197074c
parent3bb20556726702a27166e49ef513bd8d8432d9c4
mac80211: fix IBSS join by initializing last_scan_completed

Without this fix, freshly rebooted Linux creates a new IBSS
instead of joining an existing one. Only when jiffies counter
overflows after 5 minutes the IBSS can be successfully joined.

Signed-off-by: Krzysztof Hałasa <khalasa@piap.pl>
[edit commit message slightly]
Cc: stable@vger.kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ibss.c