diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-16 09:22:38 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-16 09:22:38 -0600 |
commit | b6112c5ca3f1d5b8b929ae64e0b256d26374fc7c (patch) | |
tree | 3b3d1d454f1894a9dba926abbba6b8a44c467825 /misc/drivers/rtl8187x/rtl8187x.c | |
parent | 656e3c5bebfa925d8eaa77519a3c2f4ea453c1ea (diff) | |
download | nuttx-b6112c5ca3f1d5b8b929ae64e0b256d26374fc7c.tar.gz nuttx-b6112c5ca3f1d5b8b929ae64e0b256d26374fc7c.tar.bz2 nuttx-b6112c5ca3f1d5b8b929ae64e0b256d26374fc7c.zip |
Completes conversion of CONFIG_NET_BUFIZE to CONFIG_NET_ETH/SLIP_MTU
Diffstat (limited to 'misc/drivers/rtl8187x/rtl8187x.c')
-rw-r--r-- | misc/drivers/rtl8187x/rtl8187x.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/drivers/rtl8187x/rtl8187x.c b/misc/drivers/rtl8187x/rtl8187x.c index c7706a6c4..e2c25e4bb 100644 --- a/misc/drivers/rtl8187x/rtl8187x.c +++ b/misc/drivers/rtl8187x/rtl8187x.c @@ -1185,7 +1185,7 @@ static inline int rtl8187x_allocbuffers(FAR struct rtl8187x_state_s *priv) * the TX descriptor. */ - buflen = CONFIG_NET_BUFSIZE + 2 + SIZEOF_TXDESC; + buflen = CONFIG_NET_ETH_MTU + 2 + SIZEOF_TXDESC; ret = DRVR_IOALLOC(priv->hcd, &priv->txbuffer, buflen); if (ret != OK) { @@ -1196,7 +1196,7 @@ static inline int rtl8187x_allocbuffers(FAR struct rtl8187x_state_s *priv) * the RX descriptor. */ - buflen = CONFIG_NET_BUFSIZE + 2 + SIZEOF_RXDESC; + buflen = CONFIG_NET_ETH_MTU + 2 + SIZEOF_RXDESC; ret = DRVR_IOALLOC(priv->hcd, &priv->rxbuffer, buflen); if (ret != OK) { @@ -2188,7 +2188,7 @@ static inline int rtl8187x_receive(FAR struct rtl8187x_state_s *priv, /* Check if uIP is configured to handle a packet of this size */ - if (iolen > CONFIG_NET_BUFSIZE + SIZEOF_RXDESC + 2) + if (iolen > CONFIG_NET_ETH_MTU + SIZEOF_RXDESC + 2) { RTL8187X_STATS(priv, rxtoobig); RTL8187X_STATS(priv, rxdropped); @@ -2319,7 +2319,7 @@ static void rtl8187x_rxpollwork(FAR void *arg) /* Attempt to read from the bulkin endpoint */ ret = DRVR_TRANSFER(priv->hcd, priv->epin, priv->rxbuffer, - CONFIG_NET_BUFSIZE + SIZEOF_RXDESC + 2); + CONFIG_NET_ETH_MTU + SIZEOF_RXDESC + 2); /* How dow we get the length of the transfer? */ #warning "Missing logic" |