]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: protect beacon changing functions with wdev-lock
authorSimon Wunderlich <sw@simonwunderlich.de>
Thu, 21 Nov 2013 17:19:49 +0000 (18:19 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 2 Dec 2013 10:51:53 +0000 (11:51 +0100)
commit6609f6abbe4653296b43f48c0a98999f843132c2
tree32545cfb3e3e7fc512a37937a71f8445877fbc5d
parentd28c1cd6e5caf6244d54fcfb1bf973b97e869f43
cfg80211: protect beacon changing functions with wdev-lock

To avoid race conditions in functions which modify the beacon
information, lock these using the wdev lock. This is especially required
to avoid problems for csa handling functions which modify beacons but
can not be called under rtnl lock.

Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c