From: Luciano Coelho Date: Thu, 1 Apr 2010 08:38:18 +0000 (+0300) Subject: wl1271: added missing command header in wl1271_cmd_disconnect X-Git-Tag: v2.6.35-rc1~473^2~167^2~357 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=1ed95388caf0ae41f905817e39cd7b5093bf8d7f;p=linux-block.git wl1271: added missing command header in wl1271_cmd_disconnect The command header was missing in the wl1271_cmd_disconnect structure. It was working fine by sheer luck, because the parameters are not critical and because our wl1271_cmd_send() function was overwriting the rx_config_options with the actual header. This patch adds the header to the command structure. Signed-off-by: Luciano Coelho Reviewed-by: Juuso Oikarinen Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/wl12xx/wl1271_cmd.h b/drivers/net/wireless/wl12xx/wl1271_cmd.h index e1131bc0d15c..d61f3394253f 100644 --- a/drivers/net/wireless/wl12xx/wl1271_cmd.h +++ b/drivers/net/wireless/wl12xx/wl1271_cmd.h @@ -518,6 +518,8 @@ enum wl1271_disconnect_type { }; struct wl1271_cmd_disconnect { + struct wl1271_cmd_header header; + __le32 rx_config_options; __le32 rx_filter_options;