cfg80211: allow aborting in-progress connection atttempts
authorIlan Peer <ilan.peer@intel.com>
Tue, 18 Oct 2016 20:12:13 +0000 (23:12 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 19 Oct 2016 10:15:38 +0000 (12:15 +0200)
commit0711d638786941ec02551dd9b4aa0d8341f7db5b
tree794affa9b2c804aeee70d8ff34bafd05c819a457
parentf438ceb81d424cb90a5a1aad569056bd7c2ab4c5
cfg80211: allow aborting in-progress connection atttempts

On a disconnect request from userspace, cfg80211 currently calls
called rdev_disconnect() only in case that 'current_bss' was set,
i.e. connection had been established.

Change this to allow the userspace call to succeed and call the
driver's disconnect() method also while the connection attempt is
in progress, to be able to abort attempts.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
[change commit subject/message]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
net/wireless/sme.c