qmicli command to kill a connection indiscriminately?
Evade Flow
evadeflow at gmail.com
Tue Aug 23 20:39:53 UTC 2016
[Forgot to include the list on my reply, correcting that...]
> The ctl sync message should kill anything and everything.
Sounds promising, but... erm, can you explain how to send this message
using `qmicli`? The help doesn't mention this message at all. I thought
maybe running this command would provide a clue:
```
$ sudo ~/bin/qmicli -p -d /dev/cdc-wdm0 --wda-get-supported-messages
error: couldn't get supported WDA messages: QMI protocol error (71):
'InvalidQmiCommand'
```
(I did this because of a blog post by Aleksander in which I found the
phrase "use the WDA service to set the net data format in new modems
instead of the old CTL service".)
I tried variations of this:
```
$ sudo ~/bin/qmicli -p -d /dev/cdc-wdm0 --wda-sync
error: Unknown option --wda-sync
```
but all came up empty. I give up—can you give me a hint? `:-]
On Tue, Aug 23, 2016 at 3:56 PM, Bjørn Mork <bjorn at mork.no> wrote:
> The ctl sync message should kill anything and everything.
>
>
> Bjørn
>
> On August 23, 2016 9:42:24 PM CEST, Evade Flow <evadeflow at gmail.com>
> wrote:
> >Is there a 'rude' `qmicli` command (or sequence of commands) I can use
> >to
> >just kill *any* existing connection, without needing to know the client
> >ID
> >and/or packet data handle? I'm writing a really quick-and-dirty
> >modem-juggling script, and I'd rather avoid saving any state, if
> >possible.
> >
> >In a perfect world, this would "just do it" and not give me an error:
> >
> >```
> >$ qmicli -p -d /dev/cdc-wdm0 --wds-stop-network
> >error: Missing argument for --wds-stop-network
> >```
> >
> >I noticed `qmi-network` saves off a 'state file' containing the client
> >ID
> >and packet data handle, so perhaps this isn't possible. Just figured I
> >should ask before going down the state-saving path...
> >
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >libqmi-devel mailing list
> >libqmi-devel at lists.freedesktop.org
> >https://lists.freedesktop.org/mailman/listinfo/libqmi-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20160823/726f2e35/attachment.html>
More information about the libqmi-devel
mailing list