diff options
Diffstat (limited to 'modules/luci-mod-status/src')
-rw-r--r-- | modules/luci-mod-status/src/luci-bwc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/luci-mod-status/src/luci-bwc.c b/modules/luci-mod-status/src/luci-bwc.c index 9a57fa23a8..6f7016ec9d 100644 --- a/modules/luci-mod-status/src/luci-bwc.c +++ b/modules/luci-mod-status/src/luci-bwc.c @@ -492,12 +492,12 @@ static int run_daemon(void) { while ((e = readdir(dir)) != NULL) { + if (!strcmp(e->d_name, "lo") || !strcmp(e->d_name, ".") || !strcmp(e->d_name, "..")) + continue; + if (iw && iw_update(iw, e->d_name, &rate, &rssi, &noise)) update_radiostat(e->d_name, rate, rssi, noise); - if (!strcmp(e->d_name, "lo")) - continue; - for (i = 0; i < sizeof(sysfs_stats)/sizeof(sysfs_stats[0]); i++) { *sysfs_stats[i].value = 0; |