Getting MC7455 static-ip to work

Bjørn Mork bjorn at mork.no
Mon Mar 5 19:41:51 UTC 2018


Dan Williams <dcbw at redhat.com> writes:
> On Mon, 2018-03-05 at 17:56 +0100, Aleksander Morgado wrote:
>> > > 
>> > > Was the wwan0 interface down while you executed simple-connect?
>> > 
>> > wwan0 being up is the most likely cause.  But seeing the debug logs
>> > to
>> > confirm this would be good.
>> > 
>> > I started thinking about solving this in the driver, but ended up
>> > falling back to the original decision: The interface must be
>> > down.  This
>> > is the way it is.  You should respond to any error when attempting
>> > to
>> > write to the sysfs file.
>> 
>> Should we bring the interface down ourselves in MM when trying to
>> write to the sysfs file?
>
> Yeah, set_expected_data_format() should check if the interface is up
> and then take it down, set the data format, and bring it back up.
>
> This would kill a data connection if somebody ran "qmicli --set-
> expected-data-format=xxx" while the connection was active, but then
> they shouldn't do that...

Exactly.  There is no way you can make the device work both before and
after a data format change, so maintaining a connection while switching
format makes no sense.


Bjørn


More information about the ModemManager-devel mailing list