LorenzoBianconi / mt76

mac80211 driver for MediaTek MT76x2 802.11ac chips
29 stars 8 forks source link

Unable to compile on Linux 4.9.111 #4

Open dmascord opened 6 years ago

dmascord commented 6 years ago

Hi,

I am trying to build this on OpenWRT for tplink 703n (tiny), which runs on Linux 4.9.111, which needs to use the sbk_pad. skb_pad in later kernel version calls __skb_pad(last,pad,true) anyway.

--- a/usb.c  2018-07-24 12:32:33.993272538 +1000
+++ b/usb.c       2018-07-24 12:33:33.229314347 +1000
@@ -535,7 +535,7 @@
        }

        if (unlikely(pad)) {
-               if (__skb_pad(last, pad, true))
+               if (skb_pad(last, pad))
                        return -ENOMEM;
                __skb_put(last, pad);
        }

It compiles fine, but for some reason spits out complaining that it is missing a kernel module:

Package kmod-mt76x2 is missing dependencies for the following libraries: mt76x2-common.ko even with all mt76 chipsets: CONFIG_PACKAGE_kmod-mt76=y CONFIG_PACKAGE_kmod-mt76-core=y CONFIG_PACKAGE_kmod-mt7601u=y CONFIG_PACKAGE_kmod-mt7603=y CONFIG_PACKAGE_kmod-mt76x2=y

Do we need to define a CONFIG_PACKAGE_kmod-mt76x2-common and set it as a depends ?

dmascord commented 6 years ago

OpenWRT makefile that allows to build

mt76.openwrt.Makefile.zip