diff options
Diffstat (limited to 'drivers/net/wireless/mac80211_hwsim.c')
-rw-r--r-- | drivers/net/wireless/mac80211_hwsim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 5d30c57e3969..913dc9fe08f9 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c | |||
@@ -126,7 +126,7 @@ static void mac80211_hwsim_monitor_rx(struct ieee80211_hw *hw, | |||
126 | (1 << IEEE80211_RADIOTAP_CHANNEL)); | 126 | (1 << IEEE80211_RADIOTAP_CHANNEL)); |
127 | hdr->rt_flags = 0; | 127 | hdr->rt_flags = 0; |
128 | hdr->rt_rate = txrate->bitrate / 5; | 128 | hdr->rt_rate = txrate->bitrate / 5; |
129 | hdr->rt_channel = data->channel->center_freq; | 129 | hdr->rt_channel = cpu_to_le16(data->channel->center_freq); |
130 | flags = IEEE80211_CHAN_2GHZ; | 130 | flags = IEEE80211_CHAN_2GHZ; |
131 | if (txrate->flags & IEEE80211_RATE_ERP_G) | 131 | if (txrate->flags & IEEE80211_RATE_ERP_G) |
132 | flags |= IEEE80211_CHAN_OFDM; | 132 | flags |= IEEE80211_CHAN_OFDM; |