Commit 9deb1ae5 authored by Bruno Randolf's avatar Bruno Randolf Committed by John W. Linville
Browse files

mac80211: radiotap: assume modulation from rates

use the rates ERP flag to derive CCK or OFDM modulation for the radiotap

(it might be more correct to get this information from the hardware itself, but it
seems safe to assume this in most practical cases.)

Signed-off-by: default avatarBruno Randolf <>
Signed-off-by: default avatarJohn W. Linville <>
parent b4f28bbb
......@@ -157,8 +157,11 @@ ieee80211_add_rx_radiotap_header(struct ieee80211_local *local,
if (status->band == IEEE80211_BAND_5GHZ)
*(__le16 *)pos = cpu_to_le16(IEEE80211_CHAN_OFDM |
else if (rate->flags & IEEE80211_RATE_ERP_G)
*(__le16 *)pos = cpu_to_le16(IEEE80211_CHAN_OFDM |
*(__le16 *)pos = cpu_to_le16(IEEE80211_CHAN_DYN |
*(__le16 *)pos = cpu_to_le16(IEEE80211_CHAN_CCK |
pos += 2;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment