compat-wireless: do not set netlink seq.
authorHauke Mehrtens <hauke@hauke-m.de>
Tue, 28 Jun 2011 18:38:51 +0000 (20:38 +0200)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 28 Jun 2011 18:48:28 +0000 (11:48 -0700)
This member is not available in older kernel versions.

This was introduced in commit:
commit 9720bb3ab0b80659c63ed337eab66104a4156db0
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Tue Jun 21 09:45:33 2011 +0200

    nl80211: use netlink consistent dump feature for BSS dumps

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
patches/42-netlink_seq.patch [new file with mode: 0644]

diff --git a/patches/42-netlink_seq.patch b/patches/42-netlink_seq.patch
new file mode 100644 (file)
index 0000000..2897b40
--- /dev/null
@@ -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)