summaryrefslogtreecommitdiff
path: root/drivers/staging/wilc1000/coreconfigurator.h
diff options
context:
space:
mode:
authorAjay Singh <ajay.kathat@microchip.com>2018-11-01 16:45:17 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-05 15:23:01 +0100
commitbfaf36a4082a89c53d7632af264656ba2fbb2be9 (patch)
tree6948780b472af1e0499ca638373a374587efdb24 /drivers/staging/wilc1000/coreconfigurator.h
parent64f656cbd026b362a728057a7ef6276b90d67eb4 (diff)
staging: wilc1000: refactor wilc_parse_assoc_resp_info()
Refactor wilc_parse_assoc_resp_info() function by removing the use of get_asoc_status() API. For parsing assoc response use the struct and avoided the use of offset macros to extract the ies information. Signed-off-by: Ajay Singh <ajay.kathat@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/coreconfigurator.h')
-rw-r--r--drivers/staging/wilc1000/coreconfigurator.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/staging/wilc1000/coreconfigurator.h b/drivers/staging/wilc1000/coreconfigurator.h
index 0d40c77f2706..71a9f27d4b8f 100644
--- a/drivers/staging/wilc1000/coreconfigurator.h
+++ b/drivers/staging/wilc1000/coreconfigurator.h
@@ -11,10 +11,6 @@
#define NUM_RSSI 5
-#define CAP_INFO_LEN 2
-#define STATUS_CODE_LEN 2
-#define AID_LEN 2
-
#define SET_CFG 0
#define GET_CFG 1
@@ -63,6 +59,12 @@ struct disconnect_info {
size_t ie_len;
};
+struct assoc_resp {
+ __le16 capab_info;
+ __le16 status_code;
+ __le16 aid;
+} __packed;
+
s32 wilc_parse_network_info(u8 *msg_buffer,
struct network_info **ret_network_info);
s32 wilc_parse_assoc_resp_info(u8 *buffer, u32 buffer_len,