mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
PPP: Fix LowerLayers value
This commit is contained in:
parent
d80f1599d9
commit
aba6671230
1 changed files with 5 additions and 1 deletions
|
|
@ -996,7 +996,11 @@ static int get_ppp_lower_layer(char *refparam, struct dmctx *ctx, void *data, ch
|
|||
if ((*value)[0] == '\0') {
|
||||
char *device = NULL;
|
||||
|
||||
dmuci_get_value_by_section_string(ppp->dmmap_s, "device", &device);
|
||||
if (ppp->iface_s)
|
||||
device = get_device(section_name(ppp->iface_s));
|
||||
else
|
||||
dmuci_get_value_by_section_string(ppp->dmmap_s, "device", &device);
|
||||
|
||||
if (DM_STRLEN(device) == 0)
|
||||
return 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue