Thread (12 messages) 12 messages, 3 authors, 2012-06-28

RE: [PATCH] cfg80211/mac80211: 802.11ac changes

From: Mahesh Palivela <hidden>
Date: 2012-06-28 12:39:34

________________________________________
From: Johannes Berg [johannes@sipsolutions.net]
Sent: Thursday, June 28, 2012 4:37 PM
To: Mahesh Palivela
Cc: linville@tuxdriver.com; linux-wireless@vger.kernel.org
Subject: Re: [PATCH] cfg80211/mac80211: 802.11ac changes

Ok I applied some of the changes (see mac80211-next tree), but not the
mac80211 pieces. Please fix:

+     if (supp_vht)
+             local->scan_ies_len += 2 + sizeof(struct ieee80211_vht_capabilities);
too long line

[MP] But within column 80. shall I break from sizeof?
+     if (sband->vht_cap.vht_supported)
+             pos = ieee80211_ie_build_vht_cap(pos, &sband->vht_cap,
+                                             sband->vht_cap.cap);
indentation

[MP] sorry. I didn't get. Is it sband-> line to be moved left? But previous build_ht_cap() has similar indentation
quoted hunk ↗ jump to hunk
      return pos - buffer;
 }
@@ -1696,6 +1700,27 @@ u8 *ieee80211_ie_build_ht_cap(u8 *pos, struct ieee80211_sta_ht_cap *ht_cap,
      return pos;
 }

+u8 *ieee80211_ie_build_vht_cap(u8 *pos, struct ieee80211_sta_vht_cap *vht_cap,
+                           u32 cap)
indentation here & in ieee80211_i.h

[MP] ditto. please explain
+     __le32 tmp;
+
+     *pos++ = WLAN_EID_VHT_CAPABILITY;
+     *pos++ = sizeof(struct ieee80211_vht_capabilities);
+     memset(pos, 0, sizeof(struct ieee80211_vht_capabilities));
+
+     /* capability flags */
+     tmp = cpu_to_le16(cap);
+     memcpy(pos, &tmp, sizeof(u32));
+     pos += sizeof(u32);
+
+     /* VHT MCS set */
+     memcpy(pos, &vht_cap->vht_mcs, sizeof(vht_cap->vht_mcs));
+     pos += sizeof(vht_cap->vht_mcs);
+
endian issues

[MP] I see mistake tmp = cpu_to_le16(cap) to be changed to tmp = cpu_to_le32(cap). MCS set is fine right?

johannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help