2

I'm trying to compile this driver for the TP-Link T2U usb WLAN adapter on Ubuntu 16.10. Trying to perform make command I get the following error:

    /home/iks/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/cfg80211.h:35:49: error: ‘IEEE80211_NUM_BANDS’ undeclared here (not in a function)
  struct ieee80211_supported_band Cfg80211_bands[IEEE80211_NUM_BANDS];

The solution from here contains exactly the same installation manual as in the repository and therefore doesn't help.

Could someone help me to solve this?

3

The circa-2013 driver file is too old for your 4.8.0-xx kernel, try this instead:

git clone https://github.com/ulli-kroll/mt7610u.git
cd mt7610u
make
sudo cp firmware/*  /lib/firmware
sudo insmod mt7610u.ko

Please tell us how it went as we will have additional steps.

  • Until make install everything was perfect. Install results in 'code No rule to make target 'install'. Stop. and modprobe: 'code FATAL: Module mt7610 not found in directory /lib/modules/4.8.0-32-generic' But somehow I see the MediaTek Wi-Fi device in the Network Manager, though it says "Device not ready" and its grayed out. – Ivan Kuznetsov Dec 28 '16 at 17:51
  • Please see my edit above in a few minutes. – chili555 Dec 28 '16 at 23:00
  • Here is the resultinsmod: ERROR: could not load module mt7610u: No such file or directory – Ivan Kuznetsov Dec 29 '16 at 7:50
  • Were you in the correct directory when you did the command: cd ~/mt7610u Check if the file is there: ls Now try to load it: sudo insmod mt7610u.ko – chili555 Dec 29 '16 at 14:47
  • ok, the problem was in the *.ko extension, I forgot to add it, I'm sorry. Now the insmod went without any output. – Ivan Kuznetsov Dec 29 '16 at 16:08

Not the answer you're looking for? Browse other questions tagged or ask your own question.