utils: only enable extended lookup if section looks like it
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
parent
c92728fbac
commit
d5dc3d0605
1 changed files with 1 additions and 1 deletions
|
@ -372,7 +372,7 @@ struct uci_section *iwinfo_uci_get_radio(const char *name, const char *type)
|
||||||
struct uci_ptr ptr = {
|
struct uci_ptr ptr = {
|
||||||
.package = "wireless",
|
.package = "wireless",
|
||||||
.section = name,
|
.section = name,
|
||||||
.flags = UCI_LOOKUP_EXTENDED,
|
.flags = (name && *name == '@') ? UCI_LOOKUP_EXTENDED : 0,
|
||||||
};
|
};
|
||||||
const char *opt;
|
const char *opt;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue