From d3030acbeca0d7d086ca90c29c1989bdfd8e9d65 Mon Sep 17 00:00:00 2001 From: Tim Kourt Date: Tue, 21 Feb 2017 14:14:38 -0500 Subject: [PATCH] wiphy: Use real adapter name in path str --- src/wiphy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }