diff options
author | Alina Friedrichsen <x-alina@gmx.net> | 2009-01-05 21:08:10 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:59:49 -0500 |
commit | 65f0e6a36e25fbfa6adf706d9c53bf64b13096eb (patch) | |
tree | f4d8da7c2f6b0338a3c433425a7a2c976db45e75 | |
parent | 137f9f46a4edf8a937ffe9e3dba498b5cfaa1e5b (diff) |
mac80211: Don't merge if BSSID is set manually
If you set a fixed BSSID manually, you never want that the driver
change it back, or your ad-hoc mesh network will break into peaces. So
don't do it.
Signed-off-by: Alina Friedrichsen <x-alina@gmx.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | net/mac80211/mlme.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 563ceb4d2252..2db56605a2b6 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -1644,6 +1644,7 @@ static void ieee80211_rx_bss_info(struct ieee80211_sub_if_data *sdata, | |||
1644 | 1644 | ||
1645 | /* check if we need to merge IBSS */ | 1645 | /* check if we need to merge IBSS */ |
1646 | if (sdata->vif.type == NL80211_IFTYPE_ADHOC && beacon && | 1646 | if (sdata->vif.type == NL80211_IFTYPE_ADHOC && beacon && |
1647 | (!(sdata->u.sta.flags & IEEE80211_STA_BSSID_SET)) && | ||
1647 | bss->capability & WLAN_CAPABILITY_IBSS && | 1648 | bss->capability & WLAN_CAPABILITY_IBSS && |
1648 | bss->freq == local->oper_channel->center_freq && | 1649 | bss->freq == local->oper_channel->center_freq && |
1649 | elems->ssid_len == sdata->u.sta.ssid_len && | 1650 | elems->ssid_len == sdata->u.sta.ssid_len && |