jurobystricky / Netgear-A6210

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

struct net_device’ has no member named ‘wireless_handlers #36

Open dbrazziel opened 7 years ago

dbrazziel commented 7 years ago

Build failure on kernel 4.7:

/opt/Netgear-WNDA3100v3/os/linux/../../os/linux/rt_main_dev.c: In function ‘rt28xx_open’: /opt/Netgear-WNDA3100v3/os/linux/../../os/linux/rt_main_dev.c:288:11: error: ‘struct net_device’ has no member named ‘wireless_handlers’; did you mean ‘rx_handler’? net_dev->wireless_handlers = (struct iw_handler_def *) &rt28xx_iw_handler_def;

mehlis commented 7 years ago

Support for Linux 4.7 was added with https://github.com/jurobystricky/Netgear-A6210/commit/f9266f154f24aa86b0a8cedcf6f65454579094dd . please retry.

lschneiderbauer commented 7 years ago

just tried with linux 4.9.16; similar error in ./os/linux/rt_linux.c:1420:11: error: 'struct net_device' has no member named 'wireless_handlers' pNetDev->wireless_handlers = pDevOpHook->iw_handler; (up to typos, since copied by hand)

lschneiderbauer commented 7 years ago

I fixed that error by enabling CONFIG_WIRELESS_EXT in the kernel. You cannot enable it directly though, you have to enable some wireless module which pulls CONFIG_WIRELESS_EXT in. The module compiles now.