mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
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 <j@w1.fi> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
f4f727a6c8
commit
ebe6c7ba9b
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ ieee80211_add_rx_radiotap_header(struct ieee80211_local *local,
|
||||||
*/
|
*/
|
||||||
*pos = 0;
|
*pos = 0;
|
||||||
} else {
|
} else {
|
||||||
rthdr->it_present |= (1 << IEEE80211_RADIOTAP_RATE);
|
rthdr->it_present |= cpu_to_le32(1 << IEEE80211_RADIOTAP_RATE);
|
||||||
*pos = rate->bitrate / 5;
|
*pos = rate->bitrate / 5;
|
||||||
}
|
}
|
||||||
pos++;
|
pos++;
|
||||||
|
|
Loading…
Reference in a new issue