]> git.baikalelectronics.ru Git - 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)
commiteb00331037d26cfce583d71fb8eb08e2faa96a86
tree2588c0f8a658032d120d97d0ec8339e411ebe689
parentc3fbeeec2c70d135c615a4218d92a44f47ad21fb
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