diff options
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/ieee80211_sta.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c index 0e936233dac5..cb119d3b6353 100644 --- a/net/mac80211/ieee80211_sta.c +++ b/net/mac80211/ieee80211_sta.c | |||
@@ -509,9 +509,14 @@ static void ieee80211_set_associated(struct net_device *dev, | |||
509 | conf->channel->center_freq, | 509 | conf->channel->center_freq, |
510 | ifsta->ssid, ifsta->ssid_len); | 510 | ifsta->ssid, ifsta->ssid_len); |
511 | if (bss) { | 511 | if (bss) { |
512 | /* set timing information */ | ||
513 | sdata->bss_conf.beacon_int = bss->beacon_int; | ||
514 | sdata->bss_conf.timestamp = bss->timestamp; | ||
515 | |||
512 | if (bss->has_erp_value) | 516 | if (bss->has_erp_value) |
513 | changed |= ieee80211_handle_erp_ie( | 517 | changed |= ieee80211_handle_erp_ie( |
514 | sdata, bss->erp_value); | 518 | sdata, bss->erp_value); |
519 | |||
515 | ieee80211_rx_bss_put(dev, bss); | 520 | ieee80211_rx_bss_put(dev, bss); |
516 | } | 521 | } |
517 | 522 | ||
@@ -2033,8 +2038,10 @@ static void ieee80211_rx_mgmt_assoc_resp(struct ieee80211_sub_if_data *sdata, | |||
2033 | } else | 2038 | } else |
2034 | rcu_read_unlock(); | 2039 | rcu_read_unlock(); |
2035 | 2040 | ||
2036 | /* set AID, ieee80211_set_associated() will tell the driver */ | 2041 | /* set AID and assoc capability, |
2042 | * ieee80211_set_associated() will tell the driver */ | ||
2037 | bss_conf->aid = aid; | 2043 | bss_conf->aid = aid; |
2044 | bss_conf->assoc_capability = capab_info; | ||
2038 | ieee80211_set_associated(dev, ifsta, 1); | 2045 | ieee80211_set_associated(dev, ifsta, 1); |
2039 | 2046 | ||
2040 | ieee80211_associated(dev, ifsta); | 2047 | ieee80211_associated(dev, ifsta); |