Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wireless: permit wireless as physical device for PTP #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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