You are not logged in.

#1 2017-01-15 22:11:54

planthony
Member
Registered: 2017-01-15
Posts: 1

Disable power management on Netgear wifi dongle

Using ndiswrapper to install drivers for Netgear WNDA3100v2 usb wireless network dongle.

After running:

modprobe ndiswrapper

there is a kernel oops. In dmesg it states the usb interface does not support power management and its unable to handle a kernel null pointer dereference:

ndiswrapper (mp_set_power_state:368): enp0s26u1u6 does not support power management; halting the device
BUG: unable to handle kernel NULL pointer dereference at 0000000000000017

I'm assuming this has something to do with the power management setting, everything that I have seen about disabling power saving for the device is through iwconfig. My problem is that this usb device does not show up in iwconfig until I run modprobe, so it's a bit of a catch-22 since I cannot disable the power saving option until I have loaded the kernel module, but that is where the power saving mode is preventing the module from being loaded.

Here is the full dmesg dump directly after the modprobe call:

[   58.265160] ndiswrapper: loading out-of-tree module taints kernel.
[   58.265339] Disabling lock debugging due to kernel taint
[   58.265340] ndiswrapper: module license taints kernel.
[   58.266472] ndiswrapper version 1.60 loaded (smp=yes, preempt=yes)
[   58.383128] usb 1-1.6: reset high-speed USB device number 4 using ehci-pci
[   58.508486] ndiswrapper: driver bcmn43xx64 (,08/26/2009, 5.10.79.30) loaded
[   59.062217] wlan0: ethernet device c4:3d:c7:c1:42:89 using NDIS driver: bcmn43xx64, version: 0x50a4f1e, NDIS version: 0x501, vendor: 'NDIS Network Adapter', 0846:9011.F.conf
[   59.065042] wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2-PSK; AES/CCMP with WPA, WPA2, WPA2-PSK
[   59.066013] usbcore: registered new interface driver ndiswrapper
[   59.075210] ndiswrapper 1-1.6:1.0 enp0s26u1u6: renamed from wlan0
[   59.113346] ndiswrapper: interface renamed to 'enp0s26u1u6'
[   59.117003] IPv6: ADDRCONF(NETDEV_UP): enp0s26u1u6: link is not ready
[   59.117227] IPv6: ADDRCONF(NETDEV_UP): enp0s26u1u6: link is not ready
[   59.119251] ndiswrapper (mp_set_power_state:368): enp0s26u1u6 does not support power management; halting the device
[   59.681769] BUG: unable to handle kernel NULL pointer dereference at 0000000000000017
[   59.681849] IP: [<ffffc900027f295f>] 0xffffc900027f295f
[   59.681898] PGD 114989067 PUD 113a2a067 PMD 0 
[   59.681949] Oops: 0000 [#1] PREEMPT SMP
[   59.681983] Modules linked in: ndiswrapper(O) amdkfd amd_iommu_v2 radeon ttm drm_kms_helper intel_powerclamp coretemp drm syscopyarea sysfillrect sysimgblt fb_sys_fops cfg80211 hp_wmi i2c_algo_bit gpio_ich ppdev iTCO_wdt iTCO_vendor_support mei_wdt kvm sparse_keymap rfkill joydev mousedev tpm_infineon acpi_cpufreq snd_hda_codec_realtek snd_hda_codec_generic evdev input_leds led_class mac_hid shpchp irqbypass snd_hda_intel crc32c_intel snd_hda_codec snd_hda_core intel_cstate snd_hwdep mei_me mei psmouse snd_pcm snd_timer snd e1000e fjes parport_pc parport i7core_edac edac_core button soundcore wmi ptp pps_core lpc_ich tpm_tis tpm_tis_core tpm sch_fq_codel ip_tables x_tables ext4 crc16 jbd2 fscrypto mbcache hid_logitech_hidpp hid_generic hid_logitech_dj usbhid hid sr_mod cdrom sd_mod serio_raw atkbd
[   59.682812]  libps2 ahci libahci libata ehci_pci ehci_hcd scsi_mod usbcore usb_common i8042 serio
[   59.682912] CPU: 4 PID: 310 Comm: NetworkManager Tainted: P           O    4.8.13-1-ARCH #1
[   59.682977] Hardware name: Hewlett-Packard HP Compaq 8100 Elite SFF PC/304Ah, BIOS 786H1 v01.05 06/09/2010
[   59.683053] task: ffff880119364e00 task.stack: ffff880114ab4000
[   59.683100] RIP: 0010:[<ffffc900027f295f>]  [<ffffc900027f295f>] 0xffffc900027f295f
[   59.683165] RSP: 0018:ffff880114ab72e0  EFLAGS: 00010202
[   59.683209] RAX: 0000000018b9de10 RBX: ffff8801180cf000 RCX: 0000000000000000
[   59.683265] RDX: 0000000000000001 RSI: 0000000018b9de10 RDI: 0000000000000010
[   59.683322] RBP: ffff880112501c00 R08: 0000000000000000 R09: 0000000000000001
[   59.683378] R10: 0000000de54f3078 R11: ffff880114ab72c0 R12: 0000000000000000
[   59.683434] R13: 0000000000000000 R14: ffff880118b85f00 R15: ffff880118b9de10
[   59.683491] FS:  00007f997f945580(0000) GS:ffff88011fd00000(0000) knlGS:0000000000000000
[   59.683555] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   59.683601] CR2: 0000000000000017 CR3: 000000011a235000 CR4: 00000000000006e0
[   59.683657] Stack:
[   59.683675]  0000000000000010 ffff8801180cf000 ffff880112501c00 0000000018b9de10
[   59.683747]  0000000000000000 ffffc900027f6800 c0006000000b0088 ffff8801180cf000
[   59.683818]  ffffc9000286a9b0 ffffc9000286a7c0 000000000286a5d7 0000000000000010
[   59.683889] Call Trace:
[   59.683935]  [<ffffffffa05c80d7>] ? ExAllocatePoolWithTag+0x37/0x50 [ndiswrapper]
[   59.684011]  [<ffffffffa05c80d7>] ? ExAllocatePoolWithTag+0x37/0x50 [ndiswrapper]
[   59.684082]  [<ffffffffa05c1126>] ? NdisAllocateMemoryWithTag+0x16/0x30 [ndiswrapper]
[   59.684163]  [<ffffffffa05d8abb>] ? win2lin_NdisAllocateMemoryWithTag_3+0x1b/0x30 [ndiswrapper]
[   59.684251]  [<ffffffffa05d8abb>] ? win2lin_NdisAllocateMemoryWithTag_3+0x1b/0x30 [ndiswrapper]
[   59.684336]  [<ffffffffa05c80d7>] ? ExAllocatePoolWithTag+0x37/0x50 [ndiswrapper]
[   59.684412]  [<ffffffffa05c80d7>] ? ExAllocatePoolWithTag+0x37/0x50 [ndiswrapper]
[   59.684490]  [<ffffffffa05d8abb>] ? win2lin_NdisAllocateMemoryWithTag_3+0x1b/0x30 [ndiswrapper]
[   59.684569]  [<ffffffffa05dc872>] ? lin2win6+0x22/0x28 [ndiswrapper]
[   59.684640]  [<ffffffffa05d1c29>] ? mp_halt+0xf9/0x1b0 [ndiswrapper]
[   59.684710]  [<ffffffffa05d390c>] ? mp_init+0x7c/0x260 [ndiswrapper]
[   59.684780]  [<ffffffffa05d1c4d>] ? mp_halt+0x11d/0x1b0 [ndiswrapper]
[   59.684851]  [<ffffffffa05d503f>] ? mp_set_power_state+0x24f/0x390 [ndiswrapper]
[   59.684929]  [<ffffffffa05d51e1>] ? ndis_reinit+0x31/0x90 [ndiswrapper]
[   59.685002]  [<ffffffffa05d5376>] ? ndis_set_mac_address+0x136/0x1d0 [ndiswrapper]
[   59.685065]  [<ffffffff814e1935>] ? dev_set_mac_address+0x55/0xc0
[   59.687895]  [<ffffffff814f6c77>] ? do_setlink+0x227/0xcc0
[   59.690746]  [<ffffffff8132c100>] ? __nla_put+0x20/0x30
[   59.693575]  [<ffffffff815f7ca0>] ? _raw_read_unlock_bh+0x20/0x30
[   59.696435]  [<ffffffff8132bfc1>] ? __nla_reserve+0x41/0x50
[   59.699313]  [<ffffffff8132bfc1>] ? __nla_reserve+0x41/0x50
[   59.702197]  [<ffffffff8132c100>] ? __nla_put+0x20/0x30
[   59.705097]  [<ffffffff8132be06>] ? nla_parse+0xa6/0x120
[   59.708023]  [<ffffffff814f9646>] ? rtnl_newlink+0x5c6/0x860
[   59.711076]  [<ffffffff812b3c00>] ? security_capset+0x10/0x80
[   59.714029]  [<ffffffff81085f98>] ? ns_capable_common+0x68/0x80
[   59.716981]  [<ffffffff81085fc3>] ? ns_capable+0x13/0x20
[   59.719909]  [<ffffffff814f99c6>] ? rtnetlink_rcv_msg+0xe6/0x210
[   59.722835]  [<ffffffff811e5565>] ? __kmalloc_node_track_caller+0x35/0x2c0
[   59.725780]  [<ffffffff814d3d36>] ? __skb_try_recv_datagram+0x1f6/0x2a0
[   59.728742]  [<ffffffff814ce697>] ? __alloc_skb+0x87/0x1e0
[   59.731713]  [<ffffffff814f98e0>] ? rtnl_newlink+0x860/0x860
[   59.734686]  [<ffffffff81519324>] ? netlink_rcv_skb+0xa4/0xc0
[   59.737657]  [<ffffffff814f62d8>] ? rtnetlink_rcv+0x28/0x30
[   59.740612]  [<ffffffff81518c0c>] ? netlink_unicast+0x17c/0x240
[   59.743617]  [<ffffffff815190e8>] ? netlink_sendmsg+0x348/0x3b0
[   59.746567]  [<ffffffff814c4307>] ? sock_sendmsg+0x17/0x30
[   59.749524]  [<ffffffff814c4aad>] ? ___sys_sendmsg+0x2cd/0x2e0
[   59.752491]  [<ffffffff81305ee2>] ? memzero_explicit+0x12/0x20
[   59.755470]  [<ffffffff81415d0d>] ? urandom_read+0x13d/0x2a0
[   59.758452]  [<ffffffff81227567>] ? __fget+0x77/0xb0
[   59.761398]  [<ffffffff81227605>] ? __fget_light+0x25/0x60
[   59.764317]  [<ffffffff814c5c04>] ? __sys_sendmsg+0x54/0x90
[   59.767231]  [<ffffffff814c5c52>] ? SyS_sendmsg+0x12/0x20
[   59.770139]  [<ffffffff815f8032>] ? entry_SYSCALL_64_fastpath+0x1a/0xa4
[   59.772941] Code: 88 00 44 89 64 24 54 48 89 44 24 58 c6 84 24 b3 00 00 00 02 c6 84 24 b2 00 00 00 00 e8 43 07 00 00 85 c0 8b f0 78 1a 48 89 7b 50 <8a> 47 07 48 8b d7 c0 e8 05 48 8b cb 24 01 88 43 48 e8 3f 00 00 
[   59.776129] RIP  [<ffffc900027f295f>] 0xffffc900027f295f
[   59.778997]  RSP <ffff880114ab72e0>
[   59.781736] CR2: 0000000000000017
[   59.803713] ---[ end trace 9cf081b8010e7dca ]---
[   59.872236] usb 1-1.6: USB disconnect, device number 4

Happy to provide more info if needed, I'm no expert here so please correct me if this is misguided.

Offline

Board footer

Powered by FluxBB