diff options
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 8611a8318c9c..e859a0ab6162 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -942,8 +942,8 @@ static void ieee80211_associated(struct ieee80211_sub_if_data *sdata, | |||
942 | disassoc = 1; | 942 | disassoc = 1; |
943 | } else | 943 | } else |
944 | ieee80211_send_probe_req(sdata, ifsta->bssid, | 944 | ieee80211_send_probe_req(sdata, ifsta->bssid, |
945 | local->scan_ssid, | 945 | ifsta->ssid, |
946 | local->scan_ssid_len); | 946 | ifsta->ssid_len); |
947 | ifsta->flags ^= IEEE80211_STA_PROBEREQ_POLL; | 947 | ifsta->flags ^= IEEE80211_STA_PROBEREQ_POLL; |
948 | } else { | 948 | } else { |
949 | ifsta->flags &= ~IEEE80211_STA_PROBEREQ_POLL; | 949 | ifsta->flags &= ~IEEE80211_STA_PROBEREQ_POLL; |
@@ -1323,7 +1323,7 @@ static void ieee80211_rx_mgmt_assoc_resp(struct ieee80211_sub_if_data *sdata, | |||
1323 | ieee80211_handle_ht(local, 1, &sta->sta.ht_info, &bss_info); | 1323 | ieee80211_handle_ht(local, 1, &sta->sta.ht_info, &bss_info); |
1324 | } | 1324 | } |
1325 | 1325 | ||
1326 | rate_control_rate_init(sta, local); | 1326 | rate_control_rate_init(sta); |
1327 | 1327 | ||
1328 | if (elems.wmm_param) { | 1328 | if (elems.wmm_param) { |
1329 | set_sta_flags(sta, WLAN_STA_WME); | 1329 | set_sta_flags(sta, WLAN_STA_WME); |
@@ -1452,6 +1452,8 @@ static int ieee80211_sta_join_ibss(struct ieee80211_sub_if_data *sdata, | |||
1452 | ifsta->state = IEEE80211_STA_MLME_IBSS_JOINED; | 1452 | ifsta->state = IEEE80211_STA_MLME_IBSS_JOINED; |
1453 | mod_timer(&ifsta->timer, jiffies + IEEE80211_IBSS_MERGE_INTERVAL); | 1453 | mod_timer(&ifsta->timer, jiffies + IEEE80211_IBSS_MERGE_INTERVAL); |
1454 | 1454 | ||
1455 | ieee80211_led_assoc(local, true); | ||
1456 | |||
1455 | memset(&wrqu, 0, sizeof(wrqu)); | 1457 | memset(&wrqu, 0, sizeof(wrqu)); |
1456 | memcpy(wrqu.ap_addr.sa_data, bss->bssid, ETH_ALEN); | 1458 | memcpy(wrqu.ap_addr.sa_data, bss->bssid, ETH_ALEN); |
1457 | wireless_send_event(sdata->dev, SIOCGIWAP, &wrqu, NULL); | 1459 | wireless_send_event(sdata->dev, SIOCGIWAP, &wrqu, NULL); |
@@ -2342,7 +2344,7 @@ struct sta_info *ieee80211_ibss_add_sta(struct ieee80211_sub_if_data *sdata, | |||
2342 | sta->sta.supp_rates[band] = supp_rates | | 2344 | sta->sta.supp_rates[band] = supp_rates | |
2343 | ieee80211_mandatory_rates(local, band); | 2345 | ieee80211_mandatory_rates(local, band); |
2344 | 2346 | ||
2345 | rate_control_rate_init(sta, local); | 2347 | rate_control_rate_init(sta); |
2346 | 2348 | ||
2347 | if (sta_info_insert(sta)) | 2349 | if (sta_info_insert(sta)) |
2348 | return NULL; | 2350 | return NULL; |