Skip to contentSkip to conversation

cfg80211: Pass TDLS peer's QoS/HT/VHT information during set_station

PATCH Applied Jouni Malinen 2 participants 2 messages Feb 14, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 cfg80211: Pass TDLS peer's QoS/HT/VHT information during set_station

The information of the peer's capabilities is required for the driver to perform TDLS Peer UAPSD operations. This information of the peer is passed by the supplicant using NL80211_CMD_SET_STATION command. This commit enhances the function nl80211_set_station to pass this information of the peer to the driver in case this command is used with the TDLS peer STA.

In addition, make the HT/VHT capability configuration handled more consistently for other STA cases (reject both instead of just HT).

---
 net/mac80211/cfg.c     |    6 ++--
 net/wireless/nl80211.c |   89 +++++++++++++++++++++++++++++++++++++++++++-----
 2 files changed, 85 insertions(+), 10 deletions(-)
net/mac80211/cfg.c +4 -2
index a4c0a0d..76107a2 100644
@@ -1411,9 +1411,11 @@ static int ieee80211_change_station(struct wiphy *wiphy,
 		return -ENOENT;
 	}
 
-	/* in station mode, supported rates are only valid with TDLS */
+	/* in station mode, some updates are only valid with TDLS */
 	if (sdata->vif.type == NL80211_IFTYPE_STATION &&
-	    params->supported_rates &&
+	    (params->supported_rates || params->ht_capa || params->vht_capa ||
+	     params->sta_modify_mask ||
+	     (params->sta_flags_mask & BIT(NL80211_STA_FLAG_WME))) &&
 	    !test_sta_flag(sta, WLAN_STA_TDLS_PEER)) {
 		mutex_unlock(&local->sta_mtx);
 		return -EINVAL;
net/wireless/nl80211.c +81 -8

131 lines not on this page · raw message

Signature · 5 lines
1.7.9.5


-- 
Jouni Malinen                                            PGP id EFC895FA
maintainer Applied
#1 lore raw
Quoted 9 lines · Jouni Malinen

The information of the peer's capabilities is required for the driver to perform TDLS Peer UAPSD operations. This information of the peer is passed by the supplicant using NL80211_CMD_SET_STATION command. This commit enhances the function nl80211_set_station to pass this information of the peer to the driver in case this command is used with the TDLS peer STA.

In addition, make the HT/VHT capability configuration handled more consistently for other STA cases (reject both instead of just HT).

Applied.

johannes