Re: [OpenWrt-Devel] [PATCH v2 00/25] ramips: massive code cleanups

2015-08-17 Thread Sławomir Demeszko
W dniu 17.08.2015 o 13:24, Piotr Dymacz pisze: It seems that there are some people who don't like the changes Hi. Don't bother that kind of people. There will be always someone who like mess. Cleanup is always good, especially for other people, who need to work with that code later. OpenWRT

Re: [OpenWrt-Devel] i get no image for TL-WA7510

2015-08-13 Thread Sławomir Demeszko
W dniu 12.08.2015 o 21:29, smile...@gmail.com pisze: I miss not only the TL-WA7510 image. I missing also several images for other 4MB Flash-Router. Is there a Funktion in Openwrt which build images only if the image-size not excite the flash-size? I found there is. I was also wonder for

[OpenWrt-Devel] [PATCH] Fix missing dependencies for libuClibc++.so.0

2015-02-02 Thread Sławomir Demeszko
Compilation of packages written in C++, like smartmontools, unrar, etc. fail with message: Package smartmontools is missing dependencies for the following libraries: libuClibc++.so.0 This is due unescaped ++ in argument for grep command. --- include/package-ipkg.mk | 2 +- 1 file changed, 1

Re: [OpenWrt-Devel] [PATCH] Fix missing dependencies for libuClibc++.so.0

2015-02-02 Thread Sławomir Demeszko
On 02.02.2015 at 14:00, John Szakmeister wrote: On Mon, Feb 2, 2015 at 6:24 AM, Sławomir Demeszko s.demes...@wireless-instruments.com wrote: Compilation of packages written in C++, like smartmontools, unrar, etc. fail with message: Package smartmontools is missing dependencies

Re: [OpenWrt-Devel] [PATCH] Fix missing dependencies for libuClibc++.so.0

2015-02-02 Thread Sławomir Demeszko
W dniu 02.02.2015 o 14:47, Sławomir Demeszko pisze: On 02.02.2015 at 14:00, John Szakmeister wrote: On Mon, Feb 2, 2015 at 6:24 AM, Sławomir Demeszko s.demes...@wireless-instruments.com wrote: Compilation of packages written in C++, like smartmontools, unrar, etc. fail with message: Package

[OpenWrt-Devel] [PATCH] Fix possible fail to check for dependencies

2015-02-02 Thread Sławomir Demeszko
line. Signed-off-by: Sławomir Demeszko s.demes...@wireless-instruments.com --- include/package-ipkg.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index 11edb9a..b7dc0ad 100644 --- a/include/package-ipkg.mk +++ b/include

Re: [OpenWrt-Devel] [PATCH] Fix missing dependencies for libuClibc++.so.0

2015-02-02 Thread Sławomir Demeszko
I just updated working tree and created new patch Fix possible fail to check for dependencies: https://patchwork.ozlabs.org/patch/435525/ This one can be cancelled. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org

Re: [OpenWrt-Devel] network/znc: Package binaries appear to be broken by MIPS16

2015-01-20 Thread Sławomir Demeszko
19.01.2015 19:50, Oliver wrote: I'll try 4.9 - out of interest, do you have any references to the bug in 4.8 (C++ specific?) Sorry, I do not remember where I read about that. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org

Re: [OpenWrt-Devel] network/znc: Package binaries appear to be broken by MIPS16

2015-01-19 Thread Sławomir Demeszko
19.01.2015 at 09:04, Oliver wrote: Having compiled an image yesterday with ZNC with a MIPS24kc target and MIPS16 enabled, I found that it would eventually crash after starting so I ran it in the console and found the segfault was due to an illegal hardware instruction - consequently I edited

[OpenWrt-Devel] [PATCH uqmi] Add command to specify preferred PLMN

2015-01-16 Thread Sławomir Demeszko
Signed-off-by: Sławomir Demeszko s.demes...@wireless-instruments.com --- commands-nas.c | 60 ++ commands-nas.h | 6 ++ 2 files changed, 66 insertions(+) diff --git a/commands-nas.c b/commands-nas.c index 831e3f4..33477dd 100644

[OpenWrt-Devel] [PATCH v2 uqmi] Add command for listing device capabilities

2015-01-08 Thread Sławomir Demeszko
Signed-off-by: Sławomir Demeszko s.demes...@wireless-instruments.com --- Sorry, it seems my compiler doesn't suport -Wtautological-compare option, and I was not warned about this. This condition could be removed, but as I read it is unspecified if enums are signed or unsigned, it depends

[OpenWrt-Devel] [PATCH uqmi] Add missing option for getting tdma signal strength

2015-01-08 Thread Sławomir Demeszko
Signed-off-by: Sławomir Demeszko s.demes...@wireless-instruments.com --- commands-nas.c | 5 + 1 file changed, 5 insertions(+) diff --git a/commands-nas.c b/commands-nas.c index be06ee4..831e3f4 100644 --- a/commands-nas.c +++ b/commands-nas.c @@ -152,6 +152,11 @@ cmd_nas_get_signal_info_cb

[OpenWrt-Devel] [PATCH uqmi] Add command for listing device capabilities

2015-01-08 Thread Sławomir Demeszko
Signed-off-by: Sławomir Demeszko s.demes...@wireless-instruments.com --- commands-dms.c | 53 + commands-dms.h | 2 ++ 2 files changed, 55 insertions(+) diff --git a/commands-dms.c b/commands-dms.c index a677052..fcb4b93 100644 --- a/commands

[OpenWrt-Devel] [PATCH uqmi] Fix logical expression which is always true

2014-12-22 Thread Sławomir Demeszko
Signed-off-by: Sławomir Demeszko s.demes...@wireless-instruments.com --- commands-wms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands-wms.c b/commands-wms.c index 02874f0..1b4373f 100644 --- a/commands-wms.c +++ b/commands-wms.c @@ -560,7 +560,7 @@ pdu_encode_number

[OpenWrt-Devel] [PATCH uqmi] Fix improper length of sms message stored in User Data Length field

2014-12-22 Thread Sławomir Demeszko
Signed-off-by: Sławomir Demeszko s.demes...@wireless-instruments.com --- commands-wms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands-wms.c b/commands-wms.c index 1b4373f..798e012 100644 --- a/commands-wms.c +++ b/commands-wms.c @@ -591,7 +591,7 @@ pdu_encode_data

[OpenWrt-Devel] [PATCH uqmi] Making smsc number optional

2014-12-22 Thread Sławomir Demeszko
If smsc number is not provided before sending sms then operator's default stored on simcard will be used. Signed-off-by: Sławomir Demeszko s.demes...@wireless-instruments.com --- commands-wms.c | 10 +++--- commands-wms.h | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git

[OpenWrt-Devel] [PATCH uqmi] Fix encoding phone number on sending sms

2014-12-18 Thread Sławomir Demeszko
Return proper length of encoded phone number with odd count of digits, without this patch number is encoded in memory but length returned by function is not incremented and sms cannot be send. Signed-off-by: Sławomir Demeszko s.demes...@wireless-instruments.com --- commands-wms.c | 2 +- 1 file

[OpenWrt-Devel] [PATCH uqmi 1/3] Added option for enabling and disabling protection of simcard by PIN

2014-12-17 Thread Sławomir Demeszko
Signed-off-by: Sławomir Demeszko s.demes...@wireless-instruments.com --- commands-dms.c | 53 + commands-dms.h | 7 +++ 2 files changed, 60 insertions(+) diff --git a/commands-dms.c b/commands-dms.c index ad5c89d..360e926 100644

[OpenWrt-Devel] [PATCH uqmi 3/3] Added commands to change PIN code

2014-12-17 Thread Sławomir Demeszko
Signed-off-by: Sławomir Demeszko s.demes...@wireless-instruments.com --- commands-dms.c | 36 commands-dms.h | 8 2 files changed, 44 insertions(+) diff --git a/commands-dms.c b/commands-dms.c index 76144cf..277223d 100644 --- a/commands-dms.c +++ b

[OpenWrt-Devel] [PATCH uqmi 2/3] Added shared struct to allow the same option names for different functions

2014-12-17 Thread Sławomir Demeszko
For example we can use one option --new-pin with commands unblock-pin and with change-pin, without that we need to invent new name for every new command. Signed-off-by: Sławomir Demeszko s.demes...@wireless-instruments.com --- commands-dms.c | 64

[OpenWrt-Devel] [PATCH uqmi] Add support for 16-bit reference number in concatenated SMS.

2014-12-17 Thread Sławomir Demeszko
Signed-off-by: Sławomir Demeszko s.demes...@wireless-instruments.com --- commands-wms.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/commands-wms.c b/commands-wms.c index 47d4d76..6ac52eb 100644 --- a/commands-wms.c +++ b/commands-wms.c @@ -179,11 +179,16 @@ static

[OpenWrt-Devel] [PATCH uqmi] Add mandatory field to Initiate Network Register

2014-12-17 Thread Sławomir Demeszko
According to json data Action field in Initiate Network Register is mandatory. I get Missing argument from qmi without it. Signed-off-by: Sławomir Demeszko s.demes...@wireless-instruments.com --- commands-nas.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands

[OpenWrt-Devel] [PATCH uqmi 1/2] Separation of decoding User Data Header from decoding 7 bit message

2014-12-08 Thread Sławomir Demeszko
It is preparation for supporting 8 bit and 16 bit encoding. Moving out this code from decode_7bit_field() allows to reuse it in caller function where other than 7 bit decoding will take place. Signed-off-by: Sławomir Demeszko s.demes...@wireless-instruments.com --- commands-wms.c | 48

[OpenWrt-Devel] [PATCH uqmi 2/2] Added support for 8 bit and 16 bit encoded SMS messages

2014-12-08 Thread Sławomir Demeszko
Message is presented as string of hexadecimal pairs in JSON output. Signed-off-by: Sławomir Demeszko s.demes...@wireless-instruments.com --- commands-wms.c | 32 ++-- 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/commands-wms.c b/commands-wms.c index

[OpenWrt-Devel] [PATCH uqmi] Fix character @ added at end of received messages

2014-12-08 Thread Sławomir Demeszko
be message abcdefg encoded as 61 f1 98 5c 36 9f 01, it is decoded as abcdefg@. Signed-off-by: Sławomir Demeszko s.demes...@wireless-instruments.com --- It depends on my last patches from today. commands-wms.c | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) diff

[OpenWrt-Devel] [uqmi] SEGFAULT on reading Unicode sms messages

2014-11-27 Thread Sławomir Demeszko
I was trying to read (by command --get-message) sms text message coded in 16 bit Unicode which is not supported yet in uqmi, but program does not end cleanly, I got segfault: Program received signal SIGSEGV, Segmentation fault. blobmsg_check_attr (attr=attr@entry=0x60d038, name=name@entry=false)

[OpenWrt-Devel] [PATCH uqmi] SEGFAULT on reading Unicode sms messages

2014-11-27 Thread Sławomir Demeszko
Added complementary blobmsg_close_table() before returning from function on error. --- commands-wms.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/commands-wms.c b/commands-wms.c index 9b9aac3..da4aeaf 100644 --- a/commands-wms.c +++ b/commands-wms.c

Re: [OpenWrt-Devel] Need help understanding Ralink's dts config file and how it works

2014-11-25 Thread Sławomir Demeszko
On 23.11.2014 17:05, Md Mahbubur Rasheed wrote: Hi, I am also currently working on board with this chip, and answers to your question will be helpful for me too. I can share my knowledge, but don't treat this as an axiom, I am begginer in this subject too and I could be wrong. 1. Why a

[OpenWrt-Devel] [PATCH uqmi] Add command --get-msisdn for getting phone number

2014-11-18 Thread Sławomir Demeszko
--- For two SIM cards from the same operator (Plus GSM) I get error message: Not provisioned, when try to get MSISDN. Real phone with these cards inserted also cannot display a phone number. I can make calls normally. And other two (different operators) works correctly. Is anybody know why this

[OpenWrt-Devel] [PATCH uqmi] Fix improper part number in multipart SMS text messages

2014-11-18 Thread Sławomir Demeszko
Received multipart SMS messages has part number always one too high. --- commands-wms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands-wms.c b/commands-wms.c index 01e6867..9b9aac3 100644 --- a/commands-wms.c +++ b/commands-wms.c @@ -178,7 +178,7 @@ static void