From: Andrew Morton <[email-masked]>

drivers/net/wireless/ipw2100.c: In function `ipw2100_set_key_index':
drivers/net/wireless/ipw2100.c:5326: array index in non-array initializer
drivers/net/wireless/ipw2100.c:5326: (near initialization for `cmd')
drivers/net/wireless/ipw2100.c:5326: warning: missing braces around initializer
drivers/net/wireless/ipw2100.c:5326: warning: (near initialization for `cmd.host_command_parameters')

Cc: Jeff Garzik <[email-masked]>
Signed-off-by: Andrew Morton <[email-masked]>
---

 drivers/net/wireless/ipw2100.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/net/wireless/ipw2100.c~ipw2100-old-gcc-fix drivers/net/wireless/ipw2100.c
--- 25/drivers/net/wireless/ipw2100.c~ipw2100-old-gcc-fix	2005-06-06 00:13:46.000000000 -0700
+++ 25-akpm/drivers/net/wireless/ipw2100.c	2005-06-06 00:13:46.000000000 -0700
@@ -5324,7 +5324,7 @@ static int ipw2100_set_key_index(struct 
 		.host_command = WEP_KEY_INDEX,
 		.host_command_sequence = 0,
 		.host_command_length = 4,
-		.host_command_parameters[0] = idx,
+		.host_command_parameters = { idx },
 	};
 	int err;
 
_