Unverified Commit d9998017 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!6049 wifi: mac80211: fix race condition on enabling fast-xmit

parents 4ca7201e c2e1ca48
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -611,6 +611,8 @@ static int sta_info_insert_finish(struct sta_info *sta) __acquires(RCU)
	if (ieee80211_vif_is_mesh(&sdata->vif))
		mesh_accept_plinks_update(sdata);

	ieee80211_check_fast_xmit(sta);

	return 0;
 out_remove:
	sta_info_hash_del(local, sta);
+1 −1
Original line number Diff line number Diff line
@@ -2844,7 +2844,7 @@ void ieee80211_check_fast_xmit(struct sta_info *sta)
	    sdata->vif.type == NL80211_IFTYPE_STATION)
		goto out;

	if (!test_sta_flag(sta, WLAN_STA_AUTHORIZED))
	if (!test_sta_flag(sta, WLAN_STA_AUTHORIZED) || !sta->uploaded)
		goto out;

	if (test_sta_flag(sta, WLAN_STA_PS_STA) ||