kuba-moo / mt7601u

Linux mac80211-based driver for Mediatek MT7601U USB bgn WiFi dongle
284 stars 111 forks source link

Android Kernel Crash #91

Closed rustzz closed 3 years ago

rustzz commented 3 years ago

I manually compiled the kernel with the MT7601U module. I connect the adapter, work with it, disconnect it and the smartphone goes into a hard restart. /proc/kmsg: https://pastebin.com/6abgZDjB Kernel [v4.9.112]: https://github.com/nikp123/Xiaomi_Kernel_OpenSource/tree/pine64-p-oss

Maybe it null-pointer: https://forum.keenetic.net/topic/4121-unable-to-handle-kernel-paging-request-at-virtual-address-00000000/

kuba-moo commented 3 years ago

It crashed in:

PC is at hdd_netdev_notifier_call+0x74/0x11c [wlan]

That must be some Android thing, I don't see this function in the upstream kernel.

rustzz commented 3 years ago

https://github.com/torvalds/linux/commit/0acb20a5438c36e0cf2b8bf255f314b59fcca6ef https://bugzilla.kernel.org/show_bug.cgi?id=210857

I found a discussion of the problem on the forum. the fix was attached in new versions, now I will compile the kernel with the change and give an answer