jurobystricky / Netgear-A6210

AC1200 High Gain WiFi USB Adapter Linux kernel driver
292 stars 155 forks source link

Compilation error: too many arguments to function cfg80211_rx_mgmt #87

Open tomsux opened 6 years ago

tomsux commented 6 years ago

Hi, I try to compile this on centos6.8(3.10). I have this error. Can you help me ?

export DBGFLAGS

*** Building driver with debug messages ***

cp -f os/linux/Makefile.6 /home/tom/a6210/Netgear-A6210-master/os/linux/Makefile
make -C /lib/modules/3.10.108-1.el6.elrepo.i686/build DBGFLAGS=-DDBG SUBDIRS=/home/tom/a6210/Netgear-A6210-master/os/linux modules
make[1]: Entering directory `/usr/src/kernels/3.10.108-1.el6.elrepo.i686'
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../sta/assoc.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../sta/auth.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../sta/auth_rsp.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../sta/sync.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../sta/sanity.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../sta/rtmp_data.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../sta/connect.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../sta/wpa.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../sta/sta_cfg.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../sta/sta.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../os/linux/sta_ioctl.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../mgmt/mgmt_vht.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/vht.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/crypt_md5.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/crypt_sha2.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/crypt_hmac.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/crypt_aes.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/crypt_arc4.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/mlme.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/cmm_wep.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/action.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/cmm_data.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/rtmp_init.o
/home/tom/a6210/Netgear-A6210-master/os/linux/../../common/rtmp_init.c: In function ‘RTMPAllocAdapterBlock’:
/home/tom/a6210/Netgear-A6210-master/os/linux/../../common/rtmp_init.c:106: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘unsigned int’
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/rtmp_init_inf.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/cmm_tkip.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/cmm_aes.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/cmm_sync.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/eeprom.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/cmm_sanity.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/cmm_info.o
/home/tom/a6210/Netgear-A6210-master/os/linux/../../common/cmm_info.c: In function ‘set_rf’:
/home/tom/a6210/Netgear-A6210-master/os/linux/../../common/cmm_info.c:7094: warning: ‘ret’ may be used uninitialized in this function
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/cmm_cfg.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/cmm_wpa.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/cmm_radar.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/spectrum.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/rtmp_timer.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/rt_channel.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/cmm_profile.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/cmm_asic.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/scan.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/cmm_cmd.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/ps.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/sys_log.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/txpower.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../rate_ctrl/ra_ctrl.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../rate_ctrl/alg_legacy.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../rate_ctrl/alg_ags.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../chips/rtmp_chip.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../mgmt/mgmt_entrytb.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../tx_rx/wdev_tx.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../os/linux/rt_profile.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../phy/phy.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../phy/rf.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../phy/rlt_phy.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../mac/rtmp_mac.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../mac/ral_nmac.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../rate_ctrl/alg_grp.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/ba_action.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../mgmt/mgmt_ht.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/cmm_txbf.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/cmm_txbf_cal.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../common/rt_os_util.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../os/linux/rt_linux.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../os/linux/rt_main_dev.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../ate/common/rt_ate.o
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../os/linux/cfg80211/cfg80211.o
/home/tom/a6210/Netgear-A6210-master/os/linux/../../os/linux/cfg80211/cfg80211.c: In function ‘CFG80211_OpsMgmtTx’:
/home/tom/a6210/Netgear-A6210-master/os/linux/../../os/linux/cfg80211/cfg80211.c:1822: warning: passing argument 3 of ‘RTMP_COM_IoctlHandle’ discards qualifiers from pointer target type
/home/tom/a6210/Netgear-A6210-master/include/rtmp.h:6247: note: expected ‘void *’ but argument is of type ‘const u8 *’
/home/tom/a6210/Netgear-A6210-master/os/linux/../../os/linux/cfg80211/cfg80211.c: At top level:
/home/tom/a6210/Netgear-A6210-master/os/linux/../../os/linux/cfg80211/cfg80211.c:2420: warning: initialization from incompatible pointer type
  CC [M]  /home/tom/a6210/Netgear-A6210-master/os/linux/../../os/linux/cfg80211/cfg80211_util.o
/home/tom/a6210/Netgear-A6210-master/os/linux/../../os/linux/cfg80211/cfg80211_util.c: In function ‘CFG80211OS_RxMgmt’:
/home/tom/a6210/Netgear-A6210-master/os/linux/../../os/linux/cfg80211/cfg80211_util.c:954: error: too many arguments to function ‘cfg80211_rx_mgmt’
make[2]: *** [/home/tom/a6210/Netgear-A6210-master/os/linux/../../os/linux/cfg80211/cfg80211_util.o] Error 1
make[1]: *** [_module_/home/tom/a6210/Netgear-A6210-master/os/linux] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.10.108-1.el6.elrepo.i686'
make: *** [debug] Error 2