Skip to content

Commit f9cf389

Browse files
committed
drivers: wifi: Fix remaining use of sa_family_t
In 55c49cd the mayority of the Zephyr wifi drivers was changed to use the Zephyr native net_ prefixed types, but some were forgotten. Without this fix/change the code still builds as we are by now setting CONFIG_NET_NAMESPACE_COMPAT_MODE. But when this is not set, things will fail to build. Note that the net_offload struct was updated accordingly in d45cd67 Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent d0cc872 commit f9cf389

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

drivers/wifi/esp_at/esp_offload.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ static int esp_put(struct net_context *context)
748748
return 0;
749749
}
750750

751-
static int esp_get(sa_family_t family,
751+
static int esp_get(net_sa_family_t family,
752752
enum net_sock_type type,
753753
enum net_ip_protocol ip_proto,
754754
struct net_context **context)

drivers/wifi/eswifi/eswifi_offload.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ static int eswifi_off_put(struct net_context *context)
404404
return ret;
405405
}
406406

407-
static int eswifi_off_get(sa_family_t family,
407+
static int eswifi_off_get(net_sa_family_t family,
408408
enum net_sock_type type,
409409
enum net_ip_protocol ip_proto,
410410
struct net_context **context)

drivers/wifi/simplelink/simplelink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ static int simplelink_mgmt_disconnect(const struct device *dev)
192192
return ret ? -EIO : ret;
193193
}
194194

195-
static int simplelink_dummy_get(sa_family_t family,
195+
static int simplelink_dummy_get(net_sa_family_t family,
196196
enum net_sock_type type,
197197
enum net_ip_protocol ip_proto,
198198
struct net_context **context)

drivers/wifi/siwx91x/siwx91x_wifi_socket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static void siwx91x_sock_on_recv(sl_si91x_fdset_t *read_fd, sl_si91x_fdset_t *wr
166166
siwx91x_sock_on_recv);
167167
}
168168

169-
static int siwx91x_sock_get(sa_family_t family, enum net_sock_type type,
169+
static int siwx91x_sock_get(net_sa_family_t family, enum net_sock_type type,
170170
enum net_ip_protocol ip_proto, struct net_context **context)
171171
{
172172
struct siwx91x_dev *sidev = net_if_get_first_wifi()->if_dev->dev->data;

drivers/wifi/winc1500/wifi_winc1500.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ static char *socket_message_to_string(uint8_t message)
289289
/**
290290
* This function is called when the socket is to be opened.
291291
*/
292-
static int winc1500_get(sa_family_t family,
292+
static int winc1500_get(net_sa_family_t family,
293293
enum net_sock_type type,
294294
enum net_ip_protocol ip_proto,
295295
struct net_context **context)

0 commit comments

Comments
 (0)