X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fiwinfo.git;a=blobdiff_plain;f=iwinfo_nl80211.c;h=63b70d5bed89df107dd3fc379bc23d8902a703fc;hp=b913b9d75570b78785522471fc3ce9b97ed2839f;hb=fd9e17be0c43bd6b8df5371f0b353747bc563874;hpb=bc8682aa5ee323f5a6e272a28ef348f2f7534d55 diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c index b913b9d..63b70d5 100644 --- a/iwinfo_nl80211.c +++ b/iwinfo_nl80211.c @@ -245,6 +245,9 @@ static int nl80211_phy_idx_from_uci_path(struct uci_section *s) snprintf(buf, sizeof(buf), "/sys/devices/%s/ieee80211/*/index", opt); /**/ if (glob(buf, 0, NULL, &gl)) + snprintf(buf, sizeof(buf), "/sys/devices/platform/%s/ieee80211/*/index", opt); /**/ + + if (glob(buf, 0, NULL, &gl)) return -1; if (gl.gl_pathc > 0)