aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/wilc1000/wilc_wlan.h
diff options
context:
space:
mode:
authorAjay Singh <ajay.kathat@microchip.com>2019-01-17 13:21:15 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-18 10:39:15 +0100
commit8ffcedd6f4c2544fdb4b25479cb3d9dcd21e54e3 (patch)
tree95d563f74f88dfe5a70b1bfd5a96ca00bb565e0d /drivers/staging/wilc1000/wilc_wlan.h
parent4e90d5f3e85c538efd0ae059d5ccfdab3a388b49 (diff)
staging: wilc1000: use 'struct' to pack cfg header frame in wilc_wlan_cfg_commit()
Make use of 'struct' to pack cfg header in wilc_wlan_cfg_commit() instead of byte by byte filling. Signed-off-by: Ajay Singh <ajay.kathat@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_wlan.h')
-rw-r--r--drivers/staging/wilc1000/wilc_wlan.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/staging/wilc1000/wilc_wlan.h b/drivers/staging/wilc1000/wilc_wlan.h
index 27667131de1a..c8ca13b34691 100644
--- a/drivers/staging/wilc1000/wilc_wlan.h
+++ b/drivers/staging/wilc1000/wilc_wlan.h
@@ -14,7 +14,6 @@
* Mac eth header length
*
********************************************/
-#define DRIVER_HANDLER_SIZE 4
#define MAX_MAC_HDR_LEN 26 /* QOS_MAC_HDR_LEN */
#define SUB_MSDU_HEADER_LENGTH 14
#define SNAP_HDR_LEN 8
@@ -251,14 +250,21 @@ struct wilc_hif_func {
#define MAX_CFG_FRAME_SIZE 1468
+struct wilc_cfg_cmd_hdr {
+ u8 cmd_type;
+ u8 seq_no;
+ __le16 total_len;
+ __le32 driver_handler;
+};
+
struct wilc_cfg_frame {
- u8 wid_header[8];
+ struct wilc_cfg_cmd_hdr hdr;
u8 frame[MAX_CFG_FRAME_SIZE];
};
struct wilc_cfg_rsp {
- int type;
- u32 seq_no;
+ u8 type;
+ u8 seq_no;
};
struct wilc;