Skip to contentSkip to conversation

mac80211: VHT peer STA caps

PATCH Applied Mahesh Palivela 2 participants 3 messages Oct 3, 2012 – Oct 10, 2012

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

PATCH v4 1/2 mac80211: VHT peer STA caps

From: Mahesh Palivela <[email protected]>

Rename vht_capabilities to vht_cap

---

 include/linux/ieee80211.h |    2 +-
 net/mac80211/main.c       |    2 +-
 net/mac80211/mlme.c       |    4 ++--
 net/mac80211/util.c       |    4 ++--
 4 files changed, 6 insertions(+), 6 deletions(-)
include/linux/ieee80211.h +1 -1
index 2385119..afd12d9 100644
@@ -1109,7 +1109,7 @@ struct ieee80211_ht_operation {
 
 #define VHT_MCS_SUPPORTED_SET_SIZE      8
 
-struct ieee80211_vht_capabilities {
+struct ieee80211_vht_cap {
 	__le32 vht_capabilities_info;
 	u8 vht_supported_mcs_set[VHT_MCS_SUPPORTED_SET_SIZE];
 } __packed;
net/mac80211/main.c +1 -1
index c80c449..0ec170f 100644
@@ -832,7 +832,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
 
 	if (supp_vht)
 		local->scan_ies_len +=
-			2 + sizeof(struct ieee80211_vht_capabilities);
+			2 + sizeof(struct ieee80211_vht_cap);
 
 	if (!local->ops->hw_scan) {
 		/* For hw_scan, driver needs to set these up. */
net/mac80211/mlme.c +2 -2
index 2dbd9e1..85a7005 100644
@@ -343,7 +343,7 @@ static void ieee80211_add_vht_ie(struct ieee80211_sub_if_data *sdata,
 	cap = vht_cap.cap;
 
 	/* reserve and fill IE */
-	pos = skb_put(skb, sizeof(struct ieee80211_vht_capabilities) + 2);
+	pos = skb_put(skb, sizeof(struct ieee80211_vht_cap) + 2);
 	ieee80211_ie_build_vht_cap(pos, &vht_cap, cap);
 }
 
@@ -392,7 +392,7 @@ static void ieee80211_send_assoc(struct ieee80211_sub_if_data *sdata)
 			4 + /* power capability */
 			2 + 2 * sband->n_channels + /* supported channels */
 			2 + sizeof(struct ieee80211_ht_cap) + /* HT */
-			2 + sizeof(struct ieee80211_vht_capabilities) + /* VHT */
+			2 + sizeof(struct ieee80211_vht_cap) + /* VHT */
 			assoc_data->ie_len + /* extra IEs */
 			9, /* WMM */
 			GFP_KERNEL);
net/mac80211/util.c +2 -2
index 22ca350..4af69cc 100644
@@ -1788,8 +1788,8 @@ u8 *ieee80211_ie_build_vht_cap(u8 *pos, struct ieee80211_sta_vht_cap *vht_cap,
 	__le32 tmp;
 
 	*pos++ = WLAN_EID_VHT_CAPABILITY;
-	*pos++ = sizeof(struct ieee80211_vht_capabilities);
-	memset(pos, 0, sizeof(struct ieee80211_vht_capabilities));
+	*pos++ = sizeof(struct ieee80211_vht_cap);
+	memset(pos, 0, sizeof(struct ieee80211_vht_cap));
 
 	/* capability flags */
 	tmp = cpu_to_le32(cap);
maintainer Applied
#1 lore raw
Quoted 3 lines · Mahesh Palivela

From: Mahesh Palivela <[email protected]>

Rename vht_capabilities to vht_cap

Applied, but I had to fix up some whitespace damage from your mailer (two spaces in front, line wrapping)

johannes

maintainer
#2 lore raw
In reply to Mahesh Palivela
Quoted 18 lines · Mahesh Palivela

From: Mahesh Palivela <[email protected]>

Rename vht_capabilities to vht_cap

---

  include/linux/ieee80211.h |    2 +-
  net/mac80211/main.c       |    2 +-
  net/mac80211/mlme.c       |    4 ++--
  net/mac80211/util.c       |    4 ++--
  4 files changed, 6 insertions(+), 6 deletions(-)
include/linux/ieee80211.h +0 -0
index 2385119..afd12d9 100644

include/linux/ieee80211.h struct ieee80211_ht_operation { · line 1115

Quoted 8 lines
include/linux/ieee80211.h +1 -1
@@ -1109,7 +1109,7 @@ struct ieee80211_ht_operation {
 
  #define VHT_MCS_SUPPORTED_SET_SIZE      8
 
-struct ieee80211_vht_capabilities {
+struct ieee80211_vht_cap {
  	__le32 vht_capabilities_info;
  	u8 vht_supported_mcs_set[VHT_MCS_SUPPORTED_SET_SIZE];
  } __packed;

This patch doesn't rename any fields

johannes