Skip to content

Commit aefbc0b

Browse files
vanhoefmgregkh
authored andcommitted
mac80211: properly set CCK flag in radiotap
commit 3a5c5e8 upstream. Fix a regression introduced by commit a5e7069 ("mac80211: add radiotap flag and handling for 5/10 MHz") where the IEEE80211_CHAN_CCK channel type flag was incorrectly replaced by the IEEE80211_CHAN_OFDM flag. This commit fixes that by using the CCK flag again. Fixes: a5e7069 ("mac80211: add radiotap flag and handling for 5/10 MHz") Signed-off-by: Mathy Vanhoef <vanhoefm@gmail.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 0c21735 commit aefbc0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/mac80211/rx.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ ieee80211_add_rx_radiotap_header(struct ieee80211_local *local,
235235
else if (rate && rate->flags & IEEE80211_RATE_ERP_G)
236236
channel_flags |= IEEE80211_CHAN_OFDM | IEEE80211_CHAN_2GHZ;
237237
else if (rate)
238-
channel_flags |= IEEE80211_CHAN_OFDM | IEEE80211_CHAN_2GHZ;
238+
channel_flags |= IEEE80211_CHAN_CCK | IEEE80211_CHAN_2GHZ;
239239
else
240240
channel_flags |= IEEE80211_CHAN_2GHZ;
241241
put_unaligned_le16(channel_flags, pos);

0 commit comments

Comments
 (0)