modemmanager: do not set proto_notify_error on teardown
authorFlorian Eckert <fe@dev.tdt.de>
Fri, 21 Jul 2023 10:56:34 +0000 (12:56 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Mon, 24 Jul 2023 07:41:51 +0000 (09:41 +0200)
commit30911865b2791c1eb516559cfb414b17e2be5f64
tree23e39062505d7b0664a5b11b4b2bb694004dcd31
parent7513c483ddc0e3c3137869c8e692957436a08925
modemmanager: do not set proto_notify_error on teardown

If on teardown the 'proto_notify_error' is set to 'MM_TEARDOWN_IN_PROGRESS',
then an error which is set on 'setup' is not visible in the ubus
network.interface.<iface> status output.

{
  "up": false,
  "pending": false,
  "available": true,
  "autostart": false,
  "dynamic": false,
  "proto": "modemmanager",
  "data": {
  },
  "errors": [
    {
      "subsystem": "dualsim",
      "code": "MM_TEARDOWN_IN_PROGRESS"
    }
  ]
}

It alway shows the code 'MM_TEARDWON_IN_PROGRESS'!

By removing the line 'proto_notify_error "${interface}" MM_TEARDOWN_IN_PROGRESS'
in teardown, the last error is show in the proto stack from setup.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/modemmanager/Makefile
net/modemmanager/files/modemmanager.proto