mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2026-03-13 04:28:33 +01:00
Ticket refs #8597 : Fix get Frequency issue
This commit is contained in:
parent
261203ec52
commit
cd3224c29e
1 changed files with 4 additions and 0 deletions
|
|
@ -177,6 +177,10 @@ int get_radio_frequency(char *refparam, struct dmctx *ctx, char **value)
|
|||
dmubus_call("router", "wl", UBUS_ARGS{{"vif", wlan_name}}, 1, &res);
|
||||
DM_ASSERT(res, *value = "");
|
||||
json_select(res, "frequency", 0, NULL, &freq, NULL);
|
||||
if(strcmp(freq, "2") ==0 ) {
|
||||
dmastrcat(value, freq, ".4GHz"); // MEM WILL BE FREED IN DMMEMCLEAN
|
||||
return 0;
|
||||
}
|
||||
dmastrcat(value, freq, "GHz"); // MEM WILL BE FREED IN DMMEMCLEAN
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue