iwlwifi: sta_id cannot be invalid in rs_initialize_lq
authorJohannes Berg <johannes.berg@intel.com>
Thu, 21 Jan 2010 15:07:44 +0000 (07:07 -0800)
committerReinette Chatre <reinette.chatre@intel.com>
Fri, 19 Mar 2010 20:41:07 +0000 (13:41 -0700)
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>
drivers/net/wireless/iwlwifi/iwl-agn-rs.c

index 970eec82d106b80f2efa878be1c959f04db6f4e8..5155b1a027eb3c7cefc42f19ed372fab6e942b39 100644 (file)
@@ -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)