diff options
author | Daniel C Halperin <daniel.c.halperin@intel.com> | 2009-08-28 09:44:47 -0700 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-31 14:42:10 -0400 |
commit | 31513be8a06874eb359908b7b735929837831a9a (patch) | |
tree | 1bb7bbff7fa671ae2169012cf81dc84ebd64722b /COPYING | |
parent | b58ef214b7db57cfcbca0e1edae08566cdfd56b7 (diff) |
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>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions