aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/brcm80211/brcmfmac
diff options
context:
space:
mode:
authorFranky Lin <frankyl@broadcom.com>2011-12-08 18:06:38 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-12-13 15:31:12 -0500
commite40aed0638ac84d63a2ff33502e215ac81010a89 (patch)
tree8c86702d0cc13ea6ba3746e109d1371042db39f6 /drivers/net/wireless/brcm80211/brcmfmac
parentd76d1c8c1deebe0c71872ac4e500d6a2233f80ff (diff)
brcm80211: fmac: fix firmware shared structures version
Some shared structures in fullmac have a wrong combination of version number and declarations. This patch fixes it by upgrading them to the latest version. This allows brcmfmac to support new firmwares with new features. Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Reviewed-by: Arend van Spriel <arend@broadcom.com> Reviewed-by: Alwin Beukers <alwin@broadcom.com> Signed-off-by: Franky Lin <frankyl@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmfmac')
-rw-r--r--drivers/net/wireless/brcm80211/brcmfmac/dhd.h2
-rw-r--r--drivers/net/wireless/brcm80211/brcmfmac/dhd_cdc.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/dhd.h b/drivers/net/wireless/brcm80211/brcmfmac/dhd.h
index b68d1363105c..ed60f4d69627 100644
--- a/drivers/net/wireless/brcm80211/brcmfmac/dhd.h
+++ b/drivers/net/wireless/brcm80211/brcmfmac/dhd.h
@@ -87,7 +87,7 @@
87#define TOE_TX_CSUM_OL 0x00000001 87#define TOE_TX_CSUM_OL 0x00000001
88#define TOE_RX_CSUM_OL 0x00000002 88#define TOE_RX_CSUM_OL 0x00000002
89 89
90#define BRCMF_BSS_INFO_VERSION 108 /* curr ver of brcmf_bss_info_le struct */ 90#define BRCMF_BSS_INFO_VERSION 109 /* curr ver of brcmf_bss_info_le struct */
91 91
92/* size of brcmf_scan_params not including variable length array */ 92/* size of brcmf_scan_params not including variable length array */
93#define BRCMF_SCAN_PARAMS_FIXED_SIZE 64 93#define BRCMF_SCAN_PARAMS_FIXED_SIZE 64
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/dhd_cdc.c b/drivers/net/wireless/brcm80211/brcmfmac/dhd_cdc.c
index a527d5d4cc4e..ebd53aa7202b 100644
--- a/drivers/net/wireless/brcm80211/brcmfmac/dhd_cdc.c
+++ b/drivers/net/wireless/brcm80211/brcmfmac/dhd_cdc.c
@@ -58,7 +58,7 @@ struct brcmf_proto_cdc_dcmd {
58 * Used on data packets to convey priority across USB. 58 * Used on data packets to convey priority across USB.
59 */ 59 */
60#define BDC_HEADER_LEN 4 60#define BDC_HEADER_LEN 4
61#define BDC_PROTO_VER 1 /* Protocol version */ 61#define BDC_PROTO_VER 2 /* Protocol version */
62#define BDC_FLAG_VER_MASK 0xf0 /* Protocol version mask */ 62#define BDC_FLAG_VER_MASK 0xf0 /* Protocol version mask */
63#define BDC_FLAG_VER_SHIFT 4 /* Protocol version shift */ 63#define BDC_FLAG_VER_SHIFT 4 /* Protocol version shift */
64#define BDC_FLAG_SUM_GOOD 0x04 /* Good RX checksums */ 64#define BDC_FLAG_SUM_GOOD 0x04 /* Good RX checksums */
@@ -77,7 +77,7 @@ struct brcmf_proto_bdc_header {
77 u8 flags; 77 u8 flags;
78 u8 priority; /* 802.1d Priority, 4:7 flow control info for usb */ 78 u8 priority; /* 802.1d Priority, 4:7 flow control info for usb */
79 u8 flags2; 79 u8 flags2;
80 u8 rssi; 80 u8 data_offset;
81}; 81};
82 82
83 83
@@ -372,7 +372,7 @@ void brcmf_proto_hdrpush(struct brcmf_pub *drvr, int ifidx,
372 372
373 h->priority = (pktbuf->priority & BDC_PRIORITY_MASK); 373 h->priority = (pktbuf->priority & BDC_PRIORITY_MASK);
374 h->flags2 = 0; 374 h->flags2 = 0;
375 h->rssi = 0; 375 h->data_offset = 0;
376 BDC_SET_IF_IDX(h, ifidx); 376 BDC_SET_IF_IDX(h, ifidx);
377} 377}
378 378