1 /* SPDX-License-Identifier: GPL-2.0 */
4 * @file coreconfigurator.h
7 * @sa coreconfigurator.c
12 #ifndef CORECONFIGURATOR_H
13 #define CORECONFIGURATOR_H
15 #include "wilc_wlan_if.h"
17 #define NUM_BASIC_SWITCHES 45
18 #define NUM_FHSS_SWITCHES 0
23 #define NUM_11N_BASIC_SWITCHES 25
24 #define NUM_11N_HUT_SWITCHES 47
26 #define NUM_11N_BASIC_SWITCHES 0
27 #define NUM_11N_HUT_SWITCHES 0
30 #define MAC_HDR_LEN 24
31 #define MAX_SSID_LEN 33
33 #define TIME_STAMP_LEN 8
34 #define BEACON_INTERVAL_LEN 2
35 #define CAP_INFO_LEN 2
36 #define STATUS_CODE_LEN 2
43 #define MAX_STRING_LEN 256
44 #define MAX_SURVEY_RESULT_FRAG_SIZE MAX_STRING_LEN
45 #define SURVEY_RESULT_LENGTH 44
46 #define MAX_ASSOC_RESP_FRAME_SIZE MAX_STRING_LEN
48 #define MAC_CONNECTED 1
49 #define MAC_DISCONNECTED 0
51 #define MAKE_WORD16(lsb, msb) ((((u16)(msb) << 8) & 0xFF00) | (lsb))
52 #define MAKE_WORD32(lsw, msw) ((((u32)(msw) << 16) & 0xFFFF0000) | (lsw))
55 SUCCESSFUL_STATUSCODE
= 0,
66 SHORT_PREAMBLE_UNSUP
= 19,
68 CHANNEL_AGIL_UNSUP
= 21,
69 SHORT_SLOT_UNSUP
= 25,
71 CONNECT_STS_FORCE_16_BIT
= 0xFFFF
74 struct rssi_history_buffer
{
83 u8 ssid
[MAX_SSID_LEN
];
89 unsigned long time_scan_cached
;
90 unsigned long time_scan
;
97 struct rssi_history_buffer rssi_history
;
101 struct connect_resp_info
{
109 struct connect_info
{
118 struct disconnect_info
{
124 s32
wilc_parse_network_info(u8
*msg_buffer
,
125 struct network_info
**ret_network_info
);
126 s32
wilc_parse_assoc_resp_info(u8
*buffer
, u32 buffer_len
,
127 struct connect_resp_info
**ret_connect_resp_info
);
128 void wilc_scan_complete_received(struct wilc
*wilc
, u8
*buffer
, u32 length
);
129 void wilc_network_info_received(struct wilc
*wilc
, u8
*buffer
, u32 length
);
130 void wilc_gnrl_async_info_received(struct wilc
*wilc
, u8
*buffer
, u32 length
);