Skip to contentSkip to conversation

MCS rate suggested field - how about aggregation

DISCUSSION Luis R. Rodriguez 3 participants 3 messages Nov 26, 2009 – Nov 27, 2009 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 43e72e890911261350yadfa099n2c9d44d2f30d4845-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#2 lore raw
Quoted 3 lines · Luis R. Rodriguez

Matteo added an MCS field as a suggested field:

http://www.radiotap.org/suggested-fields/MCS

He was going to submit an RFA -- can we not jump that? :)

Quoted 1 line

Curious if anyone has thought about how to process aggregates though.

FWIW, I think MCS and aggregation is logically different although they both belong to HT most of the time. Therefore, I think aggregates should be handled in a different field.

johannes

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 7 lines · Johannes Berg
Quoted 3 lines · Luis R. Rodriguez

Matteo added an MCS field as a suggested field:

http://www.radiotap.org/suggested-fields/MCS

He was going to submit an RFA -- can we not jump that? :)

Quoted 8 lines
Quoted 1 line

Curious if anyone has thought about how to process aggregates though.

FWIW, I think MCS and aggregation is logically different although they both belong to HT most of the time. Therefore, I think aggregates should be handled in a different field.

johannes

I wrote some implementations for the MCS field for mac80211, tcpdump and wireshark.
They can be found here: http://teknoraver.net/software/radiotap_mcs/

I attach the radiotap one below:

radiotap.c +0 -0
index 0745ba8..a5c64a8 100644
@@ -60,6 +60,7 @@ static const struct radiotap_align_size

rtap_namespace_sizes[] = {
[IEEE80211_RADIOTAP_TX_FLAGS] = { .align = 2, .size = 2, }, [IEEE80211_RADIOTAP_RTS_RETRIES] = { .align = 1, .size = 1, }, [IEEE80211_RADIOTAP_DATA_RETRIES] = { .align = 1, .size = 1, },
+ [IEEE80211_RADIOTAP_RATE_MCS] = { .align = 1, .size = 2, },
/*
* add more here as they are defined in
* include/net/ieee80211_radiotap.h

radiotap.h +10 -0
index 87455eb..3c3f591 100644
@@ -178,6 +178,11 @@ struct ieee80211_radiotap_header {
  *
  *     Number of unicast retries a transmitted frame used.
  *
+ * IEEE80211_RADIOTAP_RATE_MCS       2 x u8          data, bitmap
+ *
+ *     First byte is the MCS index of the rate,
+ *     second one has flags about channel width and guard interval
+ *
  */
 enum ieee80211_radiotap_type {
 	IEEE80211_RADIOTAP_TSFT = 0,
@@ -198,6 +203,7 @@ enum ieee80211_radiotap_type {
 	IEEE80211_RADIOTAP_TX_FLAGS = 15,
 	IEEE80211_RADIOTAP_RTS_RETRIES = 16,
 	IEEE80211_RADIOTAP_DATA_RETRIES = 17,
+	IEEE80211_RADIOTAP_RATE_MCS = 19,
 
 	/* valid in every it_present bitmap, even vendor namespaces */
 	IEEE80211_RADIOTAP_RADIOTAP_NAMESPACE = 29,
@@ -243,4 +249,8 @@ enum ieee80211_radiotap_type {
 #define IEEE80211_RADIOTAP_F_TX_CTS	0x0002	/* used cts 'protection' */
 #define IEEE80211_RADIOTAP_F_TX_RTS	0x0004	/* used rts/cts handshake */
 
+/* For IEEE80211_RADIOTAP_RATE_MCS */
+#define IEEE80211_RADIOTAP_RATE_MCS_40MHZ	0x01 /* 40 MHz channel width */
+#define IEEE80211_RADIOTAP_RATE_MCS_SHORT_GI	0x02 /* short guard interval */
+
 #endif				/* IEEE80211_RADIOTAP_H */