aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/xmit.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/b43/xmit.c')
-rw-r--r--drivers/net/wireless/b43/xmit.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/wireless/b43/xmit.c b/drivers/net/wireless/b43/xmit.c
index e6174b6f11fb..0bd6f8a348a8 100644
--- a/drivers/net/wireless/b43/xmit.c
+++ b/drivers/net/wireless/b43/xmit.c
@@ -121,10 +121,12 @@ void b43_generate_plcp_hdr(struct b43_plcp_hdr4 *plcp,
121 __u8 *raw = plcp->raw; 121 __u8 *raw = plcp->raw;
122 122
123 if (b43_is_ofdm_rate(bitrate)) { 123 if (b43_is_ofdm_rate(bitrate)) {
124 *data = b43_plcp_get_ratecode_ofdm(bitrate); 124 u32 d;
125
126 d = b43_plcp_get_ratecode_ofdm(bitrate);
125 B43_WARN_ON(octets & 0xF000); 127 B43_WARN_ON(octets & 0xF000);
126 *data |= (octets << 5); 128 d |= (octets << 5);
127 *data = cpu_to_le32(*data); 129 *data = cpu_to_le32(d);
128 } else { 130 } else {
129 u32 plen; 131 u32 plen;
130 132