mac80211: merge a few pending upstream fixes
[openwrt/svn-archive/archive.git] / package / kernel / mac80211 / patches / 008-fix_netdev_unregister.patch
1 --- a/net/mac80211/iface.c
2 +++ b/net/mac80211/iface.c
3 @@ -1825,6 +1825,11 @@ void ieee80211_remove_interfaces(struct
4 }
5 mutex_unlock(&local->iflist_mtx);
6 unregister_netdevice_many(&unreg_list);
7 +#if (!(LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,45) && \
8 + LINUX_VERSION_CODE < KERNEL_VERSION(3,11,0)) && \
9 + (LINUX_VERSION_CODE < KERNEL_VERSION(3,16,0)))
10 + list_del(&unreg_list);
11 +#endif
12
13 list_for_each_entry_safe(sdata, tmp, &wdev_list, list) {
14 list_del(&sdata->list);