summaryrefslogtreecommitdiff
path: root/package/b43/src/xmit.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-11-11 11:44:59 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-11-11 11:44:59 +0000
commit1eb35dd1c8098556de0c174f780cff15eb212d4f (patch)
tree5041c300eadaa3d1ea18f435f7c98ee17ddaee8b /package/b43/src/xmit.c
parent1bca0cc51704b5ef57c5e3a9d7a1b80633486d16 (diff)
downloadmtk-20170518-1eb35dd1c8098556de0c174f780cff15eb212d4f.zip
mtk-20170518-1eb35dd1c8098556de0c174f780cff15eb212d4f.tar.gz
mtk-20170518-1eb35dd1c8098556de0c174f780cff15eb212d4f.tar.bz2
add b43 fixes from #2677
SVN-Revision: 9535
Diffstat (limited to 'package/b43/src/xmit.c')
-rw-r--r--package/b43/src/xmit.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/package/b43/src/xmit.c b/package/b43/src/xmit.c
index e6174b6..0bd6f8a 100644
--- a/package/b43/src/xmit.c
+++ b/package/b43/src/xmit.c
@@ -121,10 +121,12 @@ void b43_generate_plcp_hdr(struct b43_plcp_hdr4 *plcp,
__u8 *raw = plcp->raw;
if (b43_is_ofdm_rate(bitrate)) {
- *data = b43_plcp_get_ratecode_ofdm(bitrate);
+ u32 d;
+
+ d = b43_plcp_get_ratecode_ofdm(bitrate);
B43_WARN_ON(octets & 0xF000);
- *data |= (octets << 5);
- *data = cpu_to_le32(*data);
+ d |= (octets << 5);
+ *data = cpu_to_le32(d);
} else {
u32 plen;