lukesky@lukesky-X550CL:~$ sudo apt-get install git
[sudo] password di lukesky:
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
git is already the newest version (1:2.9.3-1).
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.
lukesky@lukesky-X550CL:~$ git clone https://github.com/kuba-moo/mt7630e
Cloning into 'mt7630e'...
remote: Counting objects: 233, done.
remote: Total 233 (delta 0), reused 0 (delta 0), pack-reused 233
Ricezione degli oggetti: 100% (233/233), 577.72 KiB | 169.00 KiB/s, done.
Risoluzione dei delta: 100% (129/129), done.
Checking connectivity... fatto.
lukesky@lukesky-X550CL:~$ cd mt7630e
lukesky@lukesky-X550CL:~/mt7630e$ make
make -C /lib/modules/`uname -r`/build M=/home/lukesky/mt7630e/rt2x00 modules
make[1]: ingresso nella directory "/usr/src/linux-headers-4.8.0-32-generic"
CC [M] /home/lukesky/mt7630e/rt2x00/rt2x00dev.o
In file included from /home/lukesky/mt7630e/rt2x00/rt2x00dev.c:32:0:
/home/lukesky/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/lukesky/mt7630e/rt2x00/rt2x00.h:2167:22: error: field ‘curr_band’ has incomplete type
enum ieee80211_band curr_band;
^~~~~~~~~
/home/lukesky/mt7630e/rt2x00/rt2x00dev.c: In function ‘rt2x00lib_channel’:
/home/lukesky/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/lukesky/mt7630e/rt2x00/rt2x00dev.c:945:32: note: each undeclared identifier is reported only once for each function it appears in
/home/lukesky/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/lukesky/mt7630e/rt2x00/rt2x00dev.c: In function ‘rt2x00lib_probe_hw_modes’:
/home/lukesky/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/lukesky/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/lukesky/mt7630e/rt2x00/rt2x00dev.c:27:
/home/lukesky/mt7630e/rt2x00/rt2x00dev.c: In function ‘rt2x00lib_remove_hw’:
/home/lukesky/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/lukesky/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: set di istruzioni per l'obiettivo "/home/lukesky/mt7630e/rt2x00/rt2x00dev.o" non riuscito
make[2]: *** [/home/lukesky/mt7630e/rt2x00/rt2x00dev.o] Errore 1
Makefile:1491: set di istruzioni per l'obiettivo "_module_/home/lukesky/mt7630e/rt2x00" non riuscito
make[1]: *** [_module_/home/lukesky/mt7630e/rt2x00] Errore 2
make[1]: uscita dalla directory "/usr/src/linux-headers-4.8.0-32-generic"
Makefile:7: set di istruzioni per l'obiettivo "all" non riuscito
make: *** [all] Errore 2
lukesky@lukesky-X550CL:~/mt7630e$ sudo apt-get install git