|
@@ -776,12 +776,10 @@ static int sta_apply_parameters(struct ieee80211_local *local,
|
|
|
|
|
|
if (set & BIT(NL80211_STA_FLAG_AUTHENTICATED) &&
|
|
|
!test_sta_flag(sta, WLAN_STA_AUTH)) {
|
|
|
- ret = sta_info_move_state_checked(sta,
|
|
|
- IEEE80211_STA_AUTH);
|
|
|
+ ret = sta_info_move_state(sta, IEEE80211_STA_AUTH);
|
|
|
if (ret)
|
|
|
return ret;
|
|
|
- ret = sta_info_move_state_checked(sta,
|
|
|
- IEEE80211_STA_ASSOC);
|
|
|
+ ret = sta_info_move_state(sta, IEEE80211_STA_ASSOC);
|
|
|
if (ret)
|
|
|
return ret;
|
|
|
}
|
|
@@ -789,11 +787,9 @@ static int sta_apply_parameters(struct ieee80211_local *local,
|
|
|
|
|
|
if (mask & BIT(NL80211_STA_FLAG_AUTHORIZED)) {
|
|
|
if (set & BIT(NL80211_STA_FLAG_AUTHORIZED))
|
|
|
- ret = sta_info_move_state_checked(sta,
|
|
|
- IEEE80211_STA_AUTHORIZED);
|
|
|
+ ret = sta_info_move_state(sta, IEEE80211_STA_AUTHORIZED);
|
|
|
else if (test_sta_flag(sta, WLAN_STA_AUTHORIZED))
|
|
|
- ret = sta_info_move_state_checked(sta,
|
|
|
- IEEE80211_STA_ASSOC);
|
|
|
+ ret = sta_info_move_state(sta, IEEE80211_STA_ASSOC);
|
|
|
if (ret)
|
|
|
return ret;
|
|
|
}
|
|
@@ -805,12 +801,10 @@ static int sta_apply_parameters(struct ieee80211_local *local,
|
|
|
|
|
|
if (!(set & BIT(NL80211_STA_FLAG_AUTHENTICATED)) &&
|
|
|
test_sta_flag(sta, WLAN_STA_AUTH)) {
|
|
|
- ret = sta_info_move_state_checked(sta,
|
|
|
- IEEE80211_STA_AUTH);
|
|
|
+ ret = sta_info_move_state(sta, IEEE80211_STA_AUTH);
|
|
|
if (ret)
|
|
|
return ret;
|
|
|
- ret = sta_info_move_state_checked(sta,
|
|
|
- IEEE80211_STA_NONE);
|
|
|
+ ret = sta_info_move_state(sta, IEEE80211_STA_NONE);
|
|
|
if (ret)
|
|
|
return ret;
|
|
|
}
|
|
@@ -944,8 +938,8 @@ static int ieee80211_add_station(struct wiphy *wiphy, struct net_device *dev,
|
|
|
if (!sta)
|
|
|
return -ENOMEM;
|
|
|
|
|
|
- sta_info_move_state(sta, IEEE80211_STA_AUTH);
|
|
|
- sta_info_move_state(sta, IEEE80211_STA_ASSOC);
|
|
|
+ sta_info_pre_move_state(sta, IEEE80211_STA_AUTH);
|
|
|
+ sta_info_pre_move_state(sta, IEEE80211_STA_ASSOC);
|
|
|
|
|
|
err = sta_apply_parameters(local, sta, params);
|
|
|
if (err) {
|