Age | Commit message (Collapse) | Author |
|
The scripts gen-{header,code,error-list}.pl were called with
source-local paths what disallowed out of source builds.
Updated CMakeLists.txt to call the scripts with ${CMAKE_SOURCE_DIR}
prefix.
Signed-off-by: Dmitri Bachtin <dbachtin@init-ka.de>
|
|
It is a convention under CMake to suffix variables in the FIND_LIBRARY
calls with _LIBRARY. Added _library suffix to json, blobmsg_json and
ubox variables.
|
|
CMake will search for include paths via FIND_PATH() of the following
libraries: libubox, blobmsg_json and json. This allows to build uqmi
when the dependencies are in non-standard locations by specifying
respective _include_dir variables.
|
|
tautological
enum overflow behavior is undefined
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
|
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
|
Signed-off-by: Dmitri Bachtin <dbachtin@init-ka.de>
|
|
Adding --get-current-settings switch which can be used to query
ip-settings among some other useful data obtained from remote end when
connected.
This is mainly useful with modems which do not provide a dhcp server for
nameserver or ip-information (especially in ipv6 networks).
Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
Tested-by: Matti Laakso <malaakso@elisanet.fi>
|
|
This patch adds support for (optionally) specifying ip family via a
command- line switch. The switch sends respective "Set IP Family" WDS
message to qmi-device before actually connecting.
Using this switch allows connecting to ipv6 enabled networks or networks
with dual-stack support with the appropriate hardware (dongle and FW
with ipv6 support) and configuration (AT+CGDCONT reporting ipv6 or
ipv4v6 capability).
Help text:
--ip-family <family>: Set ip-family for the connection (ipv4, ipv6, unspecified)
Usage example for ipv6:
uqmi -d /dev/cdc-wdm0 --set-client-id wds,<cid> --start-network <apn> --ip-family ipv6
Dual-stack usage example:
uqmi -d /dev/cdc-wdm0 --get-client-id wds
uqmi -d /dev/cdc-wdm0 --set-client-id wds,<cid-1> --start-network <apn> --ip-family ipv4
uqmi -d /dev/cdc-wdm0 --get-client-id wds
uqmi -d /dev/cdc-wdm0 --set-client-id wds,<cid-2> --start-network <apn> --ip-family ipv6
Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
Tested-by: Matti Laakso <malaakso@elisanet.fi>
|
|
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
|
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
|
Signed-off-by: SÅ‚awomir Demeszko <s.demeszko@wireless-instruments.com>
|
|
Signed-off-by: SÅ‚awomir Demeszko <s.demeszko@wireless-instruments.com>
|
|
Signed-off-by: SÅ‚awomir Demeszko <s.demeszko@wireless-instruments.com>
|
|
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.demeszko@wireless-instruments.com>
|
|
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.demeszko@wireless-instruments.com>
|
|
Signed-off-by: SÅ‚awomir Demeszko <s.demeszko@wireless-instruments.com>
|
|
Signed-off-by: SÅ‚awomir Demeszko <s.demeszko@wireless-instruments.com>
|
|
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.demeszko@wireless-instruments.com>
|
|
table in SMS
Escape code 0x1b is a prefix indicating that next character should be
represented from extension table, but it only applies to one character,
so switching it off is needed to read further characters correctly.
Signed-off-by: SÅ‚awomir Demeszko <s.demeszko@wireless-instruments.com>
|
|
Signed-off-by: SÅ‚awomir Demeszko <s.demeszko@wireless-instruments.com>
|
|
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.demeszko@wireless-instruments.com>
|
|
Signed-off-by: SÅ‚awomir Demeszko <s.demeszko@wireless-instruments.com>
|
|
Signed-off-by: SÅ‚awomir Demeszko <s.demeszko@wireless-instruments.com>
|
|
If 7 bit message encoded on 8 bit cells has one last bit occupying
whole byte it need to be padded with 7 zero bits. To not mistake
these last 7 bits with a character with code 0 (@) we need to check
length from User Data Length field and not rely on actual length
of received data. An example can be message "abcdefg" encoded
as "61 f1 98 5c 36 9f 01", it is decoded as "abcdefg@".
Signed-off-by: SÅ‚awomir Demeszko <s.demeszko@wireless-instruments.com>
|
|
Message is presented as string of hexadecimal pairs in JSON output.
Signed-off-by: SÅ‚awomir Demeszko <s.demeszko@wireless-instruments.com>
|
|
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.demeszko@wireless-instruments.com>
|
|
Signed-off-by: Sławomir Demeszko <s.demeszko@wireless-instruments.com>
|
|
Added complementary blobmsg_close_table() before returning from function
on error.
|
|
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
|
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
|
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
|
Received multipart SMS messages has part number always one too high.
|
|
|
|
|
|
Added commands "--unblock-pin1" and "--unblock-pin2" and
parameters "--puk" and "--new-pin".
|
|
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
|
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
|
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
|
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
|
optimization
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
|
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
|
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
|
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
|
Signed-off-by: Matti Laakso <malaakso@elisanet.fi>
|
|
Signed-off-by: Matti Laakso <malaakso@elisanet.fi>
|
|
Signed-off-by: Matti Laakso <malaakso@elisanet.fi>
|
|
Signed-off-by: Matti Laakso <malaakso@elisanet.fi>
|
|
|
|
|
|
|