From: Jouni Malinen Date: Sat, 10 Jan 2009 09:47:33 +0000 (+0200) Subject: mac80211: Fix radiotap header it_present on big endian CPUs X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=ebe6c7ba9b63539d3b1daba1a8ef4cc9ed0f6941;p=deliverable%2Flinux.git mac80211: Fix radiotap header it_present on big endian CPUs When the IEEE80211_RADIOTAP_RATE flag was moved to be conditional, it was mistakenly left without cpu_to_le32(). Fix that. Signed-off-by: Jouni Malinen Signed-off-by: John W. Linville --- diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index b648c4550d98..19ffc8ef1d1d 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -158,7 +158,7 @@ ieee80211_add_rx_radiotap_header(struct ieee80211_local *local, */ *pos = 0; } else { - rthdr->it_present |= (1 << IEEE80211_RADIOTAP_RATE); + rthdr->it_present |= cpu_to_le32(1 << IEEE80211_RADIOTAP_RATE); *pos = rate->bitrate / 5; } pos++;