I don't have a special wireless off/on button on my keyboard but I'm assuming rfkill <block|unblock> <id> will do (soft kill switch).
The issue does not get triggered by the following loop (I may leave it for several hours to get a better picture and modify to wait more intelligently): ➜ ~ while test 1 ; do rfkill block 1 ; sleep 10 ; rfkill unblock 1 ; sleep 10 ; done сен 05 01:26:13 blade kernel: wlp59s0: deauthenticating from 18:d6:c7:b0:26:ee by local choice (Reason: 3=DEAUTH_LEAVING) сен 05 01:26:24 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:26:24 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:26:29 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:26:29 blade kernel: wlp59s0: authenticate with 18:d6:c7:b0:26:ee сен 05 01:26:29 blade kernel: wlp59s0: send auth to 18:d6:c7:b0:26:ee (try 1/3) сен 05 01:26:29 blade kernel: wlp59s0: authenticated сен 05 01:26:29 blade kernel: wlp59s0: associate with 18:d6:c7:b0:26:ee (try 1/3) сен 05 01:26:29 blade kernel: wlp59s0: RX AssocResp from 18:d6:c7:b0:26:ee (capab=0x431 status=0 aid=1) сен 05 01:26:29 blade kernel: wlp59s0: associated сен 05 01:26:29 blade kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlp59s0: link becomes ready сен 05 01:26:33 blade kernel: wlp59s0: deauthenticating from 18:d6:c7:b0:26:ee by local choice (Reason: 3=DEAUTH_LEAVING) сен 05 01:26:44 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:26:44 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:26:49 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:26:49 blade kernel: wlp59s0: authenticate with 18:d6:c7:b0:26:ee сен 05 01:26:49 blade kernel: wlp59s0: send auth to 18:d6:c7:b0:26:ee (try 1/3) сен 05 01:26:49 blade kernel: wlp59s0: authenticated сен 05 01:26:49 blade kernel: wlp59s0: associate with 18:d6:c7:b0:26:ee (try 1/3) сен 05 01:26:49 blade kernel: wlp59s0: RX AssocResp from 18:d6:c7:b0:26:ee (capab=0x431 status=0 aid=1) сен 05 01:26:49 blade kernel: wlp59s0: associated сен 05 01:26:49 blade kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlp59s0: link becomes ready сен 05 01:26:53 blade kernel: wlp59s0: deauthenticating from 18:d6:c7:b0:26:ee by local choice (Reason: 3=DEAUTH_LEAVING) сен 05 01:27:04 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:27:04 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:27:09 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:27:09 blade kernel: wlp59s0: authenticate with 18:d6:c7:b0:26:ee сен 05 01:27:09 blade kernel: wlp59s0: send auth to 18:d6:c7:b0:26:ee (try 1/3) сен 05 01:27:09 blade kernel: wlp59s0: send auth to 18:d6:c7:b0:26:ee (try 2/3) сен 05 01:27:09 blade kernel: wlp59s0: send auth to 18:d6:c7:b0:26:ee (try 3/3) сен 05 01:27:09 blade kernel: wlp59s0: authentication with 18:d6:c7:b0:26:ee timed out сен 05 01:27:10 blade kernel: wlp59s0: authenticate with d8:74:95:e5:88:38 сен 05 01:27:10 blade kernel: wlp59s0: send auth to d8:74:95:e5:88:38 (try 1/3) сен 05 01:27:10 blade kernel: wlp59s0: authenticated сен 05 01:27:10 blade kernel: wlp59s0: associate with d8:74:95:e5:88:38 (try 1/3) сен 05 01:27:10 blade kernel: wlp59s0: RX AssocResp from d8:74:95:e5:88:38 (capab=0x411 status=0 aid=4) сен 05 01:27:10 blade kernel: wlp59s0: associated сен 05 01:27:10 blade kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlp59s0: link becomes ready сен 05 01:27:14 blade kernel: wlp59s0: deauthenticating from d8:74:95:e5:88:38 by local choice (Reason: 3=DEAUTH_LEAVING) сен 05 01:27:24 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:27:25 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:27:29 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:27:29 blade kernel: wlp59s0: authenticate with 18:d6:c7:b0:26:ee сен 05 01:27:29 blade kernel: wlp59s0: send auth to 18:d6:c7:b0:26:ee (try 1/3) сен 05 01:27:29 blade kernel: wlp59s0: send auth to 18:d6:c7:b0:26:ee (try 2/3) сен 05 01:27:29 blade kernel: wlp59s0: send auth to 18:d6:c7:b0:26:ee (try 3/3) сен 05 01:27:29 blade kernel: wlp59s0: authentication with 18:d6:c7:b0:26:ee timed out сен 05 01:27:30 blade kernel: wlp59s0: authenticate with d8:74:95:e5:88:38 сен 05 01:27:30 blade kernel: wlp59s0: send auth to d8:74:95:e5:88:38 (try 1/3) сен 05 01:27:30 blade kernel: wlp59s0: authenticated сен 05 01:27:30 blade kernel: wlp59s0: associate with d8:74:95:e5:88:38 (try 1/3) сен 05 01:27:30 blade kernel: wlp59s0: RX AssocResp from d8:74:95:e5:88:38 (capab=0x411 status=0 aid=4) сен 05 01:27:30 blade kernel: wlp59s0: associated сен 05 01:27:30 blade kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlp59s0: link becomes ready сен 05 01:27:34 blade kernel: wlp59s0: deauthenticating from d8:74:95:e5:88:38 by local choice (Reason: 3=DEAUTH_LEAVING) сен 05 01:27:44 blade kernel: usb 1-1: USB disconnect, device number 8 сен 05 01:27:45 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:27:45 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:27:49 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:27:50 blade kernel: wlp59s0: authenticate with d8:74:95:e5:88:38 сен 05 01:27:50 blade kernel: wlp59s0: send auth to d8:74:95:e5:88:38 (try 1/3) сен 05 01:27:50 blade kernel: wlp59s0: authenticated сен 05 01:27:50 blade kernel: wlp59s0: associate with d8:74:95:e5:88:38 (try 1/3) сен 05 01:27:50 blade kernel: wlp59s0: RX AssocResp from d8:74:95:e5:88:38 (capab=0x411 status=0 aid=4) сен 05 01:27:50 blade kernel: wlp59s0: associated сен 05 01:27:50 blade kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlp59s0: link becomes ready сен 05 01:27:54 blade kernel: wlp59s0: deauthenticating from d8:74:95:e5:88:38 by local choice (Reason: 3=DEAUTH_LEAVING) сен 05 01:28:05 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:28:05 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:28:06 blade kernel: usb 1-1: new high-speed USB device number 10 using xhci_hcd сен 05 01:28:06 blade kernel: usb 1-1: New USB device found, idVendor=0fce, idProduct=01ba сен 05 01:28:06 blade kernel: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 сен 05 01:28:06 blade kernel: usb 1-1: Product: D6633 сен 05 01:28:06 blade kernel: usb 1-1: Manufacturer: Sony сен 05 01:28:06 blade kernel: usb 1-1: SerialNumber: CB5A217QLS сен 05 01:28:10 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:28:10 blade kernel: wlp59s0: authenticate with d8:74:95:e5:88:38 сен 05 01:28:10 blade kernel: wlp59s0: send auth to d8:74:95:e5:88:38 (try 1/3) сен 05 01:28:10 blade kernel: wlp59s0: authenticated сен 05 01:28:10 blade kernel: wlp59s0: associate with d8:74:95:e5:88:38 (try 1/3) сен 05 01:28:10 blade kernel: wlp59s0: RX AssocResp from d8:74:95:e5:88:38 (capab=0x411 status=0 aid=4) сен 05 01:28:10 blade kernel: wlp59s0: associated сен 05 01:28:10 blade kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlp59s0: link becomes ready сен 05 01:28:14 blade kernel: wlp59s0: deauthenticating from d8:74:95:e5:88:38 by local choice (Reason: 3=DEAUTH_LEAVING) сен 05 01:28:25 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:28:25 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:28:30 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:28:30 blade kernel: wlp59s0: authenticate with d8:74:95:e5:88:38 сен 05 01:28:30 blade kernel: wlp59s0: send auth to d8:74:95:e5:88:38 (try 1/3) сен 05 01:28:30 blade kernel: wlp59s0: authenticated сен 05 01:28:30 blade kernel: wlp59s0: associate with d8:74:95:e5:88:38 (try 1/3) сен 05 01:28:30 blade kernel: wlp59s0: RX AssocResp from d8:74:95:e5:88:38 (capab=0x411 status=0 aid=4) сен 05 01:28:30 blade kernel: wlp59s0: associated сен 05 01:28:30 blade kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlp59s0: link becomes ready сен 05 01:28:34 blade kernel: wlp59s0: deauthenticating from d8:74:95:e5:88:38 by local choice (Reason: 3=DEAUTH_LEAVING) сен 05 01:28:45 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:28:45 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:28:50 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:28:50 blade kernel: wlp59s0: authenticate with d8:74:95:e5:88:38 сен 05 01:28:50 blade kernel: wlp59s0: send auth to d8:74:95:e5:88:38 (try 1/3) сен 05 01:28:50 blade kernel: wlp59s0: authenticated сен 05 01:28:50 blade kernel: wlp59s0: associate with d8:74:95:e5:88:38 (try 1/3) сен 05 01:28:50 blade kernel: wlp59s0: RX AssocResp from d8:74:95:e5:88:38 (capab=0x411 status=0 aid=2) сен 05 01:28:50 blade kernel: wlp59s0: associated сен 05 01:28:50 blade kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlp59s0: link becomes ready сен 05 01:28:54 blade kernel: wlp59s0: deauthenticating from d8:74:95:e5:88:38 by local choice (Reason: 3=DEAUTH_LEAVING) сен 05 01:29:05 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:29:05 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:29:10 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:29:10 blade kernel: wlp59s0: authenticate with 18:d6:c7:b0:26:ee сен 05 01:29:10 blade kernel: wlp59s0: send auth to 18:d6:c7:b0:26:ee (try 1/3) сен 05 01:29:10 blade kernel: wlp59s0: send auth to 18:d6:c7:b0:26:ee (try 2/3) сен 05 01:29:10 blade kernel: wlp59s0: send auth to 18:d6:c7:b0:26:ee (try 3/3) сен 05 01:29:10 blade kernel: wlp59s0: authentication with 18:d6:c7:b0:26:ee timed out сен 05 01:29:10 blade kernel: wlp59s0: authenticate with d8:74:95:e5:88:38 сен 05 01:29:10 blade kernel: wlp59s0: send auth to d8:74:95:e5:88:38 (try 1/3) сен 05 01:29:10 blade kernel: wlp59s0: authenticated сен 05 01:29:10 blade kernel: wlp59s0: associate with d8:74:95:e5:88:38 (try 1/3) сен 05 01:29:10 blade kernel: wlp59s0: RX AssocResp from d8:74:95:e5:88:38 (capab=0x411 status=0 aid=2) сен 05 01:29:10 blade kernel: wlp59s0: associated сен 05 01:29:10 blade kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlp59s0: link becomes ready сен 05 01:29:14 blade kernel: wlp59s0: deauthenticating from d8:74:95:e5:88:38 by local choice (Reason: 3=DEAUTH_LEAVING) сен 05 01:29:25 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:29:25 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:29:30 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:29:30 blade kernel: wlp59s0: authenticate with d8:74:95:e5:88:38 сен 05 01:29:30 blade kernel: wlp59s0: send auth to d8:74:95:e5:88:38 (try 1/3) сен 05 01:29:30 blade kernel: wlp59s0: authenticated сен 05 01:29:30 blade kernel: wlp59s0: associate with d8:74:95:e5:88:38 (try 1/3) сен 05 01:29:30 blade kernel: wlp59s0: RX AssocResp from d8:74:95:e5:88:38 (capab=0x411 status=0 aid=2) сен 05 01:29:30 blade kernel: wlp59s0: associated сен 05 01:29:30 blade kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlp59s0: link becomes ready сен 05 01:29:34 blade kernel: wlp59s0: deauthenticating from d8:74:95:e5:88:38 by local choice (Reason: 3=DEAUTH_LEAVING) сен 05 01:29:45 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:29:45 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:29:50 blade kernel: IPv6: ADDRCONF(NETDEV_UP): wlp59s0: link is not ready сен 05 01:29:50 blade kernel: wlp59s0: authenticate with d8:74:95:e5:88:38 сен 05 01:29:50 blade kernel: wlp59s0: send auth to d8:74:95:e5:88:38 (try 1/3) сен 05 01:29:50 blade kernel: wlp59s0: authenticated сен 05 01:29:50 blade kernel: wlp59s0: associate with d8:74:95:e5:88:38 (try 1/3) сен 05 01:29:50 blade kernel: wlp59s0: RX AssocResp from d8:74:95:e5:88:38 (capab=0x411 status=0 aid=2) сен 05 01:29:50 blade kernel: wlp59s0: associated сен 05 01:29:50 blade kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlp59s0: link becomes ready ^C% -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1670706 Title: Kernel Call Trace After Disabling an ath10k Wireless Device (Atheros QCA6174 802.11ac (rev 32)) Status in linux package in Ubuntu: Confirmed Bug description: Disabled a wireless adapter via NetworkManager. Got a kernel trace in dmesg. 3b:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32) uname -r 4.10.0-9-generic https://paste.ubuntu.com/24131142/ There are also usb hot-plug messages in between ath10k related ones - this is because I disabled a wireless adapter and immediately plugged in a usb type-c dock so don't mind those. ProblemType: Bug DistroRelease: Ubuntu 17.04 Package: linux-image-4.10.0-9-generic 4.10.0-9.11 ProcVersionSignature: Ubuntu 4.10.0-9.11-generic 4.10.0 Uname: Linux 4.10.0-9-generic x86_64 NonfreeKernelModules: nvidia_drm nvidia_modeset nvidia ApportVersion: 2.20.4-0ubuntu2 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: dima 3007 F.... pulseaudio CurrentDesktop: Unity:Unity7 Date: Tue Mar 7 17:28:37 2017 InstallationDate: Installed on 2017-02-27 (8 days ago) InstallationMedia: Ubuntu 17.04 "Zesty Zapus" - Alpha amd64 (20170227) MachineType: Razer Blade ProcFB: 0 inteldrmfb ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.10.0-9-generic.efi.signed root=UUID=3f515c94-cd91-48b4-80f6-84ec24cb7b8f ro rootflags=subvol=@ quiet button.lid_init_state=open pcie_aspm=off RelatedPackageVersions: linux-restricted-modules-4.10.0-9-generic N/A linux-backports-modules-4.10.0-9-generic N/A linux-firmware 1.163 SourcePackage: linux UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 01/10/2017 dmi.bios.vendor: Razer dmi.bios.version: 1.00 dmi.board.name: Razer dmi.board.vendor: Razer dmi.chassis.type: 9 dmi.chassis.vendor: Razer dmi.modalias: dmi:bvnRazer:bvr1.00:bd01/10/2017:svnRazer:pnBlade:pvr6.06:rvnRazer:rnRazer:rvr:cvnRazer:ct9:cvr: dmi.product.name: Blade dmi.product.version: 6.06 dmi.sys.vendor: Razer To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1670706/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp