MCS Field: STBC flag
Subsystems (2)
RFC 1/1 MCS Field: STBC flag
Hello,
I have been doing some testing with STBC and I have noticed that it's not
available in radiotap fields.
We could add new flag to MCS field to support it:
...
0x08 | HT format 0x10 | FEC type 0x20 | STBC
...
0x08 | HT format - 0: mixed, 1: greenfield 0x10 | FEC type - 0: BCC, 1: LDPC 0x20 | STBC - 0: OFF, 1: ON
I have done already implementation for wireshark, mac80211 and ath9k. I haven't tested it for other cards since I don't have one which supports STBC.
Here is proposed patch for radiotap in mac80211. I could send the rest if this new flag definition is ok.
Wojtek
---
include/net/ieee80211_radiotap.h +2 -1
@@ -260,6 +260,7 @@ enum ieee80211_radiotap_type {#define IEEE80211_RADIOTAP_MCS_HAVE_GI 0x04#define IEEE80211_RADIOTAP_MCS_HAVE_FMT 0x08#define IEEE80211_RADIOTAP_MCS_HAVE_FEC 0x10 +#define IEEE80211_RADIOTAP_MCS_HAVE_STBC 0x20#define IEEE80211_RADIOTAP_MCS_BW_MASK 0x03#define IEEE80211_RADIOTAP_MCS_BW_20 0
@@ -269,7 +270,7 @@ enum ieee80211_radiotap_type {#define IEEE80211_RADIOTAP_MCS_SGI 0x04#define IEEE80211_RADIOTAP_MCS_FMT_GF 0x08#define IEEE80211_RADIOTAP_MCS_FEC_LDPC 0x10 - +#define IEEE80211_RADIOTAP_MCS_STBC 0x20/* Ugly macro to convert literal channel numbers into their mhz equivalents * There are certianly some conditions that will break this (like feeding it '30')
include/net/mac80211.h +1 -0
@@ -671,6 +671,7 @@ enum mac80211_rx_flags {RX_FLAG_HT =1 <<9 ,RX_FLAG_40MHZ =1 <<10 ,RX_FLAG_SHORT_GI =1 <<11 , + RX_FLAG_STBC = 1<<12, };/**
net/mac80211/rx.c +0 -0
@@ -199,12 +199,15 @@ ieee80211_add_rx_radiotap_header(struct ieee80211_local
*local,
rthdr->it_present |= cpu_to_le32(1 << IEEE80211_RADIOTAP_MCS); *pos++ = IEEE80211_RADIOTAP_MCS_HAVE_MCS |
IEEE80211_RADIOTAP_MCS_HAVE_GI |
- IEEE80211_RADIOTAP_MCS_HAVE_BW;
+ IEEE80211_RADIOTAP_MCS_HAVE_BW |
+ IEEE80211_RADIOTAP_MCS_HAVE_STBC;
*pos = 0;
if (status->flag & RX_FLAG_SHORT_GI)
*pos |= IEEE80211_RADIOTAP_MCS_SGI;
if (status->flag & RX_FLAG_40MHZ)
*pos |= IEEE80211_RADIOTAP_MCS_BW_40;
+ if (status->flag & RX_FLAG_STBC)
+ *pos |= IEEE80211_RADIOTAP_MCS_STBC;
pos++;
*pos++ = status->rate_idx;
}
---
Quoted 4 lines · Wojciech Dubowik
Hello,
I have been doing some testing with STBC and I have noticed that it's not
available in radiotap fields.
We could add new flag to MCS field to support it:
That seems useful.
I think even for new bits we should follow the regular process, see
http://radiotap.org/Standardisation (and examples on this list of course)
johannes