From: Hauke Mehrtens Date: Tue, 28 Jun 2011 18:38:51 +0000 (+0200) Subject: compat-wireless: do not set netlink seq. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9b53d3656f2493aadb1f9ec56167cd7e87360be9;p=openwrt%2Fstaging%2Fblogic.git compat-wireless: do not set netlink seq. This member is not available in older kernel versions. This was introduced in commit: commit 9720bb3ab0b80659c63ed337eab66104a4156db0 Author: Johannes Berg Date: Tue Jun 21 09:45:33 2011 +0200 nl80211: use netlink consistent dump feature for BSS dumps Signed-off-by: Hauke Mehrtens --- diff --git a/patches/42-netlink_seq.patch b/patches/42-netlink_seq.patch new file mode 100644 index 000000000000..2897b406819d --- /dev/null +++ b/patches/42-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)