diff --git a/src/wiphy.c b/src/wiphy.c index 39ee1879..e5660ee9 100644 --- a/src/wiphy.c +++ b/src/wiphy.c @@ -108,7 +108,7 @@ const char *wiphy_get_path(struct wiphy *wiphy) { static char path[15]; - snprintf(path, sizeof(path), "/phy%u", wiphy->id); + snprintf(path, sizeof(path), "/%s", wiphy->name); return path; }