mac80211: track TDLS initiator internally
authorArik Nemtsov <arik@wizery.com>
Thu, 17 Jul 2014 14:14:17 +0000 (17:14 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 21 Jul 2014 10:14:03 +0000 (12:14 +0200)
commit626911cc60d873b38f7ca4c5c537fcb918c658d7
tree957d99d21d0caf75a60c51897a4636db27c7a6c7
parent1d4cc30c86301543a09ff4118a36044546c7cfa1
mac80211: track TDLS initiator internally

Infer the TDLS initiator and track it in mac80211 via a STA flag. This
avoids breaking old userspace that doesn't pass it via nl80211 APIs.

The only case where userspace will need to pass the initiator is when the
STA is removed due to unreachability before a teardown packet is sent.
Support for unreachability was only recently added to wpa_supplicant, so
it won't be a problem in practice.

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/sta_info.h
net/mac80211/tdls.c