RFKILL support [ANSWERED]

Moderators: Oren.R, Eran.M

chrisw957
Posts: 30
Joined: Fri Aug 28, 2015 8:21 pm

RFKILL support [ANSWERED]

Postby chrisw957 » Mon Oct 24, 2016 8:52 pm

I'm interested in getting rfkill to work so that I can easily disable all transmissions from the dual-band wilink8 radio. Has someone already done this?

I enabled rfkill in the kernel config, and busybox is providing rfkill command, but it doesn't seem to list any interfaces.

Andrew F
Posts: 7
Joined: Mon Feb 06, 2017 2:34 pm

Re: RFKILL support

Postby Andrew F » Mon Apr 03, 2017 9:45 am

I'm also interested in this. Is there any chance of some feedback from Variscite about this?

fradensky
Posts: 41
Joined: Sun Nov 13, 2016 7:55 am

Re: RFKILL support

Postby fradensky » Tue Apr 04, 2017 12:10 pm

There's no way to disable WIFI transmitter in WL18xx. You can completely power-down WIFI and BT via GPIOs. WIFI is powered up by kernel on boot
(see definition of wlan_en_reg in DTS). Powering it down in run-time may have unpleasant consequences and is not recommended.

Andrew F
Posts: 7
Joined: Mon Feb 06, 2017 2:34 pm

Re: RFKILL support

Postby Andrew F » Thu Apr 06, 2017 2:38 pm

Hi fradensky,

For the SOM-SOLO board there's also an RFKILL for the bluetooth radio, but not the Wi-Fi, is that correct?

https://github.com/varigit/linux-2.6-im ... .dtsi#L197

fradensky
Posts: 41
Joined: Sun Nov 13, 2016 7:55 am

Re: RFKILL support

Postby fradensky » Thu Apr 06, 2017 2:43 pm

The wlan_bt_rfkill DTS node is not used. The rfkill-gpio driver has no DT support.

Andrew F
Posts: 7
Joined: Mon Feb 06, 2017 2:34 pm

Re: RFKILL support

Postby Andrew F » Fri Apr 07, 2017 12:44 pm

Shouldn't

Code: Select all

ifconfig wlan0 down


control wlan_en_reg correctly?

fradensky
Posts: 41
Joined: Sun Nov 13, 2016 7:55 am

Re: RFKILL support

Postby fradensky » Sun Apr 09, 2017 6:09 am

No, wl18xx driver is not aware of wlan_en_reg.

Andrew F
Posts: 7
Joined: Mon Feb 06, 2017 2:34 pm

Re: RFKILL support

Postby Andrew F » Tue Apr 11, 2017 10:29 am

Should/could it? It would be more elegant if we didn't have to manually toggle IOs to achieve this effect.

Andrew F
Posts: 7
Joined: Mon Feb 06, 2017 2:34 pm

Re: RFKILL support

Postby Andrew F » Fri Apr 21, 2017 1:23 pm

Any progress on this from Variscite's perspective? It'd be really useful to know if there's a reason this deliberately hasn't been done, or some other reason.

fradensky
Posts: 41
Joined: Sun Nov 13, 2016 7:55 am

Re: RFKILL support

Postby fradensky » Sun Apr 23, 2017 8:52 am

The WLAN regulator is boards specific, so accessing it from generic WL18xx driver is not correct.
Instead you can completely unload the driver and then load it again. See /usr/share/wl18xx/unload_wlcore.sh


Return to “Yocto”

Who is online

Users browsing this forum: No registered users and 2 guests