projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f434b2d
)
mac80211 hwsim: fix endianness bug
author
Johannes Berg
<
[email protected]
>
Thu, 10 Jul 2008 09:56:33 +0000
(11:56 +0200)
committer
John W. Linville
<
[email protected]
>
Mon, 14 Jul 2008 18:52:57 +0000
(14:52 -0400)
Radiotap is entirely little endian. Found with sparse.
Signed-off-by: Johannes Berg <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/mac80211_hwsim.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mac80211_hwsim.c
b/drivers/net/wireless/mac80211_hwsim.c
index 5d30c57e3969cfe4ed4d65da9d57d0f9728122ca..913dc9fe08f9a242b35d46412511e34a5c098e81 100644
(file)
--- 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,
(1 << IEEE80211_RADIOTAP_CHANNEL));
hdr->rt_flags = 0;
hdr->rt_rate = txrate->bitrate / 5;
- hdr->rt_channel =
data->channel->center_freq
;
+ hdr->rt_channel =
cpu_to_le16(data->channel->center_freq)
;
flags = IEEE80211_CHAN_2GHZ;
if (txrate->flags & IEEE80211_RATE_ERP_G)
flags |= IEEE80211_CHAN_OFDM;