diff --git a/src/wiphy.c b/src/wiphy.c index 6a751bda..13faafc5 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), "/%s", wiphy->name); + snprintf(path, sizeof(path), "/%d", wiphy->id); return path; }