Closed Pilleo closed 7 years ago
Am I the only one with that issue?
Check if Wifi is locked and unblock it
sudo rfkill list # for info
sudo rfkill unblock all # if blocks exist
It listed only bluetooth that does not work also, nothing about wifi. Bluetooth was not blocked. Smth interesting form dmesg
[ 17.652947] ieee80211 phy0: rt2x00lib_probe_dev: Error - Failed to initialize hw [ 17.653037] mt7630e: probe of 0000:08:00.0 failed with error -22
On Wed, Feb 22, 2017 at 3:33 PM, Juan Cuzmar notifications@github.com wrote:
Check if Wifi is locked and unblock it
sudo rfkill list # for info sudo rfkill unblock all # if blocks exist
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/neurobin/MT7630E/issues/58#issuecomment-281656887, or mute the thread https://github.com/notifications/unsubscribe-auth/AJm4RAXLO_8bPLhly7PNYUNt-re2mJaxks5rfCsbgaJpZM4MGjvq .
-- С уважением, Леонид. 8-029-766-73-70 (набирать с кодом)
dmesg right after installation on xanmod 4.10 kernel
mt7630e: loading out-of-tree module taints kernel. [ 198.431640] mt7630e: module verification failed: signature and/or required key missing - tainting kernel [ 198.445580] ==>MT76x0_WLAN_ChipOnOff(): OnOff:1 pAd->WlanFunCtrl.word = 0x0, Reg-WlanFunCtrl=0xffff0143 [ 198.445581] WlanFunCtrl.word = 0xffff0143 [ 198.445638] MACVersion = 0x76502000 [ 198.445645] <== MT76x0_WLAN_ChipOnOff(): pAd->WlanFunCtrl.word = 0xffff0143, Reg->WlanFunCtrl=0xffff0143! [ 198.445653] MAC_version=0x76300002 [ 198.445656] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 7630, rev 0002 detected [ 198.447652] MAC: fc:4d:d4:4f:d9:1e [ 198.447656] MAC_version=0x76300002 [ 198.447657] RFIC =0x7630 [ 198.447660] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 7630 detected [ 198.447660] rt2x00dev->chip.rt = 0x7630 [ 198.447661] rt2x00dev->chip.rf = 0x7630 [ 198.447669] ------------[ cut here ]------------ [ 198.447699] WARNING: CPU: 2 PID: 15846 at net/wireless/core.c:633 wiphy_register+0x4b3/0x9a0 [cfg80211] [ 198.447700] Modules linked in: mt7630e(OE+) mac80211 cfg80211 eeprom_93cx6 msr xt_CHECKSUM iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack libcrc32c xt_tcpudp bridge stp llc iptable_filter bnep binfmt_misc nls_iso8859_1 intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel uvcvideo rtsx_pci_sdmmc rtsx_pci_ms pcbc memstick snd_hda_codec_hdmi aesni_intel aes_x86_64 hp_wmi sparse_keymap snd_hda_codec_realtek crypto_simd snd_hda_codec_generic hid_generic joydev usbhid hid glue_helper snd_hda_intel snd_hda_codec videobuf2_vmalloc cryptd snd_hda_core intel_cstate videobuf2_memops intel_rapl_perf videobuf2_v4l2 videobuf2_core videodev media snd_hwdep [ 198.447757] snd_pcm snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device r8169 snd_timer psmouse rtsx_pci snd mei_me hp_accel lpc_ich lis3lv02d input_polldev mii shpchp soundcore mei hp_wireless fjes parport_pc ppdev lp parport ip_tables x_tables autofs4 btusb btrtl btbcm btintel bluetooth amdgpu amdkfd amd_iommu_v2 radeon i915 ttm i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm input_leds ahci serio_raw libahci wmi video mac_hid [ 198.447807] CPU: 2 PID: 15846 Comm: modprobe Tainted: G OE 4.10.0-xanmod1 #2 [ 198.447808] Hardware name: Hewlett-Packard HP Pavilion 15 Notebook PC/2164, BIOS F.70 07/18/2016 [ 198.447809] Call Trace: [ 198.447816] dump_stack+0x65/0x83 [ 198.447821] __warn+0xcb/0x100 [ 198.447824] warn_slowpath_null+0x1d/0x20 [ 198.447840] wiphy_register+0x4b3/0x9a0 [cfg80211] [ 198.447844] ? vprintk_default+0x29/0x60 [ 198.447847] ? printk+0x57/0x73 [ 198.447850] ? __kmalloc+0x17d/0x200 [ 198.447876] ? ieee80211_register_hw+0x26e/0xb20 [mac80211] [ 198.447891] ieee80211_register_hw+0x3ec/0xb20 [mac80211] [ 198.447902] rt2x00lib_probe_dev+0x632/0x820 [mt7630e] [ 198.447911] rt2x00pci_probe+0x1c6/0x3a0 [mt7630e] [ 198.447919] rt2800pci_probe+0x15/0x20 [mt7630e] [ 198.447923] local_pci_probe+0x45/0xa0 [ 198.447925] ? pci_match_device+0xca/0x120 [ 198.447928] pci_device_probe+0x109/0x160 [ 198.447932] ? preempt_count_add+0xa8/0xc0 [ 198.447936] driver_probe_device+0x2bb/0x460 [ 198.447939] __driver_attach+0xdf/0x100 [ 198.447942] ? driver_probe_device+0x460/0x460 [ 198.447944] bus_for_each_dev+0x6c/0xc0 [ 198.447947] driver_attach+0x1e/0x20 [ 198.447950] bus_add_driver+0x170/0x280 [ 198.447952] driver_register+0x60/0xe0 [ 198.447954] ? 0xffffffffc0eb6000 [ 198.447957] __pci_register_driver+0x4c/0x60 [ 198.447964] rt2800pci_init+0x1e/0x1000 [mt7630e] [ 198.447967] do_one_initcall+0x52/0x1a0 [ 198.447970] ? kmem_cache_alloc_trace+0xe7/0x1c0 [ 198.447973] do_init_module+0x5f/0x200 [ 198.447976] load_module+0x267c/0x2a20 [ 198.447979] ? __symbol_put+0xa0/0xa0 [ 198.447982] ? ima_post_read_file+0x7e/0xa0 [ 198.447986] ? security_kernel_post_read_file+0x6b/0x80 [ 198.447989] SYSC_finit_module+0xdf/0x120 [ 198.447993] SyS_finit_module+0xe/0x20 [ 198.447996] entry_SYSCALL_64_fastpath+0x1e/0xad [ 198.447998] RIP: 0033:0x7fdb5d5b7d79 [ 198.448000] RSP: 002b:00007ffe784d5478 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 198.448002] RAX: ffffffffffffffda RBX: 00007ffe784d34c0 RCX: 00007fdb5d5b7d79 [ 198.448005] RDX: 0000000000000000 RSI: 000055c70b173f8b RDI: 0000000000000006 [ 198.448006] RBP: 00007ffe784d34c0 R08: 0000000000000000 R09: 0000000000000000 [ 198.448007] R10: 0000000000000006 R11: 0000000000000246 R12: 000055c70d319010 [ 198.448008] R13: 00007ffe784d34b8 R14: 0000000000000000 R15: 0000000000000000 [ 198.448011] ---[ end trace d735135044dc88c0 ]--- [ 198.448014] ieee80211 phy0: rt2x00lib_probe_dev: Error - Failed to initialize hw [ 198.448129] mt7630e: probe of 0000:08:00.0 failed with error -22 [ 198.449898] usbcore: registered new interface driver mtk_bt_loader
Another thing. There is a led that is white if wifi is on. On previous kernels it was always red before installation of drivers, and becomes white during successful installation. Now it is white all the time almost right after the kernel starts booting, but it does not work.
from gentoo : r8169 0000:03:00.2 enp3s0f2: renamed from eth0 [ 9.472482] ==>MT76x0_WLAN_ChipOnOff(): OnOff:1 pAd->WlanFunCtrl.word = 0x0, Reg-WlanFunCtrl=0xffff0143 [ 9.472483] WlanFunCtrl.word = 0xffff0143 [ 9.472537] MACVersion = 0x76502000 [ 9.472546] <== MT76x0_WLAN_ChipOnOff(): pAd->WlanFunCtrl.word = 0xffff0143, Reg->WlanFunCtrl=0xffff0143! [ 9.472559] MAC_version=0x76300002 [ 9.472568] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 7630, rev 0002 detected [ 9.474596] MAC: 54:35:30:bc:3f:2d [ 9.474601] MAC_version=0x76300002 [ 9.474601] RFIC =0x7630 [ 9.474603] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 7630 detected [ 9.474604] rt2x00dev->chip.rt = 0x7630 [ 9.474604] rt2x00dev->chip.rf = 0x7630 [ 9.474612] ------------[ cut here ]------------ [ 9.474617] WARNING: CPU: 2 PID: 681 at net/wireless/core.c:633 wiphy_register+0x49a/0x900 [ 9.474617] Modules linked in: mt7630e(O+) eeprom_93cx6 mt76xx(O) [ 9.474623] CPU: 2 PID: 681 Comm: udevd Tainted: G O 4.10.0-gentoo-krnlschd #1 [ 9.474625] Hardware name: ASUSTeK COMPUTER INC. X550CA/X550CA, BIOS X550CA.300 03/24/2014 [ 9.474625] Call Trace: [ 9.474630] ? dump_stack+0x46/0x5d [ 9.474633] ? warn+0xb4/0xd0 [ 9.474634] ? wiphy_register+0x49a/0x900 [ 9.474638] ? printk+0x43/0x4b [ 9.474639] ? __kmalloc+0xd9/0xe0 [ 9.474643] ? ieee80211_register_hw+0x3d2/0xa90 [ 9.474651] ? rt2x00lib_probe_dev+0x636/0x7e0 [mt7630e] [ 9.474658] ? rt2x00pci_probe+0x1a0/0x360 [mt7630e] [ 9.474660] ? pci_device_probe+0x7c/0xe0 [ 9.474663] ? driver_probe_device+0x1f7/0x2d0 [ 9.474665] ? driver_attach+0x8f/0xa0 [ 9.474668] ? driver_probe_device+0x2d0/0x2d0 [ 9.474670] ? bus_for_each_dev+0x55/0x90 [ 9.474672] ? bus_add_driver+0x19a/0x210 [ 9.474673] ? 0xffffffffa0031000 [ 9.474675] ? driver_register+0x52/0xc0 [ 9.474676] ? 0xffffffffa0031000 [ 9.474678] ? do_one_initcall+0x39/0x170 [ 9.474682] ? free_vmap_area_noflush+0x33/0x70 [ 9.474684] ? do_init_module+0x51/0x1c2 [ 9.474686] ? load_module+0x1d8f/0x2210 [ 9.474688] ? find_symbol_in_section+0xa0/0xa0 [ 9.474690] ? finish_open+0x21/0x30 [ 9.474692] ? SyS_finit_module+0xa3/0xb0 [ 9.474695] ? entry_SYSCALL_64_fastpath+0x17/0x98 [ 9.474696] ---[ end trace 2ca37efc4c3928a3 ]--- [ 9.474698] ieee80211 phy0: rt2x00lib_probe_dev: Error - Failed to initialize hw [ 9.474782] mt7630e: probe of 0000:02:00.0 failed with error -22 [ 10.795908] random: crng init done
@neurobin, are you going to look into that issue? If not, than i have to look for a new wifi now. Thank you.
@Pilleo , I am not getting enough time now. Getting a new wifi card is always recommended, this device really sucks...
@neurobin , thank you for your answer and work! Maybe you could give some advice on a new wifi card?
@Pilleo , You can ask on forums like ubuntuforums, forums.linuxmint.com to find out what works best.
This bug is due to the WDS being obsoleted. Patch is simple:
--- rt2x00dev.c.orig 2017-03-10 12:58:16.719971627 +0300
+++ rt2x00dev.c 2017-03-10 12:56:03.099973651 +0300
@@ -1494,11 +1494,13 @@
if (rt2x00dev->ops->bcn->entry_num > 0)
rt2x00dev->hw->wiphy->interface_modes |=
BIT(NL80211_IFTYPE_ADHOC) |
- BIT(NL80211_IFTYPE_AP) |
#ifdef CONFIG_MAC80211_MESH
BIT(NL80211_IFTYPE_MESH_POINT) |
#endif
- BIT(NL80211_IFTYPE_WDS);
+#ifdef CONFIG_WIRELESS_WDS
+ BIT(NL80211_IFTYPE_WDS) |
+#endif
+ BIT(NL80211_IFTYPE_AP);
rt2x00dev->hw->wiphy->flags |= WIPHY_FLAG_IBSS_RSN;
@apr456 , it works, thank you so much!
sorry but which file did you modify?
sorry but which file did you modify?
rt2x00dev.c
thanks i m going to try it tomorrow and tell you what.
sorry i m' not used to your writings since in github it s a + or - for each line that you want to modify. so do you want to say that we have
- if (rt2x00dev->ops->bcn->entry_num > 0)
- rt2x00dev->hw->wiphy->interface_modes |=
- BIT(NL80211_IFTYPE_ADHOC) |
- BIT(NL80211_IFTYPE_AP) |
- #ifdef CONFIG_MAC80211_MESH
- BIT(NL80211_IFTYPE_MESH_POINT) |
- #endif
- BIT(NL80211_IFTYPE_WDS);
+ #ifdef CONFIG_WIRELESS_WDS
+ BIT(NL80211_IFTYPE_WDS) |
+ #endif
+ BIT(NL80211_IFTYPE_AP);
+ rt2x00dev->hw->wiphy->flags |= WIPHY_FLAG_IBSS_RSN;
? again sorry for my noobiness...
I have done this and it works. I am a noob too.
if (rt2x00dev->ops->bcn->entry_num > 0) rt2x00dev->hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_ADHOC) | // BIT(NL80211_IFTYPE_AP) |
ifdef CONFIG_MAC80211_MESH
BIT(NL80211_IFTYPE_MESH_POINT) |
endif
// BIT(NL80211_IFTYPE_WDS);
ifdef CONFIG_WIRELESS_WDS
BIT(NL80211_IFTYPE_WDS) |
endif
BIT(NL80211_IFTYPE_AP); rt2x00dev->hw->wiphy->flags |= WIPHY_FLAG_IBSS_RSN;
@apr456 , can you please merge it?
It didn' t world for me on Kernel on 16.10 Ubuntu. Andy ideas why ? It is like the driver is not even loaded. How can I diagnostic that ? I don't have any error with make or make install.
Just tonne sure that I ce done the good notifications, can someone fork this ?
like I said it doesn't give any error at installation but it is like I would not have any wifi device . So i was thinking that maybe it s a problem with the version of the device:
I will send another photo if I find the lines with the error at boot for the drivers if there are any.
oups maybe it s the bluethooth device, i will send another photo with the line of the wifi device.
@boistordu
Check if Wifi is locked and unblock it
sudo rfkill list # for info sudo rfkill unblock all # if blocks exist
Okay So it Says no but at least with your trick I know what the Keys does. So at least I have that figured out.
But anyway I have first another problem, because I don't have another problem because I'm not under the impression that I have the whole dmesg on Ubuntu 16.10 so I need to figure that out first then I will be able to see the line with the wifi peripherals because at this Time I don't see it for the moment.
@apr456 sorry, it doesn't work for fedora 25 (kernel: 4.10.5-200.fc25.x86_64)
Works fine for me on Fedora 4.10.8-200.fc25.x86_64
@mateuszneumann : can you make a PR with it ? or maybe @neurobin apply the patch ?
@apr456 thank you 🥇
it works, thank you so much!
I had ubuntu 17.4 and your patch fixed my case
After classic, dkms installation and reboot wifi does not work. Thank you.