kuba-moo / mt7630e

Mediatek driver for MT7630E WiFi+BT combo with my fixes
42 stars 8 forks source link

Failed to do make #23

Open ehood opened 7 years ago

ehood commented 7 years ago

kernel version: 4.8.0-22-generic Error: /mt7630e# make make -C /lib/modules/uname -r/build M=/home/ehoodp/mt7630e/rt2x00 modules make[1]: Entering directory '/usr/src/linux-headers-4.8.0-22-generic' CC [M] /home/ehoodp/mt7630e/rt2x00/rt2x00dev.o In file included from /home/ehoodp/mt7630e/rt2x00/rt2x00dev.c:32:0: /home/ehoodp/mt7630e/rt2x00/rt2x00.h:2166:40: error: ‘IEEE80211_NUM_BANDS’ undeclared here (not in a function) struct ieee80211_supported_band bands[IEEE80211_NUM_BANDS]; ^~~~~~~~~~~~~~~~~~~ /home/ehoodp/mt7630e/rt2x00/rt2x00.h:2167:22: error: field ‘curr_band’ has incomplete type enum ieee80211_band curr_band; ^~~~~~~~~ /home/ehoodp/mt7630e/rt2x00/rt2x00dev.c: In function ‘rt2x00lib_channel’: /home/ehoodp/mt7630e/rt2x00/rt2x00dev.c:945:32: error: ‘IEEE80211_BAND_2GHZ’ undeclared (first use in this function) entry->band = channel <= 14 ? IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ; ^~~~~~~~~~~~~~~~~~~ /home/ehoodp/mt7630e/rt2x00/rt2x00dev.c:945:32: note: each undeclared identifier is reported only once for each function it appears in /home/ehoodp/mt7630e/rt2x00/rt2x00dev.c:945:54: error: ‘IEEE80211_BAND_5GHZ’ undeclared (first use in this function) entry->band = channel <= 14 ? IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ; ^~~~~~~~~~~~~~~~~~~ /home/ehoodp/mt7630e/rt2x00/rt2x00dev.c: In function ‘rt2x00lib_probe_hw_modes’: /home/ehoodp/mt7630e/rt2x00/rt2x00dev.c:1009:20: error: ‘IEEE80211_BAND_2GHZ’ undeclared (first use in this function) rt2x00dev->bands[IEEE80211_BAND_2GHZ].n_channels = 14; ^~~~~~~~~~~~~~~~~~~ /home/ehoodp/mt7630e/rt2x00/rt2x00dev.c:1025:20: error: ‘IEEE80211_BAND_5GHZ’ undeclared (first use in this function) rt2x00dev->bands[IEEE80211_BAND_5GHZ].n_channels = ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/linkage.h:4:0, from ./include/linux/kernel.h:6, from /home/ehoodp/mt7630e/rt2x00/rt2x00dev.c:27: /home/ehoodp/mt7630e/rt2x00/rt2x00dev.c: In function ‘rt2x00lib_remove_hw’: /home/ehoodp/mt7630e/rt2x00/rt2x00dev.c:1050:41: error: ‘IEEE80211_BAND_2GHZ’ undeclared (first use in this function) if (likely(rt2x00dev->hw->wiphy->bands[IEEE80211_BAND_2GHZ])) { ^ ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’ /# define likely(x) __builtin_expect(!!(x), 1) ^ /home/ehoodp/mt7630e/rt2x00/rt2x00dev.c:1054:31: error: ‘IEEE80211_BAND_5GHZ’ undeclared (first use in this function) rt2x00dev->hw->wiphy->bands[IEEE80211_BAND_5GHZ] = NULL; ^~~~~~~~~~~~~~~~~~~ scripts/Makefile.build:289: recipe for target '/home/ehoodp/mt7630e/rt2x00/rt2x00dev.o' failed make[2]: *** [/home/ehoodp/mt7630e/rt2x00/rt2x00dev.o] Error 1 Makefile:1489: recipe for target '_module_/home/ehoodp/mt7630e/rt2x00' failed make[1]: *** [_module_/home/ehoodp/mt7630e/rt2x00] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.8.0-22-generic' Makefile:7: recipe for target 'all' failed make: *** [all] Error 2

KarimLulu commented 6 years ago

kernel version: 4.10.0-42-generic error:

make -C /lib/modules/`uname -r`/build M=/home/karimlulu/Downloads/mt7630e/rt2x00 modules
make[1]: Entering directory '/usr/src/linux-headers-4.10.0-42-generic'
  CC [M]  /home/karimlulu/Downloads/mt7630e/rt2x00/rt2x00dev.o
In file included from /home/karimlulu/Downloads/mt7630e/rt2x00/rt2x00dev.c:32:0:
/home/karimlulu/Downloads/mt7630e/rt2x00/rt2x00.h:2166:40: error: ‘IEEE80211_NUM_BANDS’ undeclared here (not in a function)
  struct ieee80211_supported_band bands[IEEE80211_NUM_BANDS];
                                        ^
/home/karimlulu/Downloads/mt7630e/rt2x00/rt2x00.h:2167:22: error: field ‘curr_band’ has incomplete type
  enum ieee80211_band curr_band;
                      ^
/home/karimlulu/Downloads/mt7630e/rt2x00/rt2x00dev.c: In function ‘rt2x00lib_channel’:
/home/karimlulu/Downloads/mt7630e/rt2x00/rt2x00dev.c:945:32: error: ‘IEEE80211_BAND_2GHZ’ undeclared (first use in this function)
  entry->band = channel <= 14 ? IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ;
                                ^
/home/karimlulu/Downloads/mt7630e/rt2x00/rt2x00dev.c:945:32: note: each undeclared identifier is reported only once for each function it appears in
/home/karimlulu/Downloads/mt7630e/rt2x00/rt2x00dev.c:945:54: error: ‘IEEE80211_BAND_5GHZ’ undeclared (first use in this function)
  entry->band = channel <= 14 ? IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ;
                                                      ^
/home/karimlulu/Downloads/mt7630e/rt2x00/rt2x00dev.c: In function ‘rt2x00lib_probe_hw_modes’:
/home/karimlulu/Downloads/mt7630e/rt2x00/rt2x00dev.c:1009:20: error: ‘IEEE80211_BAND_2GHZ’ undeclared (first use in this function)
   rt2x00dev->bands[IEEE80211_BAND_2GHZ].n_channels = 14;
                    ^
/home/karimlulu/Downloads/mt7630e/rt2x00/rt2x00dev.c:1025:20: error: ‘IEEE80211_BAND_5GHZ’ undeclared (first use in this function)
   rt2x00dev->bands[IEEE80211_BAND_5GHZ].n_channels =
                    ^
In file included from ./include/linux/linkage.h:4:0,
                 from ./include/linux/kernel.h:6,
                 from /home/karimlulu/Downloads/mt7630e/rt2x00/rt2x00dev.c:27:
/home/karimlulu/Downloads/mt7630e/rt2x00/rt2x00dev.c: In function ‘rt2x00lib_remove_hw’:
/home/karimlulu/Downloads/mt7630e/rt2x00/rt2x00dev.c:1050:41: error: ‘IEEE80211_BAND_2GHZ’ undeclared (first use in this function)
  if (likely(rt2x00dev->hw->wiphy->bands[IEEE80211_BAND_2GHZ])) {
                                         ^
./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
 # define likely(x) __builtin_expect(!!(x), 1)
                                        ^
/home/karimlulu/Downloads/mt7630e/rt2x00/rt2x00dev.c:1054:31: error: ‘IEEE80211_BAND_5GHZ’ undeclared (first use in this function)
   rt2x00dev->hw->wiphy->bands[IEEE80211_BAND_5GHZ] = NULL;
                               ^
scripts/Makefile.build:294: recipe for target '/home/karimlulu/Downloads/mt7630e/rt2x00/rt2x00dev.o' failed
make[2]: *** [/home/karimlulu/Downloads/mt7630e/rt2x00/rt2x00dev.o] Error 1
Makefile:1524: recipe for target '_module_/home/karimlulu/Downloads/mt7630e/rt2x00' failed
make[1]: *** [_module_/home/karimlulu/Downloads/mt7630e/rt2x00] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.10.0-42-generic'
Makefile:7: recipe for target 'all' failed
make: *** [all] Error 2