diff options
author | Johannes Berg <johannes.berg@intel.com> | 2014-03-03 13:55:54 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-03-03 14:18:20 +0100 |
commit | bc00a91d627026f08abf69bf5d0015499dd30c2a (patch) | |
tree | bed7b60641a217c142f6f07909f2b933798fc0a0 /net | |
parent | mac80211: consider virtual mon when calculating min_def (diff) | |
download | linux-bc00a91d627026f08abf69bf5d0015499dd30c2a.tar.xz linux-bc00a91d627026f08abf69bf5d0015499dd30c2a.zip |
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: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/wireless/core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c index 010892b81a06..a3bf18d11609 100644 --- a/net/wireless/core.c +++ b/net/wireless/core.c @@ -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, |