A dynamic rate selection algorithm for IEEE 802.11 industrial wireless LAN