3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-20 19:12:33 +01:00

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

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