wiphy: Use real adapter name in path str

This commit is contained in:
Tim Kourt 2017-02-21 14:14:38 -05:00 committed by Denis Kenzior
parent dae0bbe17c
commit d3030acbec
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}