aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_sta.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/ieee80211_sta.c')
-rw-r--r--net/mac80211/ieee80211_sta.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c
index 64476d9e8d77..ddb5832f37cb 100644
--- a/net/mac80211/ieee80211_sta.c
+++ b/net/mac80211/ieee80211_sta.c
@@ -2413,7 +2413,7 @@ static void ieee80211_rx_bss_info(struct net_device *dev,
2413 /* check if we need to merge IBSS */ 2413 /* check if we need to merge IBSS */
2414 if (sdata->vif.type == IEEE80211_IF_TYPE_IBSS && beacon && 2414 if (sdata->vif.type == IEEE80211_IF_TYPE_IBSS && beacon &&
2415 !local->sta_sw_scanning && !local->sta_hw_scanning && 2415 !local->sta_sw_scanning && !local->sta_hw_scanning &&
2416 mgmt->u.beacon.capab_info & WLAN_CAPABILITY_IBSS && 2416 bss->capability & WLAN_CAPABILITY_IBSS &&
2417 bss->freq == local->oper_channel->center_freq && 2417 bss->freq == local->oper_channel->center_freq &&
2418 elems.ssid_len == sdata->u.sta.ssid_len && 2418 elems.ssid_len == sdata->u.sta.ssid_len &&
2419 memcmp(elems.ssid, sdata->u.sta.ssid, sdata->u.sta.ssid_len) == 0) { 2419 memcmp(elems.ssid, sdata->u.sta.ssid, sdata->u.sta.ssid_len) == 0) {
@@ -2453,12 +2453,12 @@ static void ieee80211_rx_bss_info(struct net_device *dev,
2453 jiffies); 2453 jiffies);
2454#endif /* CONFIG_MAC80211_IBSS_DEBUG */ 2454#endif /* CONFIG_MAC80211_IBSS_DEBUG */
2455 if (beacon_timestamp > rx_timestamp) { 2455 if (beacon_timestamp > rx_timestamp) {
2456#ifdef CONFIG_MAC80211_IBSS_DEBUG 2456#ifndef CONFIG_MAC80211_IBSS_DEBUG
2457 if (net_ratelimit()) 2457 if (net_ratelimit())
2458#endif
2458 printk(KERN_DEBUG "%s: beacon TSF higher than " 2459 printk(KERN_DEBUG "%s: beacon TSF higher than "
2459 "local TSF - IBSS merge with BSSID %s\n", 2460 "local TSF - IBSS merge with BSSID %s\n",
2460 dev->name, print_mac(mac, mgmt->bssid)); 2461 dev->name, print_mac(mac, mgmt->bssid));
2461#endif /* CONFIG_MAC80211_IBSS_DEBUG */
2462 ieee80211_sta_join_ibss(dev, &sdata->u.sta, bss); 2462 ieee80211_sta_join_ibss(dev, &sdata->u.sta, bss);
2463 ieee80211_ibss_add_sta(dev, NULL, 2463 ieee80211_ibss_add_sta(dev, NULL,
2464 mgmt->bssid, mgmt->sa); 2464 mgmt->bssid, mgmt->sa);