Remove an erroneous htole16(). The byte_count field in the

struct fxp_cb_config is a 6-bit field, not a 16-bit integer
as in struct fxp_cb_tx.
This commit is contained in:
Maxime Henrion 2003-04-07 14:53:30 +00:00
parent 46ea68dd10
commit 2c6c094714
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113226

View File

@ -1928,7 +1928,7 @@ fxp_init(void *xsc)
cbp->cb_command = htole16(FXP_CB_COMMAND_CONFIG |
FXP_CB_COMMAND_EL);
cbp->link_addr = 0xffffffff; /* (no) next command */
cbp->byte_count = htole16(sc->flags & FXP_FLAG_EXT_RFA ? 32 : 22);
cbp->byte_count = sc->flags & FXP_FLAG_EXT_RFA ? 32 : 22;
cbp->rx_fifo_limit = 8; /* rx fifo threshold (32 bytes) */
cbp->tx_fifo_limit = 0; /* tx fifo threshold (0 bytes) */
cbp->adaptive_ifs = 0; /* (no) adaptive interframe spacing */