according to spec, sw2 should be the number of bytes read, which
is just length.
---
src/simfilesystem.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/simfilesystem.cpp b/src/simfilesystem.cpp
index d193328..6e05039 100644
--- a/src/simfilesystem.cpp
+++ b/src/simfilesystem.cpp
@@ -226,7 +226,7 @@ void SimFileSystem::crsm( const QString& args )
sw2 = 0x02;
} else if ( length ) {
sw1 = 0x9f;
- sw2 = length - offset;
+ sw2 = length;
response =
QAtUtils::toHex( contents.mid( offset, length ) );
} else {
--
1.7.2.1
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono