iwlwifi: mvm: rs: refactor to use rs_rate
authorEyal Shapira <eyal@wizery.com>
Fri, 22 Nov 2013 23:06:36 +0000 (01:06 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 9 Dec 2013 20:29:47 +0000 (22:29 +0200)
commit5aa335537aa27e0d169e98d90d23342434a1cef0
tree694836a7fd512c1d9f5af21a4d767c95564f5356
parent0c308e97d40f0e8f43336b6076f4b26e71ba59c6
iwlwifi: mvm: rs: refactor to use rs_rate

Introduce rs_rate which represents a rate. Use this structure
instead of iwl_scale_tbl_info where we're dealing with a single
rate.
This avoids allocating the big iwl_scale_tbl_info structure
on the stack in several cases like converting to ucode rate
format or from ucode rate format.

Signed-off-by: Eyal Shapira <eyal@wizery.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/rs.c
drivers/net/wireless/iwlwifi/mvm/rs.h