Skip to content

Commit 9d48b52

Browse files
committed
Removed unused "socket.h" interface from WiFi library.
(that was probably an heritage from Ethernet lib)
1 parent d920b7b commit 9d48b52

File tree

6 files changed

+2
-90
lines changed

6 files changed

+2
-90
lines changed

libraries/WiFi/arch/avr/WiFiClient.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
extern "C" {
22
#include "utility/wl_definitions.h"
33
#include "utility/wl_types.h"
4-
#include "utility/socket.h"
54
#include "string.h"
65
#include "utility/debug.h"
76
}

libraries/WiFi/arch/avr/utility/socket.h

Lines changed: 0 additions & 34 deletions
This file was deleted.

libraries/WiFi/arch/sam/WiFiClient.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
extern "C" {
22
#include "utility/wl_definitions.h"
33
#include "utility/wl_types.h"
4-
#include "utility/socket.h"
54
#include "string.h"
65
#include "utility/debug.h"
76
}

libraries/WiFi/arch/sam/utility/socket.h

Lines changed: 0 additions & 34 deletions
This file was deleted.

libraries/WiFi/src/utility/socket.c

Lines changed: 0 additions & 20 deletions
This file was deleted.

libraries/WiFi/src/utility/wl_definitions.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
#define WL_NETWORKS_LIST_MAXNUM 10
2323
// Maxmium number of socket
2424
#define MAX_SOCK_NUM 4
25+
// Socket not available constant
26+
#define SOCK_NOT_AVAIL 255
2527
// Default state value for Wifi state field
2628
#define NA_STATE -1
2729
//Maximum number of attempts to establish wifi connection

0 commit comments

Comments
 (0)