]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: simplify and correct P2P-Device scan check
authorJohannes Berg <johannes.berg@intel.com>
Fri, 10 May 2013 16:58:00 +0000 (18:58 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 24 May 2013 22:02:17 +0000 (00:02 +0200)
commitb36ad855675d4193ea9608a9c26b9c130c499e5b
tree8b29245415dc01b8e21e978665b56a8c603c5f3e
parente51e0df22a5c5b18012f39f639443e442220a468
cfg80211: simplify and correct P2P-Device scan check

If the driver for some reason successfully finishes
scanning while in p2p_stop_device(), cfg80211 will
still set it to aborted. Simplify this code using the
new 'notified' value and only mark it aborted in case
the driver didn't notify cfg80211 at all (in which
case we also leak the request to not crash, this is
a driver bug.)

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.c