summaryrefslogtreecommitdiff
path: root/package/mac80211/patches/020-netlink_seq.patch
blob: 2897b406819d07e81e939ae8cb5f007556dded38 (plain)
1
2
3
4
5
6
7
8
9
10
11
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)