mac80211: fix ibss scan parameters
authorSara Sharon <sara.sharon@intel.com>
Mon, 25 Jan 2016 13:46:35 +0000 (15:46 +0200)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 11 Jul 2016 03:07:08 +0000 (23:07 -0400)
commitbd6b2f89b2357c2daabd596d8c1c78940030042c
treed2fdda6f9bb1d714fecee49c739ab8f9d57c762c
parent6c59578f592a6873a71bc1397ccf60615d2abec0
mac80211: fix ibss scan parameters

[ Upstream commit d321cd014e51baab475efbdec468255b9e0ec822 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
net/mac80211/ibss.c