cfg80211: remove racy beacon_interval assignment
authorJohannes Berg <johannes.berg@intel.com>
Mon, 3 Mar 2014 12:55:54 +0000 (13:55 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 3 Mar 2014 13:18:20 +0000 (14:18 +0100)
commitbc00a91d627026f08abf69bf5d0015499dd30c2a
treebed7b60641a217c142f6f07909f2b933798fc0a0
parent1c37a72c1bd0b83be8b95cff7f1bc9b1f32bd433
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>
net/wireless/core.c