Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 368454
b: refs/heads/master
c: 6e6cc9f
h: refs/heads/master
v: v3
  • Loading branch information
Beni Lev authored and Johannes Berg committed Mar 6, 2013
1 parent b7615c1 commit 2ebe88c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 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: f4a7dfa3f21afc1b2362f19cebc79d3d7d5a9aee
refs/heads/master: 6e6cc9f319bf81b292ceb281228ab1d261172cac
14 changes: 8 additions & 6 deletions trunk/drivers/net/wireless/iwlwifi/mvm/rs.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,12 +680,14 @@ static int rs_toggle_antenna(u32 valid_ant, u32 *rate_n_flags,
*/
static bool rs_use_green(struct ieee80211_sta *sta)
{
struct iwl_mvm_sta *sta_priv = (void *)sta->drv_priv;

bool use_green = !(sta_priv->vif->bss_conf.ht_operation_mode &
IEEE80211_HT_OP_MODE_NON_GF_STA_PRSNT);

return (sta->ht_cap.cap & IEEE80211_HT_CAP_GRN_FLD) && use_green;
/*
* There's a bug somewhere in this code that causes the
* scaling to get stuck because GF+SGI can't be combined
* in SISO rates. Until we find that bug, disable GF, it
* has only limited benefit and we still interoperate with
* GF APs since we can always receive GF transmissions.
*/
return false;
}

/**
Expand Down

0 comments on commit 2ebe88c

Please sign in to comment.