lantiq: ltq-ptm: set carrier status
authorJohn Crispin <john@openwrt.org>
Thu, 17 Dec 2015 09:28:21 +0000 (09:28 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 17 Dec 2015 09:28:21 +0000 (09:28 +0000)
commit45b6eec9fc4e7262865708f5cdd74dc7502b4fda
tree2291e98ff7df872ba380bd82f7f5d782a7c62a43
parentee0091ebed71254d38eef701aebd01bace5a4c1e
lantiq: ltq-ptm: set carrier status

Principal purpose is to prevent the error message

  ifxmips_ptm_vdsl.c:281:ptm_hard_start_xmit: not in showtime

which is printed at least once per second to the serial console, if the
ptm interface is not in showtime, but a processes already sends
packages over that interface. This happens for adsl as well as vdsl
over ptm.

It's pppd which sends packages over the ptm device before in showtime.
As far as I can see, pppd is started unconditionally since netif can
not gather the link status of the ptm network interface.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
SVN-Revision: 47917
package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_adsl.c
package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c