aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 2db56605a2b6..cac4f65d9e61 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -1629,6 +1629,13 @@ static void ieee80211_rx_bss_info(struct ieee80211_sub_if_data *sdata,
1629 if (!bss) 1629 if (!bss)
1630 return; 1630 return;
1631 1631
1632 if (elems->ch_switch_elem && (elems->ch_switch_elem_len == 3) &&
1633 (memcmp(mgmt->bssid, sdata->u.sta.bssid, ETH_ALEN) == 0)) {
1634 struct ieee80211_channel_sw_ie *sw_elem =
1635 (struct ieee80211_channel_sw_ie *)elems->ch_switch_elem;
1636 ieee80211_process_chanswitch(sdata, sw_elem, bss);
1637 }
1638
1632 /* was just updated in ieee80211_bss_info_update */ 1639 /* was just updated in ieee80211_bss_info_update */
1633 beacon_timestamp = bss->timestamp; 1640 beacon_timestamp = bss->timestamp;
1634 1641
@@ -1765,6 +1772,9 @@ static void ieee80211_rx_mgmt_beacon(struct ieee80211_sub_if_data *sdata,
1765 memcmp(ifsta->bssid, mgmt->bssid, ETH_ALEN) != 0) 1772 memcmp(ifsta->bssid, mgmt->bssid, ETH_ALEN) != 0)
1766 return; 1773 return;
1767 1774
1775 if (rx_status->freq != local->hw.conf.channel->center_freq)
1776 return;
1777
1768 ieee80211_sta_wmm_params(local, ifsta, elems.wmm_param, 1778 ieee80211_sta_wmm_params(local, ifsta, elems.wmm_param,
1769 elems.wmm_param_len); 1779 elems.wmm_param_len);
1770 1780
@@ -2425,8 +2435,11 @@ void ieee80211_sta_setup_sdata(struct ieee80211_sub_if_data *sdata)
2425 2435
2426 ifsta = &sdata->u.sta; 2436 ifsta = &sdata->u.sta;
2427 INIT_WORK(&ifsta->work, ieee80211_sta_work); 2437 INIT_WORK(&ifsta->work, ieee80211_sta_work);
2438 INIT_WORK(&ifsta->chswitch_work, ieee80211_chswitch_work);
2428 setup_timer(&ifsta->timer, ieee80211_sta_timer, 2439 setup_timer(&ifsta->timer, ieee80211_sta_timer,
2429 (unsigned long) sdata); 2440 (unsigned long) sdata);
2441 setup_timer(&ifsta->chswitch_timer, ieee80211_chswitch_timer,
2442 (unsigned long) sdata);
2430 skb_queue_head_init(&ifsta->skb_queue); 2443 skb_queue_head_init(&ifsta->skb_queue);
2431 2444
2432 ifsta->capab = WLAN_CAPABILITY_ESS; 2445 ifsta->capab = WLAN_CAPABILITY_ESS;