Merge git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next
[cascardo/linux.git] / net / wireless / nl80211.c
index 082f5c6..df7b133 100644 (file)
@@ -3814,7 +3814,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 */