Fix a race condition in the transmit path caused by the controller caching a bit more than we were told initially.
Fix a race condition in the transmit path caused by the controller
caching a bit more than we were told initially.

More statistics gathering as well.

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase