summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-01-21 16:07:44 +0100
committerReinette Chatre <reinette.chatre@intel.com>2010-03-19 21:41:07 +0100
commitfe0b3b96ab28b7e5fb6c5aea68e6dd88115873da (patch)
tree8dc06dbf3be77c7071f56c9e92282617a7aece1c /drivers
parentiwlwifi: implement new mac80211 station add/remove calls (diff)
downloadlinux-fe0b3b96ab28b7e5fb6c5aea68e6dd88115873da.tar.xz
linux-fe0b3b96ab28b7e5fb6c5aea68e6dd88115873da.zip
iwlwifi: sta_id cannot be invalid in rs_initialize_lq
The only caller of this is iwl_rs_rate_init which is only called with a valid sta_id. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-rs.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
index 970eec82d106..5155b1a027eb 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
@@ -2377,10 +2377,6 @@ static void rs_initialize_lq(struct iwl_priv *priv,
i = lq_sta->last_txrate_idx;
- if ((lq_sta->lq.sta_id == 0xff) &&
- (priv->iw_mode == NL80211_IFTYPE_ADHOC))
- goto out;
-
valid_tx_ant = priv->hw_params.valid_tx_ant;
if (!lq_sta->search_better_tbl)