Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291152
b: refs/heads/master
c: ebecdcc
h: refs/heads/master
v: v3
  • Loading branch information
Larry Finger authored and John W. Linville committed Mar 5, 2012
1 parent f7ebe3e commit 246fe6b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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: 8f526ab4aa1b145bda2baf56e223050c7ef3e1b0
refs/heads/master: ebecdcc12fed5d3c81853dea61a0a78a5aefab52
11 changes: 8 additions & 3 deletions trunk/drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1201,13 +1201,18 @@ static void rtl92c_dm_refresh_rate_adaptive_mask(struct ieee80211_hw *hw)
"PreState = %d, CurState = %d\n",
p_ra->pre_ratr_state, p_ra->ratr_state);

rcu_read_lock();
sta = ieee80211_find_sta(mac->vif, mac->bssid);
/* Only the PCI card uses sta in the update rate table
* callback routine */
if (rtlhal->interface == INTF_PCI) {
rcu_read_lock();
sta = ieee80211_find_sta(mac->vif, mac->bssid);
}
rtlpriv->cfg->ops->update_rate_tbl(hw, sta,
p_ra->ratr_state);

p_ra->pre_ratr_state = p_ra->ratr_state;
rcu_read_unlock();
if (rtlhal->interface == INTF_PCI)
rcu_read_unlock();
}
}
}
Expand Down

0 comments on commit 246fe6b

Please sign in to comment.