summaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-02-07 11:19:08 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-02-11 12:45:02 -0500
commit3e4d40fa118e58ce51e85015587a944ec5c69400 (patch)
treee93e7347f664f26c378c9e5e7b14cb695514d8ac /net/mac80211/mlme.c
parentfd0f979a1b67f0889aea24a7c7d2a54d6706a1cf (diff)
mac80211: remove unused code to mark AP station authenticated
When we get to association, the AP station already exists and is marked authenticated, so moving it into IEEE80211_STA_AUTH again is a NOP, remove it. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 3bcf39365be8..76cacdb062c8 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -2212,9 +2212,7 @@ static bool ieee80211_assoc_success(struct ieee80211_sub_if_data *sdata,
2212 if (elems.wmm_param) 2212 if (elems.wmm_param)
2213 set_sta_flag(sta, WLAN_STA_WME); 2213 set_sta_flag(sta, WLAN_STA_WME);
2214 2214
2215 err = sta_info_move_state(sta, IEEE80211_STA_AUTH); 2215 err = sta_info_move_state(sta, IEEE80211_STA_ASSOC);
2216 if (!err)
2217 err = sta_info_move_state(sta, IEEE80211_STA_ASSOC);
2218 if (!err && !(ifmgd->flags & IEEE80211_STA_CONTROL_PORT)) 2216 if (!err && !(ifmgd->flags & IEEE80211_STA_CONTROL_PORT))
2219 err = sta_info_move_state(sta, IEEE80211_STA_AUTHORIZED); 2217 err = sta_info_move_state(sta, IEEE80211_STA_AUTHORIZED);
2220 if (err) { 2218 if (err) {