if_iwm: Fix up the rate control setup code.
authorImre Vadász <imre@vdsz.com>
Mon, 18 Jan 2016 20:15:28 +0000 (21:15 +0100)
committerImre Vadász <imre@vdsz.com>
Mon, 18 Jan 2016 20:46:42 +0000 (21:46 +0100)
commit47d937a2eab7d19dc35f99390889172b18a000d9
treea2e8a84f33052e2ddd3714a97abd2c515df4dd45
parent28596060b08f05d832b351aecf54636d5561d6d4
if_iwm: Fix up the rate control setup code.

- Initialise rates in the order we want to use them.
- The rate table was being initialised in low->high, but the link quality
  table was being initialised high->low. So, when we did a lookup, we
  would get the indexes wrong.

Taken-From: FreeBSD (SVN r294248)
sys/dev/netif/iwm/if_iwm.c