mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
Hosts: 'Layer1Interface' parameter should be empty when client is not directly connected to RG
This commit is contained in:
parent
bc5060eb28
commit
c725449bad
1 changed files with 5 additions and 0 deletions
|
|
@ -281,6 +281,11 @@ static int get_HostsHost_Layer1Interface(char *refparam, struct dmctx *ctx, void
|
|||
char *linker = dmjson_get_value((json_object *)data, 1, "device");
|
||||
char *type = dmjson_get_value((json_object *)data, 1, "interface_type");
|
||||
if (DM_LSTRCMP(type, "Wi-Fi") == 0) {
|
||||
char *mac_addr = dmjson_get_value((json_object *)data, 1, "link_macaddr");
|
||||
adm_entry_get_linker_param(ctx, "Device.WiFi.AccessPoint.", mac_addr, value);
|
||||
if (DM_STRLEN(*value) == 0)
|
||||
return 0;
|
||||
|
||||
adm_entry_get_linker_param(ctx, "Device.WiFi.Radio.", linker, value);
|
||||
if (!(*value) || (*value)[0] == 0) {
|
||||
char *device = dmjson_get_value((json_object *)data, 1, "parent_device");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue