mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #2 from andreaslarssonublox/feature_wifi_ublox_andreas
wifi: ublox fixes to lwip and wifipull/2874/head
commit
e1a4db716b
|
@ -80,4 +80,9 @@ uint32_t emac_stack_mem_chain_len(emac_stack_t* stack, emac_stack_mem_chain_t *c
|
|||
return ((struct pbuf*)chain)->tot_len;
|
||||
}
|
||||
|
||||
void emac_stack_mem_ref(emac_stack_t* stack, emac_stack_mem_t *mem)
|
||||
{
|
||||
pbuf_ref((struct pbuf*)mem);
|
||||
}
|
||||
|
||||
#endif /* DEVICE_EMAC */
|
||||
|
|
|
@ -337,7 +337,7 @@ const char *mbed_lwip_get_netmask(char *buf, int buflen)
|
|||
#if LWIP_IPV4
|
||||
const ip4_addr_t *addr = netif_ip4_netmask(&lwip_netif);
|
||||
if (!ip4_addr_isany(addr)) {
|
||||
return inet_ntoa_r(addr, buf, buflen);
|
||||
return ip4addr_ntoa_r(addr, buf, buflen);
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
|
@ -351,7 +351,7 @@ char *mbed_lwip_get_gateway(char *buf, int buflen)
|
|||
#if LWIP_IPV4
|
||||
const ip4_addr_t *addr = netif_ip4_gw(&lwip_netif);
|
||||
if (!ip4_addr_isany(addr)) {
|
||||
return inet_ntoa_r(addr, buf, buflen);
|
||||
return ip4addr_ntoa_r(addr, buf, buflen);
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
@ -81,9 +81,9 @@
|
|||
#define DEFAULT_ACCEPTMBOX_SIZE 8
|
||||
|
||||
#ifdef LWIP_DEBUG
|
||||
#define TCPIP_THREAD_STACKSIZE 1024*2
|
||||
#define TCPIP_THREAD_STACKSIZE 1200*2
|
||||
#else
|
||||
#define TCPIP_THREAD_STACKSIZE 1024
|
||||
#define TCPIP_THREAD_STACKSIZE 1200
|
||||
#endif
|
||||
|
||||
#define TCPIP_THREAD_PRIO (osPriorityNormal)
|
||||
|
|
|
@ -29,6 +29,7 @@ class WiFiAccessPoint
|
|||
{
|
||||
/** WiFiAccessPoint lifetime
|
||||
*/
|
||||
public:
|
||||
WiFiAccessPoint();
|
||||
WiFiAccessPoint(nsapi_wifi_ap_t ap);
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ public:
|
|||
*/
|
||||
virtual int connect(const char *ssid, const char *pass,
|
||||
nsapi_security_t security = NSAPI_SECURITY_NONE,
|
||||
uint8_t channel = 0);
|
||||
uint8_t channel = 0) = 0;
|
||||
|
||||
/** Start the interface
|
||||
*
|
||||
|
|
|
@ -96,6 +96,14 @@ emac_stack_mem_t *emac_stack_mem_chain_dequeue(emac_stack_t* stack, emac_stack_m
|
|||
*/
|
||||
uint32_t emac_stack_mem_chain_len(emac_stack_t* stack, emac_stack_mem_chain_t *chain);
|
||||
|
||||
/**
|
||||
* Increases the reference counter for the memory
|
||||
*
|
||||
* @param stack Emac stack context
|
||||
* @param mem Memory structure
|
||||
*/
|
||||
void emac_stack_mem_ref(emac_stack_t* stack, emac_stack_mem_t *mem);
|
||||
|
||||
#endif /* DEVICE_EMAC */
|
||||
|
||||
#endif /* EMAC_MBED_STACK_MEM_h */
|
||||
|
|
Loading…
Reference in New Issue