cfg80211: fix station change if TDLS isn't supported
authorJohannes Berg <johannes.berg@intel.com>
Mon, 18 Feb 2013 13:57:42 +0000 (14:57 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 18 Feb 2013 17:26:24 +0000 (18:26 +0100)
commit8c6d59ee3509acd474365c34db291b950d2e66bf
tree82552957ddaff328b600ab162bfa919b21a342e3
parentc39ac036add6b0696fb61b4d4733d671ca031723
cfg80211: fix station change if TDLS isn't supported

Larry noticed (and bisected) that commit df881293c6ba9a12868491a717b25
"cfg80211: Pass TDLS peer's QoS/HT/VHT information during set_station"
broke secure connections. This is is the case only for drivers that
don't support TDLS, where any kind of change, even just the change of
authorized flag that is required for normal operation, was rejected
now. To fix this, remove the checks. I have some patches that will add
proper verification for all the different cases later.

Cc: Jouni Malinen <j@w1.fi>
Bisected-by: Larry Finger <Larry.Finger@lwfinger.net>
Tested-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c