summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/libgsmd/misc.h3
-rw-r--r--src/util/shell.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/include/libgsmd/misc.h b/include/libgsmd/misc.h
index 9100260..54e2940 100644
--- a/include/libgsmd/misc.h
+++ b/include/libgsmd/misc.h
@@ -77,4 +77,7 @@ extern int lgsm_get_battery(struct lgsm_handle *lh);
/* Enable vibrator */
extern int lgsm_phone_vibrator(struct lgsm_handle *lh, int enable);
+/* Get Antenna Power status */
+extern int lgsm_get_power_status(struct lgsm_handle *lh);
+
#endif
diff --git a/src/util/shell.c b/src/util/shell.c
index b0d5b41..39f1cb1 100644
--- a/src/util/shell.c
+++ b/src/util/shell.c
@@ -686,7 +686,7 @@ int shell_main(struct lgsm_handle *lgsmh, int sync)
lgsm_phone_power(lgsmh, 0);
} else if (!strcmp(buf, "gos")) {
printf("Get Antenna status\n");
- lgsm_get_power_status(lgsmh, 0);
+ lgsm_get_power_status(lgsmh);
} else if (!strcmp(buf, "V")) {
printf("Vibrator-Enable\n");
lgsm_phone_vibrator(lgsmh, 1);
personal git repositories of Harald Welte. Your mileage may vary