hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/net/wireless/scan.c
....@@ -1034,17 +1034,17 @@
10341034 };
10351035
10361036 /* Returned bss is reference counted and must be cleaned up appropriately. */
1037
-static struct cfg80211_internal_bss *
1037
+struct cfg80211_internal_bss *
10381038 cfg80211_bss_update(struct cfg80211_registered_device *rdev,
10391039 struct cfg80211_internal_bss *tmp,
1040
- bool signal_valid)
1040
+ bool signal_valid, unsigned long ts)
10411041 {
10421042 struct cfg80211_internal_bss *found = NULL;
10431043
10441044 if (WARN_ON(!tmp->pub.channel))
10451045 return NULL;
10461046
1047
- tmp->ts = jiffies;
1047
+ tmp->ts = ts;
10481048
10491049 spin_lock_bh(&rdev->bss_lock);
10501050
....@@ -1367,7 +1367,8 @@
13671367
13681368 signal_valid = abs(data->chan->center_freq - channel->center_freq) <=
13691369 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);
13711372 if (!res)
13721373 return NULL;
13731374
....@@ -1691,7 +1692,8 @@
16911692
16921693 signal_valid = abs(data->chan->center_freq - channel->center_freq) <=
16931694 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);
16951697 if (!res)
16961698 return NULL;
16971699