Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c72e1140 authored by Arik Nemtsov's avatar Arik Nemtsov Committed by Johannes Berg
Browse files

cfg80211: fix TDLS setup with VHT peers



Some VHT TDLS peers (Google Nexus 5) include the VHT-AID IE in their
TDLS setup request/response. Usermode passes this aid as the station
aid, causing it to fail verifiction, since this happens in the
"set_station" stage. Make an exception for the TDLS use-case.

Signed-off-by: default avatarArik Nemtsov <arikx.nemtsov@intel.com>
Reviewed-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent bed766bd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3815,7 +3815,8 @@ int cfg80211_check_station_change(struct wiphy *wiphy,
{
	if (params->listen_interval != -1)
		return -EINVAL;
	if (params->aid)
	if (params->aid &&
	    !(params->sta_flags_set & BIT(NL80211_STA_FLAG_TDLS_PEER)))
		return -EINVAL;

	/* When you run into this, adjust the code below for the new flag */