Skip to contentSkip to conversation

mac80211: explain padding in place of rate field

PATCH New Johannes Berg 1 participant 1 message Apr 18, 2011 mac80211

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 mac80211: explain padding in place of rate field

From: Johannes Berg <[email protected]>

Apparently this was confusing still ... add a
note that the byte is needed as padding.

---
 net/mac80211/rx.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
net/mac80211/rx.c +2 -1
@@ -143,7 +143,8 @@ ieee80211_add_rx_radiotap_header(struct
 	if (status->flag & RX_FLAG_HT) {
 		/*
 		 * MCS information is a separate field in radiotap,
-		 * added below.
+		 * added below. The byte here is needed as padding
+		 * for the channel though, so initialise it to 0.
 		 */
 		*pos = 0;
 	} else {