Browse Source

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 <luciano.coelho@nokia.com>
Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Luciano Coelho 15 years ago
parent
commit
1ed95388ca
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/net/wireless/wl12xx/wl1271_cmd.h

+ 2 - 0
drivers/net/wireless/wl12xx/wl1271_cmd.h

@@ -518,6 +518,8 @@ enum wl1271_disconnect_type {
 };
 };
 
 
 struct wl1271_cmd_disconnect {
 struct wl1271_cmd_disconnect {
+	struct wl1271_cmd_header header;
+
 	__le32 rx_config_options;
 	__le32 rx_config_options;
 	__le32 rx_filter_options;
 	__le32 rx_filter_options;