From: Benjamin Berg This can be used to report some information about frames that are duplicated across multiple channels. The reported information may just be an estimate based on the energy observed on each subchannel. An example of such duplication are RTS frames that are sent using a legacy rate but are duplicated into multiple subchannels for compatibility. Signed-off-by: Benjamin Berg Signed-off-by: Miri Korenblit --- include/net/ieee80211_radiotap.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/include/net/ieee80211_radiotap.h b/include/net/ieee80211_radiotap.h index 782c3dcd8b52..1881ebf8c713 100644 --- a/include/net/ieee80211_radiotap.h +++ b/include/net/ieee80211_radiotap.h @@ -96,6 +96,7 @@ enum ieee80211_radiotap_presence { IEEE80211_RADIOTAP_S1G = 32, IEEE80211_RADIOTAP_EHT_USIG = 33, IEEE80211_RADIOTAP_EHT = 34, + IEEE80211_RADIOTAP_OBSERVED_ENERGY = 35, IEEE80211_RADIOTAP_UHR_ELR = 37, IEEE80211_RADIOTAP_UHR = 38, }; @@ -651,6 +652,25 @@ enum ieee80211_radiotap_uhr_usig_elr { IEEE80211_RADIOTAP_UHR_USIG2_ELR_B20_B25_TAIL = 0xfc000000, }; +/* for IEEE80211_RADIOTAP_OBSERVED_ENERGY */ +enum ieee80211_radiotap_observed_energy_known { + IEEE80211_RADIOTAP_OBSERVED_ENERGY_KNOWN_BW = 0x0001, +}; + +/** + * struct ieee80211_radiotap_observed_energy - Observed Energy (type 35) + * see www.radiotap.org/fields/observed%20energy.html for details. + * + * @known: Bitmap indicating which information is present + * @bw: The bandwidth in MHz sufficient to contain all subchannels where energy + * likely belonging to the same transmission was observed. This may + * indicate that the transmission was duplicated on multiple channels. + */ +struct ieee80211_radiotap_observed_energy { + __le16 known; + __le16 bw; +} __packed; + /* * ieee80211_radiotap_uhr_elr - content of UHR-ELR TLV (type 37) * see https://www.radiotap.org/fields/UHR-ELR for details -- 2.34.1