]> git.karo-electronics.de Git - linux-beck.git/commit
iwlwifi: set correct single/dual stream mask
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Sat, 3 Apr 2010 23:44:39 +0000 (16:44 -0700)
committerReinette Chatre <reinette.chatre@intel.com>
Fri, 16 Apr 2010 20:46:29 +0000 (13:46 -0700)
commit3a23d69582fa4bfcb443631bcd3d0d2afcc19208
tree6bdd4a5cb19535d4b8d3efec0da2b4ceb7b20b45
parent8715fa28fb4fad62f6004d276ec8e1aa5e664e76
iwlwifi: set correct single/dual stream mask

Even the initial single/dual stream values will be overridden later when
issue link quality command; but still make sense not to use hard-code
value during initialization. Single/Dual stream mask are used to indicate the
best antenna for SISO/MIMO; different NIC has different tx antenna
configuration; so the parameter need to based on the valid tx antenna.

1x2 device: single tx antenna available, only SISO is valid
configuration, but still need to set up MIMO configuration, so set it up
with antenna A & B as default.
2x2 device: two tx antenna available, dual_stream will use both valid
antenna.

3x3 device: three tx antenna available, skip the first antenna and
choice the second and third antenna for dual_stream.

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn-rs.c
drivers/net/wireless/iwlwifi/iwl-sta.c