mac80211: fix ibss scan parameters
authorSara Sharon <sara.sharon@intel.com>
Mon, 25 Jan 2016 13:46:35 +0000 (15:46 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 24 Feb 2016 08:04:27 +0000 (09:04 +0100)
commitd321cd014e51baab475efbdec468255b9e0ec822
treeda69c64e900b89327966ad209abcf5260c217497
parentf4a0f0c5264e72d9279fbf9cf48a061526e8f788
mac80211: fix ibss scan parameters

When joining IBSS a full scan should be initiated in order to search
for existing cell, unless the fixed_channel parameter was set.
A default channel to create the IBSS on if no cell was found is
provided as well.
However - a scan is initiated only on the default channel provided
regardless of whether ifibss->fixed_channel is set or not, with the
obvious result of the cell not joining existing IBSS cell that is
on another channel.

Fixes: 76bed0f43b27 ("mac80211: IBSS fix scan request")
Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ibss.c