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

Commit bc00a91d authored by Johannes Berg's avatar Johannes Berg
Browse files

cfg80211: remove racy beacon_interval assignment



In case of AP mode, the beacon interval is already reset to
zero inside cfg80211_stop_ap(), and in the other modes it
isn't relevant. Remove the assignment to remove a potential
race since the assignment isn't properly locked.

Reported-by: default avatarMichal Kazior <michal.kazior@tieto.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 1c37a72c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -788,8 +788,6 @@ void cfg80211_leave(struct cfg80211_registered_device *rdev,
	default:
		break;
	}

	wdev->beacon_interval = 0;
}

static int cfg80211_netdev_notifier_call(struct notifier_block *nb,