From 8f06f35ef9575bb9603839c7457d36bba831dae5 Mon Sep 17 00:00:00 2001 From: Andrew Bower Date: Fri, 5 Apr 2024 22:12:58 +0100 Subject: [PATCH] wireless: permit wireless as physical device for PTP Wireless devices are not appropriate for PTP but work well enough to use them for development and test of unrelated capabilities, so allow them. --- src/sfptpd_interface.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sfptpd_interface.c b/src/sfptpd_interface.c index 5cac678d..f3c730d1 100644 --- a/src/sfptpd_interface.c +++ b/src/sfptpd_interface.c @@ -519,7 +519,7 @@ static bool interface_check_suitability(const struct sfptpd_link *link, * infiniband etc and ignore all non-ethernet types. * * Even if the interface is ethernet type but we want to exclude - * devices that are wireless, bridges, vlan interfaces, bonds, + * devices that are bridges, vlan interfaces, bonds, * tap devices and virtual interfaces */ switch(link->type) { @@ -548,8 +548,7 @@ static bool interface_check_suitability(const struct sfptpd_link *link, case SFPTPD_LINK_PHYSICAL: if (sysfs_file_exists(sysfs_dir, name, "wireless") || sysfs_file_exists(sysfs_dir, name, "phy80211")) { - TRACE_L2("interface %s: is wireless - ignoring\n", name); - return false; + TRACE_L2("interface %s: is wireless - this isn't going to work well!\n", name); } if (link->type != SFPTPD_LINK_MACVLAN && sysfs_file_exists(SFPTPD_SYSFS_VIRTUAL_NET_PATH, "", name)) {