]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1fe5dc343b474e7cafb19a0fa75ec03a398309ab
treebed7b60641a217c142f6f07909f2b933798fc0a0
parentde26ded23f2c8fb40e87228d3529b8a5fec803fd
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