]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1b750dfdd13a6ba518dedcbf29033cca78847f74
tree694836a7fd512c1d9f5af21a4d767c95564f5356
parent475f8dd30ff77a5fa33ce300633a210d97d82b99
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