iwlegacy: remove usage of txrc->max_rate_idx
authorJohannes Berg <johannes.berg@intel.com>
Mon, 6 Mar 2017 22:04:09 +0000 (23:04 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 7 Mar 2017 08:42:11 +0000 (09:42 +0100)
commita3f9d596b1ea9cf7db482879a8aeb91f54a87e75
tree022b4775cb2b773eaa6367da5ebb3bf0727cc87f
parenta6289d3fcc7349402e198ea8fb22d63ed4cb09dd
iwlegacy: remove usage of txrc->max_rate_idx

Just calculate it like mac80211 does today, so we can get rid
of the calculation in mac80211 for everyone else.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlegacy/3945-rs.c
drivers/net/wireless/intel/iwlegacy/4965-rs.c