]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
mac80211: fix error path for TDLS setup
authorArik Nemtsov <arik@wizery.com>
Thu, 17 Jul 2014 14:14:18 +0000 (17:14 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 21 Jul 2014 10:14:03 +0000 (12:14 +0200)
commit6ae32e5d284a5db589bfa63561932ad3306f538a
tree2588c0f8a658032d120d97d0ec8339e411ebe689
parent626911cc60d873b38f7ca4c5c537fcb918c658d7
mac80211: fix error path for TDLS setup

The patch "8f02e6b mac80211: make sure TDLS peer STA exists during
setup" broke TDLS error paths where the STA doesn't exist when sending
the error.
Fix it by only testing for STA existence during a non-error flow.

Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tdls.c