Daniel C Halperin 31513be8a0 iwlwifi: use iwl_hwrate_get_mac80211_idx where appropriate
For HT packets, mac80211 expects the rate_idx to be an MCS number, which is the
lower byte of rate_n_flags.  However, iwl_hwrate_to_plcp_idx takes the MCS
number and reduces it down to the range 0-8 (6 to 60 Mbps), removing the bits
that signify multiply streams, HT40 Duplicate mode, or unequal modulation.
This version is used for various internal purposes through the driver.

Add the function iwl_hwrate_get_mac80211_idx, an alternate version which takes
the rate and the band and returns the mac80211 index (MCS, for HT packets, and
PLCP rate, for legacy packets).

Signed-off-by: Daniel C Halperin <daniel.c.halperin@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2009-08-31 14:42:10 -04:00
..
2009-08-13 16:26:13 -07:00
2009-08-05 20:28:27 -07:00
2009-08-26 15:29:21 -07:00
2009-08-14 09:14:04 -04:00
2009-08-05 13:10:46 -07:00
2009-08-30 22:02:26 -07:00
2009-08-02 12:54:18 -07:00
2009-08-29 00:02:46 -07:00
2009-08-12 23:03:00 -07:00
2009-08-12 22:53:28 -07:00
2009-08-12 23:03:01 -07:00
2009-08-12 23:03:02 -07:00
2009-08-12 23:03:01 -07:00
2009-08-12 23:03:01 -07:00
2009-08-05 12:22:11 -07:00
2009-07-23 18:01:01 -07:00
2009-07-27 11:35:28 -07:00
2009-07-20 08:23:26 -07:00
2009-07-20 08:23:26 -07:00
2009-08-12 21:54:53 -07:00
2009-07-16 09:14:23 -07:00
2009-08-12 22:13:23 -07:00
2009-08-02 12:20:40 -07:00
2009-08-18 20:26:54 -07:00
2009-08-18 20:26:53 -07:00
2009-07-12 14:20:04 -07:00
2009-08-29 15:43:06 -07:00
2009-07-23 18:01:02 -07:00