package/madwifi: fix linux kernel >4.1 compile
authoracoul <alex@ozo.com>
Mon, 14 Dec 2015 09:57:12 +0000 (11:57 +0200)
committeracoul <alex@ozo.com>
Thu, 31 Mar 2016 05:28:36 +0000 (08:28 +0300)
package/network/services/madwifi/patches/516_fix_kernel_4_2.patch [new file with mode: 0644]

diff --git a/package/network/services/madwifi/patches/516_fix_kernel_4_2.patch b/package/network/services/madwifi/patches/516_fix_kernel_4_2.patch
new file mode 100644 (file)
index 0000000..43dc1bb
--- /dev/null
@@ -0,0 +1,14 @@
+--- a/net80211/ieee80211_crypto_ccmp.c
++++ b/net80211/ieee80211_crypto_ccmp.c
+@@ -49,7 +49,11 @@
+ #include <linux/init.h>
+ #include <linux/crypto.h>
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0)
+ #include <asm/scatterlist.h>
++#else
++#include <linux/scatterlist.h>
++#endif
+ #include "if_media.h"