Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170565
b: refs/heads/master
c: 2b396a1
h: refs/heads/master
i:
  170563: 8a6dda9
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Oct 7, 2009
1 parent 683a67d commit 5db7392
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9bddbab36d736c181678e07515aaa63045bdcea7
refs/heads/master: 2b396a120922062a0ffd2648be3ed7e72ff83620
30 changes: 17 additions & 13 deletions trunk/drivers/net/wireless/iwlwifi/iwl-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -948,8 +948,13 @@ EXPORT_SYMBOL(iwl_set_rxon_ht);
#define IWL_NUM_IDLE_CHAINS_DUAL 2
#define IWL_NUM_IDLE_CHAINS_SINGLE 1

/* Determine how many receiver/antenna chains to use.
* More provides better reception via diversity. Fewer saves power.
/*
* Determine how many receiver/antenna chains to use.
*
* More provides better reception via diversity. Fewer saves power
* at the expense of throughput, but only when not in powersave to
* start with.
*
* MIMO (dual stream) requires at least 2, but works better with 3.
* This does not determine *which* chains to use, just how many.
*/
Expand All @@ -962,19 +967,18 @@ static int iwl_get_active_rx_chain_count(struct iwl_priv *priv)
return IWL_NUM_RX_CHAINS_MULTIPLE;
}

/*
* When we are in power saving, there's no difference between
* using multiple chains or just a single chain, but due to the
* lack of SM PS we lose a lot of throughput if we use just a
* single chain.
*
* Therefore, use the active count here (which will use multiple
* chains unless connected to a legacy AP).
*/
static int iwl_get_idle_rx_chain_count(struct iwl_priv *priv, int active_cnt)
{
bool is_cam = !test_bit(STATUS_POWER_PMI, &priv->status);

/* # Rx chains when idling and maybe trying to save power */

/*
* XXX: this is incorrect!!
* we always indicate to the AP that
* our SM PS mode is "disabled"
*/

return is_cam ? active_cnt : IWL_NUM_IDLE_CHAINS_SINGLE;
return active_cnt;
}

/* up to 4 chains */
Expand Down

0 comments on commit 5db7392

Please sign in to comment.