Skip to content

Commit

Permalink
wireless: permit wireless as physical device for PTP
Browse files Browse the repository at this point in the history
Wireless devices are not appropriate for PTP but work well enough to use them
for development and test of unrelated capabilities, so allow them.
  • Loading branch information
abower-amd committed Apr 5, 2024
1 parent 2720e7b commit 8f06f35
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/sfptpd_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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)) {
Expand Down

0 comments on commit 8f06f35

Please sign in to comment.