diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-05-20 03:05:10 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-20 14:46:36 -0400 |
commit | db67645db623caa12976293caa95fcd33d8c11b4 (patch) | |
tree | e85cd5cb8d9e6a47be5f9fdd3f7fbd59c81b0a14 /net/mac80211 | |
parent | c26c2e576dc05d90e8eadc0c6ca273ed7aa12535 (diff) |
mac80211: fix parameter confusion when finding IBSS
When I fixed the crypto bit I must have done the negative
test only -- it is quite clearly impossible to find _any_
IBSS to join with the parameters put the wrong way around.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/ibss.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c index ebf7318b610f..0b30277eb366 100644 --- a/net/mac80211/ibss.c +++ b/net/mac80211/ibss.c | |||
@@ -535,9 +535,9 @@ static void ieee80211_sta_find_ibss(struct ieee80211_sub_if_data *sdata) | |||
535 | bssid = ifibss->bssid; | 535 | bssid = ifibss->bssid; |
536 | bss = (void *)cfg80211_get_bss(local->hw.wiphy, chan, bssid, | 536 | bss = (void *)cfg80211_get_bss(local->hw.wiphy, chan, bssid, |
537 | ifibss->ssid, ifibss->ssid_len, | 537 | ifibss->ssid, ifibss->ssid_len, |
538 | capability, | ||
539 | WLAN_CAPABILITY_IBSS | | 538 | WLAN_CAPABILITY_IBSS | |
540 | WLAN_CAPABILITY_PRIVACY); | 539 | WLAN_CAPABILITY_PRIVACY, |
540 | capability); | ||
541 | 541 | ||
542 | #ifdef CONFIG_MAC80211_IBSS_DEBUG | 542 | #ifdef CONFIG_MAC80211_IBSS_DEBUG |
543 | if (bss) | 543 | if (bss) |