diff options
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index a1e683e305f0..bc8a7f1a6a15 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * BSS client mode implementation | 2 | * BSS client mode implementation |
3 | * Copyright 2003, Jouni Malinen <jkmaline@cc.hut.fi> | 3 | * Copyright 2003-2008, Jouni Malinen <j@w1.fi> |
4 | * Copyright 2004, Instant802 Networks, Inc. | 4 | * Copyright 2004, Instant802 Networks, Inc. |
5 | * Copyright 2005, Devicescape Software, Inc. | 5 | * Copyright 2005, Devicescape Software, Inc. |
6 | * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> | 6 | * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> |
@@ -472,7 +472,7 @@ static void ieee80211_send_deauth_disassoc(struct ieee80211_sub_if_data *sdata, | |||
472 | /* u.deauth.reason_code == u.disassoc.reason_code */ | 472 | /* u.deauth.reason_code == u.disassoc.reason_code */ |
473 | mgmt->u.deauth.reason_code = cpu_to_le16(reason); | 473 | mgmt->u.deauth.reason_code = cpu_to_le16(reason); |
474 | 474 | ||
475 | ieee80211_tx_skb(sdata, skb, 0); | 475 | ieee80211_tx_skb(sdata, skb, ifsta->flags & IEEE80211_STA_MFP_ENABLED); |
476 | } | 476 | } |
477 | 477 | ||
478 | /* MLME */ | 478 | /* MLME */ |
@@ -1408,6 +1408,9 @@ static void ieee80211_rx_mgmt_assoc_resp(struct ieee80211_sub_if_data *sdata, | |||
1408 | 1408 | ||
1409 | rate_control_rate_init(sta); | 1409 | rate_control_rate_init(sta); |
1410 | 1410 | ||
1411 | if (ifsta->flags & IEEE80211_STA_MFP_ENABLED) | ||
1412 | set_sta_flags(sta, WLAN_STA_MFP); | ||
1413 | |||
1411 | if (elems.wmm_param) | 1414 | if (elems.wmm_param) |
1412 | set_sta_flags(sta, WLAN_STA_WME); | 1415 | set_sta_flags(sta, WLAN_STA_WME); |
1413 | 1416 | ||