提交 2df8bfd7 编写于 作者: J Johannes Berg

mac80211: remove rx_stats.last_rx update after sta alloc

There's no need to update rx_stats.last_rx after allocating
a station since it's already updated during allocation.
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 0be6ed13
...@@ -649,8 +649,6 @@ ieee80211_ibss_add_sta(struct ieee80211_sub_if_data *sdata, const u8 *bssid, ...@@ -649,8 +649,6 @@ ieee80211_ibss_add_sta(struct ieee80211_sub_if_data *sdata, const u8 *bssid,
return NULL; return NULL;
} }
sta->rx_stats.last_rx = jiffies;
/* make sure mandatory rates are always added */ /* make sure mandatory rates are always added */
sband = local->hw.wiphy->bands[band]; sband = local->hw.wiphy->bands[band];
sta->sta.supp_rates[band] = supp_rates | sta->sta.supp_rates[band] = supp_rates |
...@@ -1236,8 +1234,6 @@ void ieee80211_ibss_rx_no_sta(struct ieee80211_sub_if_data *sdata, ...@@ -1236,8 +1234,6 @@ void ieee80211_ibss_rx_no_sta(struct ieee80211_sub_if_data *sdata,
if (!sta) if (!sta)
return; return;
sta->rx_stats.last_rx = jiffies;
/* make sure mandatory rates are always added */ /* make sure mandatory rates are always added */
sband = local->hw.wiphy->bands[band]; sband = local->hw.wiphy->bands[band];
sta->sta.supp_rates[band] = supp_rates | sta->sta.supp_rates[band] = supp_rates |
......
...@@ -75,8 +75,6 @@ void ieee80211_ocb_rx_no_sta(struct ieee80211_sub_if_data *sdata, ...@@ -75,8 +75,6 @@ void ieee80211_ocb_rx_no_sta(struct ieee80211_sub_if_data *sdata,
if (!sta) if (!sta)
return; return;
sta->rx_stats.last_rx = jiffies;
/* Add only mandatory rates for now */ /* Add only mandatory rates for now */
sband = local->hw.wiphy->bands[band]; sband = local->hw.wiphy->bands[band];
sta->sta.supp_rates[band] = sta->sta.supp_rates[band] =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册