Closed N46AN closed 3 years ago
Compiled my own 4.3.3 kernel and the problem is gone. Strange.
Linux debian 4.3.3 #1 SMP Tue Dec 29 07:18:47 UTC 2015 armv7l GNU/Linux
[ 111.807285] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 111.968831] usb 1-1: New USB device found, idVendor=148f, idProduct=760b
[ 111.975889] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 111.983422] usb 1-1: Product: 802.11 n WLAN
[ 111.987851] usb 1-1: Manufacturer: MediaTek
[ 111.992247] usb 1-1: SerialNumber: 1.0
[ 112.227260] usb 1-1: reset high-speed USB device number 2 using ehci-platform
[ 112.380288] mt7601u 1-1:1.0: ASIC revision: 76010001 MAC revision: 76010500
[ 112.393023] mt7601u 1-1:1.0: Firmware Version: 0.1.00 Build: 7640 Build time: 201302052146____
[ 112.793671] mt7601u 1-1:1.0: EEPROM ver:0c fae:00
[ 113.027347] usbcore: registered new interface driver mt7601u
it seems like me . just do as follow it works well for me on kali 2018.2 which kernel ver. >=4.15.* I repaire this on my pull request 。 or you can just add follow code to you proj in mt7601u.h。 //just for kali 2018.2 kernel version >4.2
and commit this code in usb.c 128 line. //mt7601u_vendor_request(dev, MT_VEND_DEV_MODE, USB_DIR_OUT,MT_VEND_DEV_MODE_RESET, 0, NULL, 0);
so enjoy. but the drive have a bug , it is not so good,so if you want a short delay in ping echo. if i have time,i will repaire it ,later.
The solution described here worked for me in Ubuntu 16.04 and 18.04: https://github.com/kuba-moo/mt7601u/issues/64#issuecomment-352250127
I will reference it here:
Originally written by ingate. Thanks to aleksander and Nidroide. Tested on Ubuntu 14.04 (kernel 4.4), Ubuntu 17.10 (kernel 4.13) and Ubuntu 18.04 (4.15.0-36-generic)
// ret = mt7601u_mcu_calibrate(dev, MCU_CAL_RXIQ, 0); // if (ret) // return ret; // ret = mt7601u_mcu_calibrate(dev, MCU_CAL_DPD, dev->dpd_temp); // if (ret) // return ret;
Find function mt7601u_phy_recalibrate_after_assoc and comment out call mt7601u_mcu_calibrate(dev, MCU_CAL_DPD, dev->curr_temp); like so:
void mt7601u_phy_recalibrate_after_assoc(struct mt7601u_dev *dev) { // mt7601u_mcu_calibrate(dev, MCU_CAL_DPD, dev->curr_temp);
mt7601u_rxdc_cal(dev);
}
With kernel 4.2, the whole system would freeze immediately as soon as there is any network transfer. Now I've upgraded to kernel 4.3.
OS - debian testing Device - 360 mini wifi gen 2 uname -a:
Linux localhost 4.3.0-1-amd64 #1 SMP Debian 4.3.3-2 (2015-12-17) x86_64 GNU/Linux
lsusb:(Bus 002 Device 003: ID 148f:760b Ralink Technology, Corp. MT7601U Wireless Adapter)
As soon as there is any network transfer, loads of warnings and errors flooded syslog. Sometimes there will be a whole system freeze. Complete log, from plugging in to failure: http://paste.ubuntu.com/14204379/