2014-08-29 20:41:01 +00:00
|
|
|
--- a/net/mac80211/iface.c
|
|
|
|
+++ b/net/mac80211/iface.c
|
2014-11-09 02:25:49 +00:00
|
|
|
@@ -1859,6 +1859,13 @@ void ieee80211_remove_interfaces(struct
|
2014-08-29 20:41:01 +00:00
|
|
|
}
|
|
|
|
mutex_unlock(&local->iflist_mtx);
|
|
|
|
unregister_netdevice_many(&unreg_list);
|
|
|
|
+#if (!(LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,45) && \
|
|
|
|
+ LINUX_VERSION_CODE < KERNEL_VERSION(3,11,0)) && \
|
2014-11-09 02:25:49 +00:00
|
|
|
+ !(LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,9) && \
|
|
|
|
+ LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0)) && \
|
2014-08-29 20:41:01 +00:00
|
|
|
+ (LINUX_VERSION_CODE < KERNEL_VERSION(3,16,0)))
|
2014-09-27 20:51:43 +00:00
|
|
|
+ list_del(&unreg_list);
|
2014-08-29 20:41:01 +00:00
|
|
|
+#endif
|
|
|
|
|
|
|
|
list_for_each_entry_safe(sdata, tmp, &wdev_list, list) {
|
|
|
|
list_del(&sdata->list);
|