projects
/
oweals
/
iwinfo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c92728f
)
utils: only enable extended lookup if section looks like it
author
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 27 Oct 2014 16:33:02 +0000
(17:33 +0100)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 27 Oct 2014 16:33:02 +0000
(17:33 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
iwinfo_utils.c
patch
|
blob
|
history
diff --git
a/iwinfo_utils.c
b/iwinfo_utils.c
index 93de0324bc3d3eda6e5cddcf340298d843ac8921..96542072f53cbb916d22f44b399f8931569259ef 100644
(file)
--- 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;