Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 368367
b: refs/heads/master
c: bee1b84
h: refs/heads/master
i:
  368365: 5b478ca
  368363: 29d2741
  368359: 2e7d0a9
  368351: 1557b29
v: v3
  • Loading branch information
Arend van Spriel authored and John W. Linville committed Mar 6, 2013
1 parent 88c6c95 commit bfb7cc5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dc7bdbf1ae939d74485569db285971274f4d8fea
refs/heads/master: bee1b848877b9e4512bdda480f73cda12b593e2f
17 changes: 15 additions & 2 deletions trunk/drivers/net/wireless/brcm80211/brcmfmac/dhd_cdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,26 @@ struct brcmf_proto_cdc_dcmd {
((hdr)->flags2 = (((hdr)->flags2 & ~BDC_FLAG2_IF_MASK) | \
((idx) << BDC_FLAG2_IF_SHIFT)))

/**
* struct brcmf_proto_bdc_header - BDC header format
*
* @flags: flags contain protocol and checksum info.
* @priority: 802.1d priority and USB flow control info (bit 4:7).
* @flags2: additional flags containing dongle interface index.
* @data_offset: start of packet data. header is following by firmware signals.
*/
struct brcmf_proto_bdc_header {
u8 flags;
u8 priority; /* 802.1d Priority, 4:7 flow control info for usb */
u8 priority;
u8 flags2;
u8 data_offset;
};

/*
* maximum length of firmware signal data between
* the BDC header and packet data in the tx path.
*/
#define BRCMF_PROT_FW_SIGNAL_MAX_TXBYTES 12

#define RETRIES 2 /* # of retries to retrieve matching dcmd response */
#define BUS_HEADER_LEN (16+64) /* Must be atleast SDPCM_RESERVE
Expand Down Expand Up @@ -350,7 +363,7 @@ int brcmf_proto_attach(struct brcmf_pub *drvr)
}

drvr->prot = cdc;
drvr->hdrlen += BDC_HEADER_LEN;
drvr->hdrlen += BDC_HEADER_LEN + BRCMF_PROT_FW_SIGNAL_MAX_TXBYTES;
drvr->bus_if->maxctl = BRCMF_DCMD_MAXLEN +
sizeof(struct brcmf_proto_cdc_dcmd) + ROUND_UP_MARGIN;
return 0;
Expand Down

0 comments on commit bfb7cc5

Please sign in to comment.