brcm80211: fmac: fix firmware shared structures version
[pandora-kernel.git] / drivers / net / wireless / brcm80211 / brcmfmac / dhd_cdc.c
index 5ab8671..ebd53aa 100644 (file)
@@ -58,7 +58,7 @@ struct brcmf_proto_cdc_dcmd {
  * Used on data packets to convey priority across USB.
  */
 #define        BDC_HEADER_LEN          4
-#define BDC_PROTO_VER          1       /* Protocol version */
+#define BDC_PROTO_VER          2       /* Protocol version */
 #define BDC_FLAG_VER_MASK      0xf0    /* Protocol version mask */
 #define BDC_FLAG_VER_SHIFT     4       /* Protocol version shift */
 #define BDC_FLAG_SUM_GOOD      0x04    /* Good RX checksums */
@@ -77,7 +77,7 @@ struct brcmf_proto_bdc_header {
        u8 flags;
        u8 priority;    /* 802.1d Priority, 4:7 flow control info for usb */
        u8 flags2;
-       u8 rssi;
+       u8 data_offset;
 };
 
 
@@ -116,7 +116,7 @@ static int brcmf_proto_cdc_msg(struct brcmf_pub *drvr)
                len = CDC_MAX_MSG_SIZE;
 
        /* Send request */
-       return brcmf_sdbrcm_bus_txctl(drvr->bus, (unsigned char *)&prot->msg,
+       return brcmf_sdbrcm_bus_txctl(drvr->dev, (unsigned char *)&prot->msg,
                                      len);
 }
 
@@ -372,7 +372,7 @@ void brcmf_proto_hdrpush(struct brcmf_pub *drvr, int ifidx,
 
        h->priority = (pktbuf->priority & BDC_PRIORITY_MASK);
        h->flags2 = 0;
-       h->rssi = 0;
+       h->data_offset = 0;
        BDC_SET_IF_IDX(h, ifidx);
 }