lantiq: ltq-ptm: set carrier status
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 17 Dec 2015 09:28:21 +0000 (09:28 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 17 Dec 2015 09:28:21 +0000 (09:28 +0000)
commit8b177f202806b1f4ba84849054ce914ea80cae73
tree55800fd4a4f268438a3f18840122c144ccbff53a
parent42b753d3f5b746f828fe737ccaba1682764302f9
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47917 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_adsl.c
package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c