1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2012 - 2018 Microchip Technology Inc., and its subsidiaries.
7 #ifndef CORECONFIGURATOR_H
8 #define CORECONFIGURATOR_H
10 #include "wilc_wlan_if.h"
14 #define MAC_HDR_LEN 24
16 #define TIME_STAMP_LEN 8
17 #define BEACON_INTERVAL_LEN 2
18 #define CAP_INFO_LEN 2
19 #define STATUS_CODE_LEN 2
26 #define MAX_STRING_LEN 256
27 #define MAX_ASSOC_RESP_FRAME_SIZE MAX_STRING_LEN
29 #define MAKE_WORD16(lsb, msb) ((((u16)(msb) << 8) & 0xFF00) | (lsb))
30 #define MAKE_WORD32(lsw, msw) ((((u32)(msw) << 16) & 0xFFFF0000) | (lsw))
32 struct rssi_history_buffer {
41 u8 ssid[MAX_SSID_LEN];
47 unsigned long time_scan_cached;
48 unsigned long time_scan;
55 struct rssi_history_buffer rssi_history;
68 struct disconnect_info {
74 s32 wilc_parse_network_info(u8 *msg_buffer,
75 struct network_info **ret_network_info);
76 s32 wilc_parse_assoc_resp_info(u8 *buffer, u32 buffer_len,
77 struct connect_info *ret_conn_info);
78 void wilc_scan_complete_received(struct wilc *wilc, u8 *buffer, u32 length);
79 void wilc_network_info_received(struct wilc *wilc, u8 *buffer, u32 length);
80 void wilc_gnrl_async_info_received(struct wilc *wilc, u8 *buffer, u32 length);