mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
bbf: Update db parameters
This commit is contained in:
parent
4ab526b9f2
commit
fdb4b9ab76
2 changed files with 3 additions and 3 deletions
|
|
@ -232,7 +232,7 @@ static opr_ret_t ap_security_reset(struct dmctx *dmctx, char *path, char *input)
|
|||
strncpy(reset_params[0].value, mode_enabled, 255);
|
||||
|
||||
// Get Default wpakey
|
||||
db_get_value_string("hw", "board", "wpaKey", &wpakey);
|
||||
db_get_value_string("hw", "board", "wpa_key", &wpakey);
|
||||
|
||||
// PreSharedKey and KeyPassphrase are kept same
|
||||
strncpy(reset_params[1].value, wpakey, 255);
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ char *get_deviceid_manufactureroui()
|
|||
{
|
||||
dmubus_call("router.system", "info", UBUS_ARGS{{}}, 0, &res);
|
||||
if(!(res)){
|
||||
db_get_value_string("hw", "board", "BaseMacAddr", &mac);
|
||||
db_get_value_string("hw", "board", "basemac", &mac);
|
||||
if(!mac || strlen(mac)==0 ){
|
||||
if ((nvrammac = fopen("/proc/nvram/BaseMacAddr", "r")) == NULL)
|
||||
{
|
||||
|
|
@ -217,7 +217,7 @@ char *get_deviceid_productclass()
|
|||
char *get_deviceid_serialnumber()
|
||||
{
|
||||
char *v;
|
||||
db_get_value_string("hw", "board", "serialNumber", &v);
|
||||
db_get_value_string("hw", "board", "serial_number", &v);
|
||||
return v;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue