Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78989
b: refs/heads/master
c: 403ab56
h: refs/heads/master
i:
  78987: 9d16bb5
v: v3
  • Loading branch information
Mohamed Abbas authored and David S. Miller committed Jan 28, 2008
1 parent a7fc107 commit b677555
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: 3567c11d7212cd9d29a16c39b4f2da86c4f94aee
refs/heads/master: 403ab56b1c2786b0e1d58c27f5ce667b529c7faa
13 changes: 8 additions & 5 deletions trunk/drivers/net/wireless/iwlwifi/iwl-4965-rs.c
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ static void rs_set_stay_in_table(u8 is_legacy,
if (is_legacy) {
lq_data->table_count_limit = IWL_LEGACY_TABLE_COUNT;
lq_data->max_failure_limit = IWL_LEGACY_FAILURE_LIMIT;
lq_data->max_success_limit = IWL_LEGACY_TABLE_COUNT;
lq_data->max_success_limit = IWL_LEGACY_SUCCESS_LIMIT;
} else {
lq_data->table_count_limit = IWL_NONE_LEGACY_TABLE_COUNT;
lq_data->max_failure_limit = IWL_NONE_LEGACY_FAILURE_LIMIT;
Expand Down Expand Up @@ -937,9 +937,10 @@ static int rs_switch_to_mimo(struct iwl_priv *priv,

IWL_DEBUG_HT("LQ: Switch to new mcs %X index is green %X\n",
tbl->current_rate.rate_n_flags, is_green);

#endif /*CONFIG_IWL4965_HT */
return 0;
#else
return -1;
#endif /*CONFIG_IWL4965_HT */
}

static int rs_switch_to_siso(struct iwl_priv *priv,
Expand Down Expand Up @@ -991,9 +992,11 @@ static int rs_switch_to_siso(struct iwl_priv *priv,
rs_mcs_from_tbl(&tbl->current_rate, tbl, rate, is_green);
IWL_DEBUG_HT("LQ: Switch to new mcs %X index is green %X\n",
tbl->current_rate.rate_n_flags, is_green);
return 0;
#else
return -1;

#endif /*CONFIG_IWL4965_HT */
return 0;
}

static int rs_move_legacy_other(struct iwl_priv *priv,
Expand Down Expand Up @@ -1282,7 +1285,7 @@ static void rs_stay_in_table(struct iwl_rate_scale_priv *lq_data)
lq_data->total_failed = 0;
lq_data->total_success = 0;
lq_data->flush_timer = 0;
} else if (lq_data->table_count > 0) {
} else {
lq_data->table_count++;
if (lq_data->table_count >=
lq_data->table_count_limit) {
Expand Down

0 comments on commit b677555

Please sign in to comment.