aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_coding_scheme.cpp
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2016-01-05 15:54:24 +0100
committerJacob Erlbeck <jerlbeck@sysmocom.de>2016-02-01 13:58:14 +0100
commit7b579978749c4c21acd711b1b48b1579bc225d48 (patch)
treebca4d5caf1ea89a755cb91f269fd5a524bf8e485 /src/gprs_coding_scheme.cpp
parentcb7289094a40f179f6c538780f3117f7ad9688bd (diff)
edge: Show current mode in VTY
Add the current mode to the output of the 'show ms imsi' and 'show ms tlli' commands. Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/gprs_coding_scheme.cpp')
-rw-r--r--src/gprs_coding_scheme.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gprs_coding_scheme.cpp b/src/gprs_coding_scheme.cpp
index a460103..4ba55c3 100644
--- a/src/gprs_coding_scheme.cpp
+++ b/src/gprs_coding_scheme.cpp
@@ -176,3 +176,13 @@ void GprsCodingScheme::dec()
m_scheme = Scheme(m_scheme - 1);
}
+
+const char *GprsCodingScheme::modeName(Mode mode)
+{
+ switch (mode) {
+ case GPRS: return "GPRS";
+ case EGPRS_GMSK: return "EGPRS_GMSK-only";
+ case EGPRS: return "EGPRS";
+ default: return "???";
+ }
+}