mac80211: fix ibss joining
authorReinette Chatre <reinette.chatre@intel.com>
Mon, 19 Oct 2009 21:55:37 +0000 (14:55 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 27 Oct 2009 20:29:46 +0000 (16:29 -0400)
commitd419b9f0fa69e79ccba3e5e79a58a52ae0c2ed6a
tree9437f790f07c46a645b867871e81a71dc1058749
parente6693eab351fc19809e76167cd18a6f028661e8a
mac80211: fix ibss joining

Recent commit "mac80211: fix logic error ibss merge bssid check" fixed
joining of ibss cell when static bssid is provided. In this case
ifibss->bssid is set before the cell is joined and comparing that address
to a bss should thus always succeed. Unfortunately this change broke the
other case of joining a ibss cell without providing a static bssid where
the value of ifibss->bssid is not set before the cell is joined.

Since ifibss->bssid may be set before or after joining the cell we do not
learn anything by comparing it to a known bss. Remove this check.

Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ibss.c