projects
/
madwifi
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use netdev_notifier_info_to_dev(), needed for Linux 3.11+
[madwifi/.git]
/
include
/
compat.h
diff --git
a/include/compat.h
b/include/compat.h
index c29f57ab279caf37aa842f94e7bc818a9aaa763a..700229b47739bb7f26eb249246e2b1afa27211d2 100644
(file)
--- a/
include/compat.h
+++ b/
include/compat.h
@@
-242,6
+242,10
@@
typedef unsigned long resource_size_t;
#endif
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,11,0)
+#define netdev_notifier_info_to_dev(ptr) ((struct net_device *)(ptr))
+#endif
+
#endif /* __KERNEL__ */
#endif /* _ATH_COMPAT_H_ */