chore: sdk compiles almost w/o warnings?
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "wifi_simple_config.h"
|
||||
#include "wifi_conf.h"
|
||||
#include "wifi_util.h"
|
||||
#include "wifi_promisc.h"
|
||||
|
||||
#if CONFIG_EXAMPLE_UART_ATCMD || CONFIG_EXAMPLE_SPI_ATCMD
|
||||
#include "at_cmd/atcmd_wifi.h"
|
||||
@@ -97,7 +98,7 @@ struct ack_msg {
|
||||
PACK_STRUCT_FIELD(u16_t device_type);
|
||||
PACK_STRUCT_FIELD(u32_t device_ip);
|
||||
PACK_STRUCT_FIELD(u8_t device_name[64]);
|
||||
};PACK_STRUCT_STRUCT;
|
||||
} PACK_STRUCT_STRUCT;
|
||||
PACK_STRUCT_END
|
||||
#ifdef PACK_STRUCT_USE_INCLUDES
|
||||
#include "arch/epstruct.h"
|
||||
@@ -299,7 +300,7 @@ int SC_send_simple_config_ack(u8 round)
|
||||
}
|
||||
#endif
|
||||
printf("\nSending simple config ack\n");
|
||||
FD_ZERO(&to_addr);
|
||||
memset(&to_addr, 0, sizeof(struct sockaddr_in));
|
||||
to_addr.sin_family = AF_INET;
|
||||
to_addr.sin_port = htons(8864);
|
||||
to_addr.sin_addr.s_addr = (backup_sc_ctx->ip_addr);
|
||||
@@ -1022,19 +1023,19 @@ extern void rtk_sc_deinit(void);
|
||||
|
||||
void init_simple_config_lib_config(struct simple_config_lib_config* config)
|
||||
{
|
||||
config->free = rtw_mfree;
|
||||
config->malloc = rtw_malloc;
|
||||
config->memcmp = _memcmp;
|
||||
config->memcpy = _memcpy;
|
||||
config->memset = _memset;
|
||||
config->free = (simple_config_free_fn)rtw_mfree;
|
||||
config->malloc = (simple_config_malloc_fn)rtw_malloc;
|
||||
config->memcmp = (simple_config_memcmp_fn)_memcmp;
|
||||
config->memcpy = (simple_config_memcpy_fn)_memcpy;
|
||||
config->memset = (simple_config_memset_fn)_memset;
|
||||
config->printf = (simple_config_printf_fn)printf;
|
||||
config->strcpy = _strcpy;
|
||||
config->strlen = _strlen;
|
||||
config->zmalloc = rtw_zmalloc;
|
||||
config->strcpy = (simple_config_strcpy_fn)_strcpy;
|
||||
config->strlen = (simple_config_strlen_fn)_strlen;
|
||||
config->zmalloc = (simple_config_zmalloc_fn)rtw_zmalloc;
|
||||
#if CONFIG_LWIP_LAYER
|
||||
config->_ntohl = lwip_ntohl;
|
||||
config->_ntohl = (simple_config_ntohl_fn)lwip_ntohl;
|
||||
#else
|
||||
config->_ntohl = _ntohl;
|
||||
config->_ntohl = (simple_config_ntohl_fn)_ntohl;
|
||||
#endif
|
||||
config->is_promisc_callback_unlock = &is_promisc_callback_unlock;
|
||||
}
|
||||
@@ -1342,6 +1343,8 @@ static void init_promisc_scan_channel(unsigned char softAP_ch)
|
||||
return;
|
||||
}
|
||||
|
||||
extern void dhcps_deinit(void);
|
||||
extern void dhcps_init(struct netif * pnetif);
|
||||
static int SimpleConfig_softAP_start(const char* ap_name, const char *ap_password)
|
||||
{
|
||||
int timeout = 20;
|
||||
|
||||
Reference in New Issue
Block a user