diff options
Diffstat (limited to 'net/mac80211/ibss.c')
-rw-r--r-- | net/mac80211/ibss.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c index f3e942486749..e6f3b0c7a71f 100644 --- a/net/mac80211/ibss.c +++ b/net/mac80211/ibss.c | |||
@@ -13,6 +13,7 @@ | |||
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include <linux/delay.h> | 15 | #include <linux/delay.h> |
16 | #include <linux/slab.h> | ||
16 | #include <linux/if_ether.h> | 17 | #include <linux/if_ether.h> |
17 | #include <linux/skbuff.h> | 18 | #include <linux/skbuff.h> |
18 | #include <linux/if_arp.h> | 19 | #include <linux/if_arp.h> |
@@ -264,17 +265,16 @@ static void ieee80211_rx_bss_info(struct ieee80211_sub_if_data *sdata, | |||
264 | sta->sta.supp_rates[band] = supp_rates | | 265 | sta->sta.supp_rates[band] = supp_rates | |
265 | ieee80211_mandatory_rates(local, band); | 266 | ieee80211_mandatory_rates(local, band); |
266 | 267 | ||
268 | if (sta->sta.supp_rates[band] != prev_rates) { | ||
267 | #ifdef CONFIG_MAC80211_IBSS_DEBUG | 269 | #ifdef CONFIG_MAC80211_IBSS_DEBUG |
268 | if (sta->sta.supp_rates[band] != prev_rates) | ||
269 | printk(KERN_DEBUG "%s: updated supp_rates set " | 270 | printk(KERN_DEBUG "%s: updated supp_rates set " |
270 | "for %pM based on beacon info (0x%llx | " | 271 | "for %pM based on beacon/probe_response " |
271 | "0x%llx -> 0x%llx)\n", | 272 | "(0x%x -> 0x%x)\n", |
272 | sdata->name, | 273 | sdata->name, sta->sta.addr, |
273 | sta->sta.addr, | 274 | prev_rates, sta->sta.supp_rates[band]); |
274 | (unsigned long long) prev_rates, | ||
275 | (unsigned long long) supp_rates, | ||
276 | (unsigned long long) sta->sta.supp_rates[band]); | ||
277 | #endif | 275 | #endif |
276 | rate_control_rate_init(sta); | ||
277 | } | ||
278 | rcu_read_unlock(); | 278 | rcu_read_unlock(); |
279 | } else { | 279 | } else { |
280 | rcu_read_unlock(); | 280 | rcu_read_unlock(); |
@@ -370,6 +370,7 @@ static void ieee80211_rx_bss_info(struct ieee80211_sub_if_data *sdata, | |||
370 | sdata->name, mgmt->bssid); | 370 | sdata->name, mgmt->bssid); |
371 | #endif | 371 | #endif |
372 | ieee80211_sta_join_ibss(sdata, bss); | 372 | ieee80211_sta_join_ibss(sdata, bss); |
373 | supp_rates = ieee80211_sta_get_rates(local, elems, band); | ||
373 | ieee80211_ibss_add_sta(sdata, mgmt->bssid, mgmt->sa, | 374 | ieee80211_ibss_add_sta(sdata, mgmt->bssid, mgmt->sa, |
374 | supp_rates, GFP_KERNEL); | 375 | supp_rates, GFP_KERNEL); |
375 | } | 376 | } |