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)
commit358d4072e6506404b9e96ad166fe0ad14813c8d9
tree55800fd4a4f268438a3f18840122c144ccbff53a
parent484127787bdf14ed2c1373f5a4948a3c6855ed65
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