]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Fix CONFIG_PCMCIA_WL3501 with older compilers
authorLinus Torvalds <torvalds@osdl.org>
Tue, 9 Sep 2003 06:45:50 +0000 (23:45 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 9 Sep 2003 06:45:50 +0000 (23:45 -0700)
We only support named initializers with one leval of naming, ie that

.foo.bar = baz,

thing should go.  gcc-2.95 doesn't handle it (neither does sparse, I
think).

Replace such initializers with

.foo = {
.bar = baz,
},

instead.

drivers/net/wireless/wl3501_cs.c

index 0bb13a6a50b2a118c2082e19bceb6c9dd1ada19c..3bce38f9e8086bc973e61d7a35e8309d5fd28464 100644 (file)
@@ -638,8 +638,10 @@ static int wl3501_mgmt_join(struct wl3501_card *this, u16 stas)
                .sig_id           = WL3501_SIG_JOIN_REQ,
                .timeout          = 10,
                .ds_pset = {
-                       .el.id  = IW_MGMT_INFO_ELEMENT_DS_PARAMETER_SET,
-                       .el.len = 1,
+                       .el = {
+                               .id  = IW_MGMT_INFO_ELEMENT_DS_PARAMETER_SET,
+                               .len = 1,
+                       },
                        .chan   = this->chan,
                },
        };
@@ -655,13 +657,17 @@ static int wl3501_mgmt_start(struct wl3501_card *this)
                .beacon_period          = 400,
                .dtim_period            = 1,
                .ds_pset = {
-                       .el.id  = IW_MGMT_INFO_ELEMENT_DS_PARAMETER_SET,
-                       .el.len = 1,
+                       .el = {
+                               .id  = IW_MGMT_INFO_ELEMENT_DS_PARAMETER_SET,
+                               .len = 1,
+                       },
                        .chan   = this->chan,
                },
                .bss_basic_rset = {
-                       .el.id  = IW_MGMT_INFO_ELEMENT_SUPPORTED_RATES,
-                       .el.len = 2,
+                       .el = {
+                               .id     = IW_MGMT_INFO_ELEMENT_SUPPORTED_RATES,
+                               .len = 2,
+                       },
                        .data_rate_labels = {
                                [0] = IW_MGMT_RATE_LABEL_MANDATORY |
                                      IW_MGMT_RATE_LABEL_1MBIT,
@@ -670,8 +676,10 @@ static int wl3501_mgmt_start(struct wl3501_card *this)
                        },
                },
                .operational_rset       = {
-                       .el.id  = IW_MGMT_INFO_ELEMENT_SUPPORTED_RATES,
-                       .el.len = 2,
+                       .el = {
+                               .id     = IW_MGMT_INFO_ELEMENT_SUPPORTED_RATES,
+                               .len = 2,
+                       },
                        .data_rate_labels = {
                                [0] = IW_MGMT_RATE_LABEL_MANDATORY |
                                      IW_MGMT_RATE_LABEL_1MBIT,
@@ -680,8 +688,10 @@ static int wl3501_mgmt_start(struct wl3501_card *this)
                        },
                },
                .ibss_pset              = {
-                       .el.id       = IW_MGMT_INFO_ELEMENT_IBSS_PARAMETER_SET,
-                       .el.len      = 2,
+                       .el = {
+                               .id      = IW_MGMT_INFO_ELEMENT_IBSS_PARAMETER_SET,
+                               .len     = 2,
+                       },
                        .atim_window = 10,
                },
                .bss_type               = wl3501_fw_bss_type(this),