Date: Wed, 20 May 2020 01:40:35 +0300 From: Andriy Gapon <avg@FreeBSD.org> To: Adrian Chadd <adrian.chadd@gmail.com> Cc: "freebsd-wireless@freebsd.org" <wireless@freebsd.org> Subject: Re: iwm rfkill Message-ID: <9d55db0d-fe7a-2695-ac3e-6668eab43622@FreeBSD.org> In-Reply-To: <CAJ-VmonCxXxS-6WD=mxW1gdazZXHAyYdhTF9LrT%2BaqUrksR14g@mail.gmail.com> References: <15021eed-2d82-5391-0edc-8d328e3ba31d@FreeBSD.org> <CAJ-VmonCxXxS-6WD=mxW1gdazZXHAyYdhTF9LrT%2BaqUrksR14g@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 18/05/2020 18:42, Adrian Chadd wrote: > On Mon, 18 May 2020 at 00:57, Andriy Gapon <avg@freebsd.org> wrote: >> >> >> I am trying to get my laptop fully functional and one of the things that >> currently does not work as expected is a Wi-Fi / Radio special key. >> It seems to be handled fully in hardware (but not 100% sure), but when I press >> it only bluetooth is turned off, but Wi-Fi stays on. >> >> This is the hardware: >> iwm0: <Intel(R) Dual Band Wireless AC 3168> mem 0xfe800000-0xfe801fff at device >> 0.0 on pci3 >> iwm0: hw rev 0x220, fw ver 22.361476.0, address xx >> >> When I press the key I see these messages: >> iwm0: iwm_intr: rfkill switch, disabling interface >> ugen0.6: <vendor 0x8087 product 0x0aa7> at usbus0 (disconnected) >> ubt0: at uhub1, port 4, addr 5 (disconnected) >> ubt0: detached >> >> However, ifconfig still shows that wlan0 is UP and RUNNING and the traffic keeps >> flowing. >> >> So, it seems that the RF KILL bit gets set and it's detected by the driver, but >> whatever the driver does is not enough to turn off the Wi-Fi. >> Does anyone have any patches or suggestions or pointers (documentation, etc) ? > > It should be pretty easy to hack in; look at what iwn does? It should > just do a software thing to disable the interface in software. Adrian, thank you very much for your suggestion. Being a complete noob in this area, this is my stab at it: https://reviews.freebsd.org/D24923 -- Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9d55db0d-fe7a-2695-ac3e-6668eab43622>