M7350/external/compat-wireless/patches/42-netlink_seq.patch

13 lines
356 B
Diff
Raw Normal View History

2024-09-09 08:57:42 +00:00
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -4071,7 +4071,9 @@ static int nl80211_dump_scan(struct sk_b
spin_lock_bh(&rdev->bss_lock);
cfg80211_bss_expire(rdev);
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0))
cb->seq = rdev->bss_generation;
+#endif
list_for_each_entry(scan, &rdev->bss_list, list) {
if (++idx <= start)