OSDN Git Service

staging: vt6656: struct vnt_tx_short_buf_head change base type of fifo_ctl to __le16
authorMalcolm Priestley <tvboxspy@gmail.com>
Tue, 22 Jul 2014 21:49:49 +0000 (22:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jul 2014 23:19:36 +0000 (16:19 -0700)
Base type is always little endian.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/rxtx.c
drivers/staging/vt6656/rxtx.h

index 64ec206..2d1ef88 100644 (file)
@@ -1013,7 +1013,7 @@ static int vnt_beacon_xmit(struct vnt_private *priv,
                                vnt_time_stamp_off(priv, current_rate);
        } else {
                current_rate = RATE_1M;
-               short_head->fifo_ctl |= FIFOCTL_11B;
+               short_head->fifo_ctl |= cpu_to_le16(FIFOCTL_11B);
 
                /* Get SignalField,ServiceField,Length */
                vnt_get_phy_field(priv, frame_size, current_rate,
index 3f0ff7a..90b34ab 100644 (file)
@@ -237,7 +237,7 @@ struct vnt_tx_buffer {
 } __packed;
 
 struct vnt_tx_short_buf_head {
-       u16 fifo_ctl;
+       __le16 fifo_ctl;
        u16 time_stamp;
        struct vnt_phy_field ab;
        __le16 duration;