Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e4d40fa authored by Johannes Berg's avatar Johannes Berg
Browse files

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: default avatarJohannes Berg <johannes.berg@intel.com>
parent fd0f979a
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -2212,8 +2212,6 @@ static bool ieee80211_assoc_success(struct ieee80211_sub_if_data *sdata,
	if (elems.wmm_param)
	if (elems.wmm_param)
		set_sta_flag(sta, WLAN_STA_WME);
		set_sta_flag(sta, WLAN_STA_WME);


	err = sta_info_move_state(sta, IEEE80211_STA_AUTH);
	if (!err)
	err = sta_info_move_state(sta, IEEE80211_STA_ASSOC);
	err = sta_info_move_state(sta, IEEE80211_STA_ASSOC);
	if (!err && !(ifmgd->flags & IEEE80211_STA_CONTROL_PORT))
	if (!err && !(ifmgd->flags & IEEE80211_STA_CONTROL_PORT))
		err = sta_info_move_state(sta, IEEE80211_STA_AUTHORIZED);
		err = sta_info_move_state(sta, IEEE80211_STA_AUTHORIZED);