]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1d2c3ed31fdf71d295e4f3d339754daa59425a46
tree794affa9b2c804aeee70d8ff34bafd05c819a457
parente32b8f894e2f175a7644afc9d9167c613190458b
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