Re: Toshiba L675D wifi rfkill acpi support

2016-01-31 Thread J.R. Oldroyd
On Sun, 31 Jan 2016 09:58:05 +0100 Lars Engels  wrote:
> 
> You could try to "patch" PIN 20 on the card as described here:
> 
> http://www.allthingstechie.net/2014/10/bypass-laptop-wireless-hardware-radio.html
> 
> Then the H/W switch is always turned on.

News of this pin-20 patch of which you speak had not yet reached
these lands.  This new learning amazes me.

Being the pioneering type and always keen to be on the bleeding
edge (!), I went ahead and tried it.  It does, indeed, work!

Thank you, Lars, for bringing enlightenment.

And thanks, Adrian for your comments on the GPIO routing.

Now, given that the L305D works with both the AR9285 and AR9280
NICs and toggling the ACPI wireless 0x200 line works too, and given
that on the L675D the AR9285 also works as does the ACPI wireless
0x200 line, I guess we can conclude:
- the ACPI wireless 0x200 line is routed to something
  other than pin 20
- the L305D does not assert pin 20, the L675D does
- the AR9285 that I have (an AzureWave) ignores pin 20

I am thinking out loud here... I was hoping to be able to complete
the acpi_toshiba.c enhancements by making this work, but I have already
tested all four ACPI wireless lines on the L675D and none seem to
do what we need.

-jr
___
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"


Re: Toshiba L675D wifi rfkill acpi support

2016-01-30 Thread Adrian Chadd
You'll have to figure out what the deal is, or disable it in the driver.

The rfkill switch is either hardware or software. Yours is hardware,
so I'm guessing it's one of the GPIO lines on the PCIE bus. I don't
know how the intel driver figures out which GPIO line is rfkill and
pays attention to it; search for that error string in the if_iwn.c
driver. Chances are it's reading a register and disabling it in
software.


-a


On 30 January 2016 at 14:34, J.R. Oldroyd  wrote:
> I have just upgraded the wifi mini-PCIe adapters in some older model
> Toshiba laptops, specifically L305D and L675D models, to AR9280
> adapters.  This in order to be able to use the 5 GHz band.
>
> On the L305D, everything is working well.
>
> But on the L675D, the AR9280 radio remains off.  Switching the wifi
> adapter to an Intel 6200 actually reports:
> iwn0: radio is disabled by hardware switch
> They both probe and initialize normally in the dmesg and you can
> talk to them normally using ifconfig.  It is just the radio that
> remains off.
>
> Thing is, the L675D does not have a hardware rfkill switch.  It does
> have Fn+F8, however.
>
> I should note that two other wifi adapters, the original RTL8191SE
> and also an AR9285 do both work fine in the L675D.  They do not seem
> to see a phantom rfkill switch!  But, neither of these adapters
> support the 5 GHz band.
>
> Despite the RTL8191SE and AR9285 working, I figured that it would be
> useful to have Fn+F8 working so that I could check and toggle the
> radio state of the AT9280.  I therefore set about updating
> acpi_toshiba.c to support the TOS1900 HID [1].
>
> I am still no closer, though.  I was not able to enable the hotkey
> Fn+Fx support, so I've implemented a hw.acpi.toshiba.wireless_wifi
> sysctl which shows that the wifi is enabled and allows it to be
> toggled.  Testing with one of the working adapters (AR9285) does show
> the wifi LED going on and off and the interface does pass or not-pass
> traffic accordingly.  But, with the AR9280, the LED and the radio
> remain steadfastly off.
>
> I have studied the acpidump[2] and found that the relevant ACPI method
> (TOI0==0xFF00 TOI1==0x56) supports four devices:
> 0x0200  wifi
> 0x0800  unknown
> 0x2000  wwan (3G device, according to google)
> 0x  unknown
>
> I have played with all of them, but still cannot get the AR9280 radio
> or the wifi LED on.
>
> I have not found any documentation, other than the Linux driver
> toshiba_acpi.c which provides no further help.
>
> Anyone have any thoughts about what is needed to enable the AR9280 (or
> Intel 6200) in the Toshiba L675D?
>
> Thanks,
> -jr
>
> [1] http://opal.com/jr/toshiba_l675d/acpi_toshiba.c
> [2] http://opal.com/jr/toshiba_l675d/toshiba_l675d.asl
> ___
> freebsd-wireless@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
> To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"
___
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"


Toshiba L675D wifi rfkill acpi support

2016-01-30 Thread J.R. Oldroyd
I have just upgraded the wifi mini-PCIe adapters in some older model
Toshiba laptops, specifically L305D and L675D models, to AR9280
adapters.  This in order to be able to use the 5 GHz band.

On the L305D, everything is working well.

But on the L675D, the AR9280 radio remains off.  Switching the wifi
adapter to an Intel 6200 actually reports:
iwn0: radio is disabled by hardware switch
They both probe and initialize normally in the dmesg and you can
talk to them normally using ifconfig.  It is just the radio that
remains off.

Thing is, the L675D does not have a hardware rfkill switch.  It does
have Fn+F8, however.

I should note that two other wifi adapters, the original RTL8191SE
and also an AR9285 do both work fine in the L675D.  They do not seem
to see a phantom rfkill switch!  But, neither of these adapters
support the 5 GHz band.

Despite the RTL8191SE and AR9285 working, I figured that it would be
useful to have Fn+F8 working so that I could check and toggle the
radio state of the AT9280.  I therefore set about updating
acpi_toshiba.c to support the TOS1900 HID [1].

I am still no closer, though.  I was not able to enable the hotkey
Fn+Fx support, so I've implemented a hw.acpi.toshiba.wireless_wifi
sysctl which shows that the wifi is enabled and allows it to be
toggled.  Testing with one of the working adapters (AR9285) does show
the wifi LED going on and off and the interface does pass or not-pass
traffic accordingly.  But, with the AR9280, the LED and the radio
remain steadfastly off.

I have studied the acpidump[2] and found that the relevant ACPI method
(TOI0==0xFF00 TOI1==0x56) supports four devices:
0x0200  wifi
0x0800  unknown
0x2000  wwan (3G device, according to google)
0x  unknown

I have played with all of them, but still cannot get the AR9280 radio
or the wifi LED on.

I have not found any documentation, other than the Linux driver
toshiba_acpi.c which provides no further help.

Anyone have any thoughts about what is needed to enable the AR9280 (or
Intel 6200) in the Toshiba L675D?

Thanks,
-jr

[1] http://opal.com/jr/toshiba_l675d/acpi_toshiba.c
[2] http://opal.com/jr/toshiba_l675d/toshiba_l675d.asl
___
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"