]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mac80211: Fix radiotap header it_present on big endian CPUs
authorJouni Malinen <j@w1.fi>
Sat, 10 Jan 2009 09:47:33 +0000 (11:47 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Jan 2009 21:00:20 +0000 (16:00 -0500)
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 <j@w1.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/rx.c

index b648c4550d98f8cd927364ea4410d45fa319397d..19ffc8ef1d1d64b4f5b4464ea2a435719afb3161 100644 (file)
@@ -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++;