iwlwifi: mvm: rs: refactor building the LQ command
authorEyal Shapira <eyal@wizery.com>
Wed, 4 Dec 2013 00:15:46 +0000 (02:15 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 17 Dec 2013 17:39:53 +0000 (19:39 +0200)
commit8fc7c58c037b1793b07aa3111d125b36f31f5681
tree5881c5d16501a1d3bcb7a84bc023c6b81435d087
parent752096727cdec42c2fa91242dbc341c8f360e167
iwlwifi: mvm: rs: refactor building the LQ command

Simplify the code a bit more by extracting the rates table
building logic into a separate function and handle setting
a fixed rate for debug in a separate flow.
Also avoid using and saving ucode rate format in different
places. Instead use rs_rate struct and convert to ucode format
only when filling the rates table in the LQ command.

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