Changeset 77dd9a4 in rtems


Ignore:
Timestamp:
10/07/14 14:25:43 (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
044cf4d7
Parents:
8a9bdc5
git-author:
Sebastian Huber <sebastian.huber@…> (10/07/14 14:25:43)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/07/14 14:35:20)
Message:

ppp: Nothing to transmit hint for Termios driver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/net/ppp_tty.c

    r8a9bdc5 r77dd9a4  
    578578    if(sc->sc_outflag & SC_TX_LASTCHAR){
    579579        sc->sc_outflag &= ~(SC_TX_BUSY | SC_TX_FCS | SC_TX_LASTCHAR);
     580
     581        /* Notify driver that we have nothing to transmit */
     582        (*tp->handler.write)(ctx, NULL, 0);
     583
    580584        rtems_event_send(sc->sc_txtask, TX_TRANSMIT);   /* Ready for the next Packet */
    581585        return(0);
     
    648652      sc->sc_stats.ppp_obytes += (ioffset > 0) ? ioffset : 1;
    649653      sc->sc_outoff += ioffset;
     654
     655      return (0);
    650656    }
    651657  }
    652658
    653   return ( 0 );
     659  /* Notify driver that we have nothing to transmit */
     660  (*tp->handler.write)(ctx, NULL, 0);
     661
     662  return (0);
    654663}
    655664
Note: See TracChangeset for help on using the changeset viewer.