Re: urtwn(4) / rtwn(4) drivers are merged - call for testing (Was: RTL8812AU / RTL8821AU driver)

2016-09-26 Thread Renato Botelho
> On 26 Sep 2016, at 17:10, Andriy Voskoboinyk  wrote:
> 
> Mon, 26 Sep 2016 23:02:15 +0300 було написано Renato Botelho 
> :
> 
> No, warnings are for 'untested' parts (although I think they are not the
> reason...)
> 
> Can you send messages.log when
> dev.rtwn.0.debug=0x829f
> is set?

Sure, here it is

rtwn0:  port 0x4000-0x40ff mem 0xf1c0-0xf1c03fff at 
device 0.0 on pci2
rtwn0: r92ce_attach: warning: hardware crypto enabled
rtwn0: MAC/BB RTL8188CE, RF 6052 1T1R
wlan0: Ethernet address: e0:06:e6:c7:54:73
rtwn0: r92ce_post_init: warning: net80211 ratectl is used
rtwn0: rtwn_raw_xmit: called; m 0xf80010f7e700, ni 0xfe0015226000
rtwn0: r92ce_dump_tx_desc: len 42, off 64, flags0 8D, dw: 1 00041201, 2 
, 3  (seq ), 4 0180, 5 1F00, 6 , size 002A, pad 
, addr: 10FF46E8 (64: ), next: 050B0E40 (64: ), rsvd: 
   
rtwn0: rtwn_pci_intr: status , tx_rings 0008
rtwn0: rtwn_pci_tx_done: qid 3, last 56, cur 57
rtwn0: rtwn_raw_xmit: called; m 0xf80010f7e700, ni 0xfe0015226000
rtwn0: r92ce_dump_tx_desc: len 42, off 64, flags0 8D, dw: 1 00041201, 2 
, 3  (seq ), 4 0180, 5 1F00, 6 , size 002A, pad 
, addr: 10FF46E8 (64: ), next: 050B0E80 (64: ), rsvd: 
   
rtwn0: rtwn_pci_intr: status , tx_rings 0008
rtwn0: rtwn_pci_tx_done: qid 3, last 57, cur 58
rtwn0: rtwn_raw_xmit: called; m 0xf80038177400, ni 0xfe0015226000
rtwn0: r92ce_dump_tx_desc: len 42, off 64, flags0 8D, dw: 1 00041201, 2 
, 3  (seq ), 4 0180, 5 1F00, 6 , size 002A, pad 
, addr: 381BD6E8 (64: ), next: 050B0EC0 (64: ), rsvd: 
   
rtwn0: rtwn_pci_intr: status , tx_rings 0008
rtwn0: rtwn_pci_tx_done: qid 3, last 58, cur 59
rtwn0: rtwn_raw_xmit: called; m 0xf80038477900, ni 0xfe0015226000
rtwn0: r92ce_dump_tx_desc: len 42, off 64, flags0 8D, dw: 1 00041201, 2 
, 3  (seq ), 4 0180, 5 1F00, 6 , size 002A, pad 
, addr: 384EA6E8 (64: ), next: 050B0F00 (64: ), rsvd: 
   
rtwn0: rtwn_pci_intr: status , tx_rings 0008
rtwn0: rtwn_pci_tx_done: qid 3, last 59, cur 60
rtwn0: rtwn_raw_xmit: called; m 0xf80010f7e700, ni 0xfe0015226000
rtwn0: r92ce_dump_tx_desc: len 42, off 64, flags0 8D, dw: 1 00041201, 2 
, 3  (seq ), 4 0180, 5 1F00, 6 , size 002A, pad 
, addr: 10FF46E8 (64: ), next: 050B0F40 (64: ), rsvd: 
   
rtwn0: rtwn_pci_intr: status , tx_rings 0008
rtwn0: rtwn_pci_tx_done: qid 3, last 60, cur 61
rtwn0: rtwn_raw_xmit: called; m 0xf80038055000, ni 0xfe0015226000
rtwn0: r92ce_dump_tx_desc: len 42, off 64, flags0 8D, dw: 1 00041201, 2 
, 3  (seq ), 4 0180, 5 1F00, 6 , size 002A, pad 
, addr: 3809BEE8 (64: ), next: 050B0F80 (64: ), rsvd: 
   
rtwn0: rtwn_pci_intr: status , tx_rings 0008
rtwn0: rtwn_pci_tx_done: qid 3, last 61, cur 62
rtwn0: rtwn_raw_xmit: called; m 0xf80038211200, ni 0xfe0015226000
rtwn0: r92ce_dump_tx_desc: len 42, off 64, flags0 8D, dw: 1 00041201, 2 
, 3  (seq ), 4 0180, 5 1F00, 6 , size 002A, pad 
, addr: 382816E8 (64: ), next: 050B0FC0 (64: ), rsvd: 
   
rtwn0: rtwn_pci_intr: status , tx_rings 0008
rtwn0: rtwn_pci_tx_done: qid 3, last 62, cur 63
rtwn0: rtwn_raw_xmit: called; m 0xf80113eb7900, ni 0xfe0015226000
rtwn0: r92ce_dump_tx_desc: len 42, off 64, flags0 8D, dw: 1 00041201, 2 
, 3  (seq ), 4 0180, 5 1F00, 6 , size 002A, pad 
, addr: 08181000 (64: ), next: 050B1000 (64: ), rsvd: 
   
rtwn0: rtwn_pci_intr: status , tx_rings 0008
rtwn0: rtwn_pci_tx_done: qid 3, last 63, cur 64
rtwn0: rtwn_raw_xmit: called; m 0xf80038212000, ni 0xfe0015226000
rtwn0: r92ce_dump_tx_desc: len 42, off 64, flags0 8D, dw: 1 00041201, 2 
, 3  (seq ), 4 0180, 5 1F00, 6 , size 002A, pad 
, addr: 38289EE8 (64: ), next: 050B1040 (64: ), rsvd: 
   
rtwn0: rtwn_pci_intr: status , tx_rings 0008
rtwn0: rtwn_pci_tx_done: qid 3, last 64, cur 65
rtwn0: rtwn_raw_xmit: called; m 0xf80038206700, ni 0xfe0015226000
rtwn0: r92ce_dump_tx_desc: len 42, off 64, flags0 8D, dw: 1 00041201, 2 
, 3  (seq ), 4 0180, 5 1F00, 6 , size 002A, pad 
, addr: 382306E8 (64: ), next: 050B1080 (64: ), rsvd: 
   
rtwn0: rtwn_pci_intr: status , tx_rings 

Re: urtwn(4) / rtwn(4) drivers are merged - call for testing (Was: RTL8812AU / RTL8821AU driver)

2016-09-26 Thread Renato Botelho
> On 26 Sep 2016, at 16:53, Andriy Voskoboinyk  wrote:
> 
> Mon, 26 Sep 2016 22:46:58 +0300 було написано Renato Botelho 
> >:
> 
> AFAIK, it is not critical (at least for USB devices).
> 
> If it won't work without firmware try to install it from
> sys/modules/rtwnfw/rtwnrtl8192cEB (and restart the interface).

I’ve built and loaded it and the error is gone. But ‘list scan’ never show 
anything and I got this warning, not sure if it’s relevant

rtwn0:  port 0x4000-0x40ff mem 0xf1c0-0xf1c03fff at 
device 0.0 on pci2
rtwn0: r92ce_attach: warning: hardware crypto enabled
rtwn0: MAC/BB RTL8188CE, RF 6052 1T1R
wlan0: Ethernet address: e0:06:e6:c7:54:73
rtwn0: r92ce_post_init: warning: net80211 ratectl is used

Thanks

--
Renato Botelho

___
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: urtwn(4) / rtwn(4) drivers are merged - call for testing (Was: RTL8812AU / RTL8821AU driver)

2016-09-26 Thread Andriy Voskoboinyk
Mon, 26 Sep 2016 22:46:58 +0300 було написано Renato Botelho  
:


AFAIK, it is not critical (at least for USB devices).

If it won't work without firmware try to install it from
sys/modules/rtwnfw/rtwnrtl8192cEB (and restart the interface).


On 1 Sep 2016, at 13:29, Andriy Voskoboinyk  wrote:

Hi everyone,

rtwn(4), urtwn(4) and urtwm (from previous emails) drivers were merged  
into a

single rtwn driver (plus rtwn_usb / rtwn_pci device glue); the code is
available on https://github.com/s3erios/rtwn repository. Among bugfixes  
/

code deduplication, there some new features too:

1) multi-vap support (one any wireless interface + one STA interface +
any number of monitor mode interfaces).
2) few new sysctls:
* dev.rtwn.#.crypto - controls how to use hardware crypto acceleration
* dev.rtwn.#.ratectl_selected
* dev.rtwn.#.ratectl - selects current 'rate control' algorithm
(currently only 'none' and 'net80211' are supported; RTL8192CE needs  
testing

with the last).
3) (incomplete) power management support for RTL8188EU (requires  
firmware).

4) Short Guard Interval support.

It's known to work with RTL8188CUS, RTL8188EU and RTL8821AU; however,
it was never tested with RTL8192CE or RTL8812AU.

How-to-build:
1) download / checkout the repository.
2) apply 'patch-usbdevs.diff' against '/usr/src'
3) build and install rtwn module:
 cd $repository/sys/modules/rtwn && make && make install
4) build and install rtwn_usb/rtwn_pci:
 cd ../rtwn_usb && make && make install
 cd ../rtwn_pci && make && make install
5) unload previous && load current drivers:
 kldunload if_urtwn if_rtwn
 kldload /boot/modules/if_rtwn.ko /boot/modules/if_rtwn_usb.ko  
/boot/modules/if_rtwn_pci.ko

6) Use.


I have a Thinkpad T430 with a PCIe RTL8188CE. It fails waying I didn’ t  
load a firmware that doesn’ t exist:


rtwn0:  port 0x4000-0x40ff mem 0xf1c0-0xf1c03fff  
at device 0.0 on pci2

rtwn0: r92ce_attach: warning: hardware crypto enabled
rtwn0: MAC/BB RTL8188CE, RF 6052 1T1R
wlan0: Ethernet address: e0:06:e6:c7:54:73
rtwn-rtl8192cfwE_B: could not load firmware image, error 2
rtwn0: failed loadfirmware of file rtwn-rtl8192cfwE_B

I’ve loaded rtwn-rtl8192cfwU_B.ko, never heard of rtwn-rtl8192cfwE_B.ko

--
Renato Botelho

___
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: urtwn(4) / rtwn(4) drivers are merged - call for testing (Was: RTL8812AU / RTL8821AU driver)

2016-09-26 Thread Renato Botelho
> On 1 Sep 2016, at 13:29, Andriy Voskoboinyk  wrote:
> 
> Hi everyone,
> 
> rtwn(4), urtwn(4) and urtwm (from previous emails) drivers were merged into a
> single rtwn driver (plus rtwn_usb / rtwn_pci device glue); the code is
> available on https://github.com/s3erios/rtwn repository. Among bugfixes /
> code deduplication, there some new features too:
> 
> 1) multi-vap support (one any wireless interface + one STA interface +
> any number of monitor mode interfaces).
> 2) few new sysctls:
> * dev.rtwn.#.crypto - controls how to use hardware crypto acceleration
> * dev.rtwn.#.ratectl_selected
> * dev.rtwn.#.ratectl - selects current 'rate control' algorithm
> (currently only 'none' and 'net80211' are supported; RTL8192CE needs testing
> with the last).
> 3) (incomplete) power management support for RTL8188EU (requires firmware).
> 4) Short Guard Interval support.
> 
> It's known to work with RTL8188CUS, RTL8188EU and RTL8821AU; however,
> it was never tested with RTL8192CE or RTL8812AU.
> 
> How-to-build:
> 1) download / checkout the repository.
> 2) apply 'patch-usbdevs.diff' against '/usr/src'
> 3) build and install rtwn module:
>   cd $repository/sys/modules/rtwn && make && make install
> 4) build and install rtwn_usb/rtwn_pci:
>   cd ../rtwn_usb && make && make install
>   cd ../rtwn_pci && make && make install
> 5) unload previous && load current drivers:
>   kldunload if_urtwn if_rtwn
>   kldload /boot/modules/if_rtwn.ko /boot/modules/if_rtwn_usb.ko 
> /boot/modules/if_rtwn_pci.ko
> 6) Use.

I have a Thinkpad T430 with a PCIe RTL8188CE. It fails waying I didn’ t load a 
firmware that doesn’ t exist:

rtwn0:  port 0x4000-0x40ff mem 0xf1c0-0xf1c03fff at 
device 0.0 on pci2
rtwn0: r92ce_attach: warning: hardware crypto enabled
rtwn0: MAC/BB RTL8188CE, RF 6052 1T1R
wlan0: Ethernet address: e0:06:e6:c7:54:73
rtwn-rtl8192cfwE_B: could not load firmware image, error 2
rtwn0: failed loadfirmware of file rtwn-rtl8192cfwE_B

I’ve loaded rtwn-rtl8192cfwU_B.ko, never heard of rtwn-rtl8192cfwE_B.ko

--
Renato Botelho

___
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: urtwn(4) / rtwn(4) drivers are merged - call for testing (Was: RTL8812AU / RTL8821AU driver)

2016-09-04 Thread Andriy Voskoboinyk
Sun, 04 Sep 2016 11:37:19 +0300 було написано Marcus von Appen  
:


Try to add your vendor / device into sys/dev/rtwn/pci/rtwn_pci_attach.h
(sys/dev/rtwn/if_rtwn.c for current driver in HEAD):
{ 0x10ec, 0x8176, "Realtek RTL8188CE", RTWN_CHIP_RTL8192CE },
+   { , , "Realtek RTL8192CE", RTWN_CHIP_RTL8192CE },
{ 0, 0, NULL, RTWN_CHIP_MAX_PCI }


On, Thu Sep 01, 2016, Andriy Voskoboinyk wrote:


Hi everyone,

rtwn(4), urtwn(4) and urtwm (from previous emails) drivers were merged
into a
single rtwn driver (plus rtwn_usb / rtwn_pci device glue); the code is
available on https://github.com/s3erios/rtwn repository. Among bugfixes  
/

code deduplication, there some new features too:

1) multi-vap support (one any wireless interface + one STA interface +
any number of monitor mode interfaces).
2) few new sysctls:
  * dev.rtwn.#.crypto - controls how to use hardware crypto acceleration
  * dev.rtwn.#.ratectl_selected
  * dev.rtwn.#.ratectl - selects current 'rate control' algorithm
(currently only 'none' and 'net80211' are supported; RTL8192CE needs
testing
with the last).


I got a RTL8192CE - what should I look for, when using net80211?

Cheers
Marcus

___
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: urtwn(4) / rtwn(4) drivers are merged - call for testing (Was: RTL8812AU / RTL8821AU driver)

2016-09-04 Thread Marcus von Appen
On, Thu Sep 01, 2016, Andriy Voskoboinyk wrote:

> Hi everyone,
>
> rtwn(4), urtwn(4) and urtwm (from previous emails) drivers were merged
> into a
> single rtwn driver (plus rtwn_usb / rtwn_pci device glue); the code is
> available on https://github.com/s3erios/rtwn repository. Among bugfixes /
> code deduplication, there some new features too:
>
> 1) multi-vap support (one any wireless interface + one STA interface +
> any number of monitor mode interfaces).
> 2) few new sysctls:
>   * dev.rtwn.#.crypto - controls how to use hardware crypto acceleration
>   * dev.rtwn.#.ratectl_selected
>   * dev.rtwn.#.ratectl - selects current 'rate control' algorithm
> (currently only 'none' and 'net80211' are supported; RTL8192CE needs
> testing
> with the last).

I got a RTL8192CE - what should I look for, when using net80211?

Cheers
Marcus


signature.asc
Description: PGP signature


urtwn(4) / rtwn(4) drivers are merged - call for testing (Was: RTL8812AU / RTL8821AU driver)

2016-09-01 Thread Andriy Voskoboinyk

Hi everyone,

rtwn(4), urtwn(4) and urtwm (from previous emails) drivers were merged  
into a

single rtwn driver (plus rtwn_usb / rtwn_pci device glue); the code is
available on https://github.com/s3erios/rtwn repository. Among bugfixes /
code deduplication, there some new features too:

1) multi-vap support (one any wireless interface + one STA interface +
any number of monitor mode interfaces).
2) few new sysctls:
 * dev.rtwn.#.crypto - controls how to use hardware crypto acceleration
 * dev.rtwn.#.ratectl_selected
 * dev.rtwn.#.ratectl - selects current 'rate control' algorithm
(currently only 'none' and 'net80211' are supported; RTL8192CE needs  
testing

with the last).
3) (incomplete) power management support for RTL8188EU (requires firmware).
4) Short Guard Interval support.

It's known to work with RTL8188CUS, RTL8188EU and RTL8821AU; however,
it was never tested with RTL8192CE or RTL8812AU.

How-to-build:
1) download / checkout the repository.
2) apply 'patch-usbdevs.diff' against '/usr/src'
3) build and install rtwn module:
   cd $repository/sys/modules/rtwn && make && make install
4) build and install rtwn_usb/rtwn_pci:
   cd ../rtwn_usb && make && make install
   cd ../rtwn_pci && make && make install
5) unload previous && load current drivers:
   kldunload if_urtwn if_rtwn
   kldload /boot/modules/if_rtwn.ko /boot/modules/if_rtwn_usb.ko  
/boot/modules/if_rtwn_pci.ko

6) Use.
___
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"