aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-litecell15
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-07-18 14:07:33 +0200
committerMax <msuraev@sysmocom.de>2017-07-18 12:49:50 +0000
commit173a4f1f79a6e086682848b16169adbf283234c4 (patch)
treefa1df11c7eddd4df229002b422193bbb14ae493f /src/osmo-bts-litecell15
parentf690e5d45cbbcaf1309a429e934829bd06b00dd7 (diff)
lc15-mgr: update parameter read/write
Better match upstream lc15 code: * fsync on parameter write * use permanent storage directly for parameters Change-Id: Iac150bf2ebffc5fa9544b0f3b19cd647996fc8b6 Related: SYS#3728
Diffstat (limited to 'src/osmo-bts-litecell15')
-rw-r--r--src/osmo-bts-litecell15/misc/lc15bts_par.c3
-rw-r--r--src/osmo-bts-litecell15/misc/lc15bts_par.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/osmo-bts-litecell15/misc/lc15bts_par.c b/src/osmo-bts-litecell15/misc/lc15bts_par.c
index ab3e96b..13b0080 100644
--- a/src/osmo-bts-litecell15/misc/lc15bts_par.c
+++ b/src/osmo-bts-litecell15/misc/lc15bts_par.c
@@ -130,6 +130,8 @@ int lc15bts_par_set_int(void *ctx, enum lc15bts_par par, int val)
fclose(fp);
return -EIO;
}
+
+ fsync(fp);
fclose(fp);
return 0;
}
@@ -161,6 +163,7 @@ int lc15bts_par_set_buf(void *ctx, enum lc15bts_par par, const uint8_t *buf, uns
rc = fwrite(buf, 1, size, fp);
+ fsync(fp);
fclose(fp);
return rc;
diff --git a/src/osmo-bts-litecell15/misc/lc15bts_par.h b/src/osmo-bts-litecell15/misc/lc15bts_par.h
index b9fe740..dd869d3 100644
--- a/src/osmo-bts-litecell15/misc/lc15bts_par.h
+++ b/src/osmo-bts-litecell15/misc/lc15bts_par.h
@@ -4,7 +4,7 @@
#include <osmocom/core/utils.h>
#define FACTORY_ROM_PATH "/mnt/rom/factory"
-#define USER_ROM_PATH "/mnt/rom/user"
+#define USER_ROM_PATH "/mnt/storage/var/run/lc15bts-mgr"
enum lc15bts_par {
LC15BTS_PAR_TEMP_SUPPLY_MAX,