summaryrefslogtreecommitdiff
path: root/package/mac80211/patches/020-netlink_seq.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/mac80211/patches/020-netlink_seq.patch')
-rw-r--r--package/mac80211/patches/020-netlink_seq.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/mac80211/patches/020-netlink_seq.patch b/package/mac80211/patches/020-netlink_seq.patch
new file mode 100644
index 0000000000..2897b40681
--- /dev/null
+++ b/package/mac80211/patches/020-netlink_seq.patch
@@ -0,0 +1,12 @@
+--- a/net/wireless/nl80211.c
++++ b/net/wireless/nl80211.c
+@@ -3728,7 +3728,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)