Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102471
b: refs/heads/master
c: f935a6d
h: refs/heads/master
i:
  102469: d69b909
  102467: 8b608b7
  102463: 12abf70
v: v3
  • Loading branch information
Guy Cohen authored and John W. Linville committed May 7, 2008
1 parent 71c822e commit 95e0eea
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 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: 69fdb3090846de1cdc4fcb4f7e74533f5acbfa98
refs/heads/master: f935a6daa07ac78a35d1513fc61c88774b628a4c
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/iwlwifi/iwl-4965-hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -1356,9 +1356,9 @@ static inline u8 iwl4965_hw_get_rate(__le32 rate_n_flags)
{
return le32_to_cpu(rate_n_flags) & 0xFF;
}
static inline u16 iwl4965_hw_get_rate_n_flags(__le32 rate_n_flags)
static inline u32 iwl4965_hw_get_rate_n_flags(__le32 rate_n_flags)
{
return le32_to_cpu(rate_n_flags) & 0xFFFF;
return le32_to_cpu(rate_n_flags) & 0x1FFFF;
}
static inline __le32 iwl4965_hw_set_rate_n_flags(u8 rate, u16 flags)
{
Expand Down
25 changes: 13 additions & 12 deletions trunk/drivers/net/wireless/iwlwifi/iwl-4965-rs.c
Original file line number Diff line number Diff line change
Expand Up @@ -620,17 +620,21 @@ static int rs_toggle_antenna(u32 valid_ant, u32 *rate_n_flags,
}

/* FIXME:RS: in 4965 we don't use greenfield at all */
static inline u8 rs_use_green(struct iwl_priv *priv,
struct ieee80211_conf *conf)
/* FIXME:RS: don't use greenfield for now in TX */
/* #ifdef CONFIG_IWL4965_HT */
#if 0
static inline u8 rs_use_green(struct iwl_priv *priv, struct ieee80211_conf *conf)
{
#ifdef CONFIG_IWL4965_HT
return ((conf->flags & IEEE80211_CONF_SUPPORT_HT_MODE) &&
priv->current_ht_config.is_green_field &&
!priv->current_ht_config.non_GF_STA_present);
}
#else
static inline u8 rs_use_green(struct iwl_priv *priv, struct ieee80211_conf *conf)
{
return 0;
#endif /* CONFIG_IWL4965_HT */
}
#endif /* CONFIG_IWL4965_HT */

/**
* rs_get_supported_rates - get the available rates
Expand Down Expand Up @@ -1058,7 +1062,7 @@ static void rs_set_expected_tpt_table(struct iwl4965_lq_sta *lq_sta,
static s32 rs_get_best_rate(struct iwl_priv *priv,
struct iwl4965_lq_sta *lq_sta,
struct iwl4965_scale_tbl_info *tbl, /* "search" */
u16 rate_mask, s8 index, s8 rate)
u16 rate_mask, s8 index)
{
/* "active" values */
struct iwl4965_scale_tbl_info *active_tbl =
Expand All @@ -1071,6 +1075,7 @@ static s32 rs_get_best_rate(struct iwl_priv *priv,

s32 new_rate, high, low, start_hi;
u16 high_low;
s8 rate = index;

new_rate = high = low = start_hi = IWL_RATE_INVALID;

Expand Down Expand Up @@ -1197,7 +1202,7 @@ static int rs_switch_to_mimo2(struct iwl_priv *priv,

rs_set_expected_tpt_table(lq_sta, tbl);

rate = rs_get_best_rate(priv, lq_sta, tbl, rate_mask, index, index);
rate = rs_get_best_rate(priv, lq_sta, tbl, rate_mask, index);

IWL_DEBUG_RATE("LQ: MIMO2 best rate %d mask %X\n", rate, rate_mask);

Expand Down Expand Up @@ -1270,7 +1275,7 @@ static int rs_switch_to_siso(struct iwl_priv *priv,
tbl->is_SGI = 0; /*11n spec: no SGI in SISO+Greenfield*/

rs_set_expected_tpt_table(lq_sta, tbl);
rate = rs_get_best_rate(priv, lq_sta, tbl, rate_mask, index, index);
rate = rs_get_best_rate(priv, lq_sta, tbl, rate_mask, index);

IWL_DEBUG_RATE("LQ: get best rate %d mask %X\n", rate, rate_mask);
if ((rate == IWL_RATE_INVALID) || !((1 << rate) & rate_mask)) {
Expand All @@ -1284,7 +1289,6 @@ static int rs_switch_to_siso(struct iwl_priv *priv,
return 0;
#else
return -1;

#endif /*CONFIG_IWL4965_HT */
}

Expand All @@ -1311,7 +1315,7 @@ static int rs_move_legacy_other(struct iwl_priv *priv,
for (; ;) {
switch (tbl->action) {
case IWL_LEGACY_SWITCH_ANTENNA:
IWL_DEBUG_RATE("LQ Legacy toggle Antenna\n");
IWL_DEBUG_RATE("LQ: Legacy toggle Antenna\n");

lq_sta->action_counter++;

Expand Down Expand Up @@ -1580,9 +1584,6 @@ static void rs_stay_in_table(struct iwl4965_lq_sta *lq_sta)
(unsigned long)(lq_sta->flush_timer +
IWL_RATE_SCALE_FLUSH_INTVL));

/* For now, disable the elapsed time criterion */
flush_interval_passed = 0;

/*
* Check if we should allow search for new modulation mode.
* If many frames have failed or succeeded, or we've used
Expand Down

0 comments on commit 95e0eea

Please sign in to comment.