rtlwifi-linux / rtlwifi-next

GNU General Public License v2.0
69 stars 40 forks source link

make error happened in ubuntu 16.04 #8

Open wdc596933938 opened 6 years ago

wdc596933938 commented 6 years ago

make -C /lib/modules/4.4.0-21-generic/build M=/home/diablo/rtlwifi-next modules make[1]: Entering directory '/usr/src/linux-headers-4.4.0-21-generic' CC [M] /home/diablo/rtlwifi-next/base.o In file included from /home/diablo/rtlwifi-next/base.c:26:0: /home/diablo/rtlwifi-next/wifi.h:1434:40: error: ‘NUM_NL80211_BANDS’ undeclared here (not in a function) struct ieee80211_supported_band bands[NUM_NL80211_BANDS]; ^ /home/diablo/rtlwifi-next/base.c: In function ‘rtlwifi_rate_mapping’: /home/diablo/rtlwifi-next/base.c:1056:25: warning: comparison between ‘enum nl80211_band’ and ‘enum ieee80211_band’ [-Wenum-compare] if (NL80211_BAND_2GHZ == hw->conf.chandef.chan->band) { ^ scripts/Makefile.build:258: recipe for target '/home/diablo/rtlwifi-next/base.o' failed make[2]: [/home/diablo/rtlwifi-next/base.o] Error 1 Makefile:1396: recipe for target 'module/home/diablo/rtlwifi-next' failed make[1]: [module/home/diablo/rtlwifi-next] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-21-generic' Makefile:100: recipe for target 'all' failed make: *** [all] Error 2

jerome-micucci commented 6 years ago

Anwser here : https://ubuntuforums.org/showthread.php?t=2364383&page=3&p=13715520#post13715520 (from original post in french https://forum.ubuntu-fr.org/viewtopic.php?pid=21831064#p21831064)