]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mac80211: remove rx_stats.last_rx update after sta alloc
authorJohannes Berg <johannes.berg@intel.com>
Thu, 31 Mar 2016 17:02:06 +0000 (20:02 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 6 Apr 2016 11:18:15 +0000 (13:18 +0200)
There's no need to update rx_stats.last_rx after allocating
a station since it's already updated during allocation.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ibss.c
net/mac80211/ocb.c

index fc3238376b39546d025f81ad92240356a77aa48b..b3407dbe4b7ddb462b0f0e013808cfe01d0d0e9c 100644 (file)
@@ -649,8 +649,6 @@ ieee80211_ibss_add_sta(struct ieee80211_sub_if_data *sdata, const u8 *bssid,
                return NULL;
        }
 
-       sta->rx_stats.last_rx = jiffies;
-
        /* make sure mandatory rates are always added */
        sband = local->hw.wiphy->bands[band];
        sta->sta.supp_rates[band] = supp_rates |
@@ -1236,8 +1234,6 @@ void ieee80211_ibss_rx_no_sta(struct ieee80211_sub_if_data *sdata,
        if (!sta)
                return;
 
-       sta->rx_stats.last_rx = jiffies;
-
        /* make sure mandatory rates are always added */
        sband = local->hw.wiphy->bands[band];
        sta->sta.supp_rates[band] = supp_rates |
index 0be0aadfc55913621454c560de927b380076f059..88e6ebbbe24f5562eb69df3c92ca132d15f5733b 100644 (file)
@@ -75,8 +75,6 @@ void ieee80211_ocb_rx_no_sta(struct ieee80211_sub_if_data *sdata,
        if (!sta)
                return;
 
-       sta->rx_stats.last_rx = jiffies;
-
        /* Add only mandatory rates for now */
        sband = local->hw.wiphy->bands[band];
        sta->sta.supp_rates[band] =