summaryrefslogtreecommitdiff
path: root/iwinfo_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'iwinfo_utils.c')
-rw-r--r--iwinfo_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iwinfo_utils.c b/iwinfo_utils.c
index 93de032..9654207 100644
--- a/iwinfo_utils.c
+++ b/iwinfo_utils.c
@@ -372,7 +372,7 @@ struct uci_section *iwinfo_uci_get_radio(const char *name, const char *type)
struct uci_ptr ptr = {
.package = "wireless",
.section = name,
- .flags = UCI_LOOKUP_EXTENDED,
+ .flags = (name && *name == '@') ? UCI_LOOKUP_EXTENDED : 0,
};
const char *opt;