1 --- a/net/wireless/nl80211.c
2 +++ b/net/wireless/nl80211.c
3 @@ -3728,7 +3728,9 @@ static int nl80211_dump_scan(struct sk_b
4 spin_lock_bh(&rdev->bss_lock);
5 cfg80211_bss_expire(rdev);
7 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0))
8 cb->seq = rdev->bss_generation;
11 list_for_each_entry(scan, &rdev->bss_list, list) {