.. | .. |
---|
1034 | 1034 | }; |
---|
1035 | 1035 | |
---|
1036 | 1036 | /* Returned bss is reference counted and must be cleaned up appropriately. */ |
---|
1037 | | -static struct cfg80211_internal_bss * |
---|
| 1037 | +struct cfg80211_internal_bss * |
---|
1038 | 1038 | cfg80211_bss_update(struct cfg80211_registered_device *rdev, |
---|
1039 | 1039 | struct cfg80211_internal_bss *tmp, |
---|
1040 | | - bool signal_valid) |
---|
| 1040 | + bool signal_valid, unsigned long ts) |
---|
1041 | 1041 | { |
---|
1042 | 1042 | struct cfg80211_internal_bss *found = NULL; |
---|
1043 | 1043 | |
---|
1044 | 1044 | if (WARN_ON(!tmp->pub.channel)) |
---|
1045 | 1045 | return NULL; |
---|
1046 | 1046 | |
---|
1047 | | - tmp->ts = jiffies; |
---|
| 1047 | + tmp->ts = ts; |
---|
1048 | 1048 | |
---|
1049 | 1049 | spin_lock_bh(&rdev->bss_lock); |
---|
1050 | 1050 | |
---|
.. | .. |
---|
1367 | 1367 | |
---|
1368 | 1368 | signal_valid = abs(data->chan->center_freq - channel->center_freq) <= |
---|
1369 | 1369 | wiphy->max_adj_channel_rssi_comp; |
---|
1370 | | - res = cfg80211_bss_update(wiphy_to_rdev(wiphy), &tmp, signal_valid); |
---|
| 1370 | + res = cfg80211_bss_update(wiphy_to_rdev(wiphy), &tmp, signal_valid, |
---|
| 1371 | + jiffies); |
---|
1371 | 1372 | if (!res) |
---|
1372 | 1373 | return NULL; |
---|
1373 | 1374 | |
---|
.. | .. |
---|
1691 | 1692 | |
---|
1692 | 1693 | signal_valid = abs(data->chan->center_freq - channel->center_freq) <= |
---|
1693 | 1694 | wiphy->max_adj_channel_rssi_comp; |
---|
1694 | | - res = cfg80211_bss_update(wiphy_to_rdev(wiphy), &tmp, signal_valid); |
---|
| 1695 | + res = cfg80211_bss_update(wiphy_to_rdev(wiphy), &tmp, signal_valid, |
---|
| 1696 | + jiffies); |
---|
1695 | 1697 | if (!res) |
---|
1696 | 1698 | return NULL; |
---|
1697 | 1699 | |
---|