Re: urtwn(4) / rtwn(4) drivers are merged - call for review / testing

2016-10-13 Thread Kevin Lo
On Fri, Oct 14, 2016 at 03:03:41AM +0300, Andriy Voskoboinyk wrote:
> 
> Wed, 12 Oct 2016 07:34:15 +0300 було написано Kevin Lo :
> 
> Thanks for testing! (I have got another one to simplify the process)
> Can you approve that current tree (master) works without any (new)  
> problems?

Sure.  For usb wireless adapters, they work quite well :)  Thanks.

> P.S. Known issue (present in the current driver too):
>   - the card ACKs only some frames that were sent using CCK rates
> (whilst sees all retransmissions - that can be seen in 'rx discard 'cuz  
> dup'
> counter via wlanstats)
> 
> > I tried to use https://github.com/s3erios/rtwn/tree/pci_modified,
> > still no luck.  BTW, there's a compilation error:  
> > http://pastebin.com/hCFfYVSj
> >
> > To ensure that the adapter is not faulty, I tested with the snapshots  
> > image
> > (FreeBSD-12.0-CURRENT-amd64-20160829-r305028-memstick.img), rtwn(4)  
> > works fine.
> >
> > Kevin
> >
> > On Tue, Oct 11, 2016 at 11:21:24PM +0300, Andriy Voskoboinyk wrote:
> >>
> >> Tue, 11 Oct 2016 04:27:02 +0300 було написано Kevin Lo  
> >> :
> >>
> >> I have created 'pci_modified' branch to speed-up the process (RTL881*AU
> >> will
> >> not work with it for now); right now it contains (mostly) unmodified
> >> initialization path from rtwn(4) driver.
> >>
> >> If this version will work, I will revert some 'RTWN_PCI_WORKAROUND'
> >> temporary blocks until the culprit is found.
> >>
> >> > On Sat, Oct 08, 2016 at 02:18:54AM +0300, Andriy Voskoboinyk wrote:
> >> >>
> >> >> Mon, 03 Oct 2016 03:55:23 +0300 було написано Kevin Lo
> >> >> :
> >> >>
> >> >> Hi!
> >> >
> >> > Hi Andriy,
> >> >
> >> >> Can you refresh the tree and retest it (dev.rtwn.0.debug=0x829f) ?
> >> >
> >> > I refreshed the tree and retested it, unfortunately it's still the  
> >> same.
> >> > Here's the log: https://people.freebsd.org/~kevlo/rtl8188ce-debuglog
> >> >>
> >> >> P.S. If Rx is still broken (status is always 0) try to execute
> >> >> 'ifconfig wlan0 promisc'
> >> >
> >> > It doesn't help either :(
> >>
> 
> 
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: urtwn(4) / rtwn(4) drivers are merged - call for review / testing

2016-10-13 Thread Andriy Voskoboinyk

Wed, 12 Oct 2016 07:34:15 +0300 було написано Kevin Lo :

Thanks for testing! (I have got another one to simplify the process)
Can you approve that current tree (master) works without any (new)  
problems?


P.S. Known issue (present in the current driver too):
 - the card ACKs only some frames that were sent using CCK rates
(whilst sees all retransmissions - that can be seen in 'rx discard 'cuz  
dup'

counter via wlanstats)


I tried to use https://github.com/s3erios/rtwn/tree/pci_modified,
still no luck.  BTW, there's a compilation error:  
http://pastebin.com/hCFfYVSj


To ensure that the adapter is not faulty, I tested with the snapshots  
image
(FreeBSD-12.0-CURRENT-amd64-20160829-r305028-memstick.img), rtwn(4)  
works fine.


Kevin

On Tue, Oct 11, 2016 at 11:21:24PM +0300, Andriy Voskoboinyk wrote:


Tue, 11 Oct 2016 04:27:02 +0300 було написано Kevin Lo  
:


I have created 'pci_modified' branch to speed-up the process (RTL881*AU
will
not work with it for now); right now it contains (mostly) unmodified
initialization path from rtwn(4) driver.

If this version will work, I will revert some 'RTWN_PCI_WORKAROUND'
temporary blocks until the culprit is found.

> On Sat, Oct 08, 2016 at 02:18:54AM +0300, Andriy Voskoboinyk wrote:
>>
>> Mon, 03 Oct 2016 03:55:23 +0300 було написано Kevin Lo
>> :
>>
>> Hi!
>
> Hi Andriy,
>
>> Can you refresh the tree and retest it (dev.rtwn.0.debug=0x829f) ?
>
> I refreshed the tree and retested it, unfortunately it's still the  
same.

> Here's the log: https://people.freebsd.org/~kevlo/rtl8188ce-debuglog
>>
>> P.S. If Rx is still broken (status is always 0) try to execute
>> 'ifconfig wlan0 promisc'
>
> It doesn't help either :(


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

Re: urtwn(4) / rtwn(4) drivers are merged - call for review / testing

2016-10-11 Thread Kevin Lo
I tried to use https://github.com/s3erios/rtwn/tree/pci_modified, 
still no luck.  BTW, there's a compilation error: http://pastebin.com/hCFfYVSj

To ensure that the adapter is not faulty, I tested with the snapshots image
(FreeBSD-12.0-CURRENT-amd64-20160829-r305028-memstick.img), rtwn(4) works fine.

Kevin

On Tue, Oct 11, 2016 at 11:21:24PM +0300, Andriy Voskoboinyk wrote:
> 
> Tue, 11 Oct 2016 04:27:02 +0300 було написано Kevin Lo :
> 
> I have created 'pci_modified' branch to speed-up the process (RTL881*AU  
> will
> not work with it for now); right now it contains (mostly) unmodified
> initialization path from rtwn(4) driver.
> 
> If this version will work, I will revert some 'RTWN_PCI_WORKAROUND'
> temporary blocks until the culprit is found.
> 
> > On Sat, Oct 08, 2016 at 02:18:54AM +0300, Andriy Voskoboinyk wrote:
> >>
> >> Mon, 03 Oct 2016 03:55:23 +0300 було написано Kevin Lo  
> >> :
> >>
> >> Hi!
> >
> > Hi Andriy,
> >
> >> Can you refresh the tree and retest it (dev.rtwn.0.debug=0x829f) ?
> >
> > I refreshed the tree and retested it, unfortunately it's still the same.
> > Here's the log: https://people.freebsd.org/~kevlo/rtl8188ce-debuglog
> >>
> >> P.S. If Rx is still broken (status is always 0) try to execute
> >> 'ifconfig wlan0 promisc'
> >
> > It doesn't help either :(
> 
> 
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: urtwn(4) / rtwn(4) drivers are merged - call for review / testing

2016-10-11 Thread Adrian Chadd
Hiya,

So uhm - normal rtwn works fine, but andriy's merged version doesn't?



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


Re: urtwn(4) / rtwn(4) drivers are merged - call for review / testing

2016-10-11 Thread Andriy Voskoboinyk

Tue, 11 Oct 2016 04:27:02 +0300 було написано Kevin Lo :

I have created 'pci_modified' branch to speed-up the process (RTL881*AU  
will

not work with it for now); right now it contains (mostly) unmodified
initialization path from rtwn(4) driver.

If this version will work, I will revert some 'RTWN_PCI_WORKAROUND'
temporary blocks until the culprit is found.


On Sat, Oct 08, 2016 at 02:18:54AM +0300, Andriy Voskoboinyk wrote:


Mon, 03 Oct 2016 03:55:23 +0300 було написано Kevin Lo  
:


Hi!


Hi Andriy,


Can you refresh the tree and retest it (dev.rtwn.0.debug=0x829f) ?


I refreshed the tree and retested it, unfortunately it's still the same.
Here's the log: https://people.freebsd.org/~kevlo/rtl8188ce-debuglog


P.S. If Rx is still broken (status is always 0) try to execute
'ifconfig wlan0 promisc'


It doesn't help either :(

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

Re: urtwn(4) / rtwn(4) drivers are merged - call for review / testing

2016-10-10 Thread Kevin Lo
On Sat, Oct 08, 2016 at 02:18:54AM +0300, Andriy Voskoboinyk wrote:
> 
> Mon, 03 Oct 2016 03:55:23 +0300 було написано Kevin Lo :
> 
> Hi!

Hi Andriy,

> Can you refresh the tree and retest it (dev.rtwn.0.debug=0x829f) ?

I refreshed the tree and retested it, unfortunately it's still the same.  
Here's the log: https://people.freebsd.org/~kevlo/rtl8188ce-debuglog
> 
> P.S. If Rx is still broken (status is always 0) try to execute
> 'ifconfig wlan0 promisc'

It doesn't help either :(

> > On Sun, Oct 02, 2016 at 10:15:49AM -0700, Adrian Chadd wrote:
> >>
> >> hi,
> >
> > Hi Adrian,
> >
> >> can you turn on debugging? Do you see RX frames?
> >
> > No Rx frames.  The log is pretty much the same one I sent on the list:
> > https://lists.freebsd.org/pipermail/freebsd-wireless/2016-September/007093.html
> >
> >> -a
> >
> > Thanks,
> > Kevin
> >
> >> On 1 October 2016 at 08:09, Kevin Lo  wrote:
> >> > Strange, rtwn(4) stops working.  I tried to scan for the available  
> >> network,
> >> > but it just returns empty results.
> >> >
> >> > On Fri, Sep 23, 2016 at 02:44:13PM +0300, Andriy Voskoboinyk wrote:
> >> >>
> >> >> Fri, 23 Sep 2016 10:18:30 +0300 було написано Kevin Lo  
> >> :
> >> >>
> >> >> Few more questions:
> >> >> 1) does it work with h/w encryption support? (enabled by default)
> >> >> (if 'yes' - I will remove 'hardware crypto enabled' warning).
> >> >> 2) is there rate control support? (wlandebug -i wlan0 rate ; then  
> >> transmit
> >> >> something - if it works then AMRR will print it's current status
> >> >> periodically)
> >> >> 3) can you test some disabled capabilities? (ad-hoc/AP modes, 11n)
> >> >> (see r92ce_adj_devcaps() in  
> >> sys/dev/rtwn/rtl8192c/pci/r92ce_attach.c).
> >> >>
> >> >> > It works for me, thanks :)
> >> >> >
> >> >> > Kevin
> >> >> >
> >> >> > On Fri, Sep 23, 2016 at 09:08:15AM +0300, Andriy Voskoboinyk wrote:
> >> >> >>
> >> >> >> Fri, 23 Sep 2016 04:58:40 +0300 було написано Kevin Lo
> >> >> >> :
> >> >> >>
> >> >> >> Thanks for the log file,
> >> >> >>
> >> >> >> Tx 'device timeouts' should be fixed in
> >> >> >>  
> >> https://github.com/s3erios/rtwn/commit/f78d51b6ed8590e3aeb65fbf616aa767034a89f5
> >> >> >> (currently I'm reviewing PCI-specific code to see if there are any
> >> >> >> additional
> >> >> >> issues - e.g., there are no Rx events in the log file).
> >> >> >>
> >> >> >> > On Thu, Sep 22, 2016 at 01:54:21PM +0300, Andriy Voskoboinyk  
> >> wrote:
> >> >> >> >>
> >> >> >> >> Thu, 22 Sep 2016 12:24:42 +0300 було написано Kevin Lo
> >> >> >> >> :
> >> >> >> >>
> >> >> >> >> Hi,
> >> >> >> >>
> >> >> >> >> So, the driver was fully tested. Thanks!
> >> >> >> >> Can you set dev.rtwn.0.debug=0x829f for RTL8188CE to see how  
> >> big
> >> >> >> >> the problem is?
> >> >> >> >
> >> >> >> > Sure.  Here you go
> >> >> >> https://people.freebsd.org/~kevlo/rtl8188ce-debug.txt
> >> >> >> >
> >> >> >> > Thanks,
> >> >> >> > Kevin
> >> >> >> >
> >> >> >> >> > Hi Andriy,
> >> >> >> >> >
> >> >> >> >> > First of all, THANK YOU!  You're doing amazing work!
> >> >> >> >> > Second, I've done some testing on the following devices,
> >> >> >> downloading
> >> >> >> >> > FreeBSD-12.0-CURRENT-amd64-20160809-r303880-disc1.iso from
> >> >> >> >> > ftp.freebsd.org:
> >> >> >> >> >
> >> >> >> >> > - ASUS USB-N10 NANO (RTL8188CUS):
> >> >> >> >> >   rtwn0:  >> 2.00/2.00,
> >> >> >> addr
> >> >> >> >> > 3> on usbus0
> >> >> >> >> >   rtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
> >> >> >> >> >
> >> >> >> >> > - TP-Link TL-WN725N v2 (RTL8188EU):
> >> >> >> >> >   rtwn0:  >> addr 4> on
> >> >> >> >> > usbus0
> >> >> >> >> >   rtwn0: MAC/BB RTL8188EU, RF 6052 1T1R
> >> >> >> >> >
> >> >> >> >> > - D-Link DWA-131 (RTL8192CU):
> >> >> >> >> >   rtwn0:  >> 2.00/2.00,
> >> >> >> addr
> >> >> >> >> > 3> on usbus0
> >> >> >> >> >   rtwn0: MAC/BB RTL8192CU, RF 6052 2T2R
> >> >> >> >> >
> >> >> >> >> > - TP-Link Archer T4U (RTL8812AU):
> >> >> >> >> >   rtwn0:  >> addr 7> on
> >> >> >> >> > usbus0
> >> >> >> >> >   rtwn0: MAC/BB RTL8812AU, RF 6052 2T2R
> >> >> >> >> >
> >> >> >> >> > - D-Link DWA-171 rev A1 (RTL8821AU):
> >> >> >> >> >   rtwn0: <802.11n WLAN Adapter> on usbus0
> >> >> >> >> >   rtwn0: MAC/BB RTL8821AU, RF 6052 1T1R
> >> >> >> >> >
> >> >> >> >> > - RTL8188CE mini pcie:
> >> >> >> >> >   rtwn0:  port 0xd000-0xd0ff mem
> >> >> >> >> > 0x9080-0x90803fff irq 17 at device 0.0 on pci1
> >> >> >> >> >   rtwn0: r92ce_attach: warning: hardware crypto enabled
> >> >> >> >> >   rtwn0: MAC/BB RTL8188CE, RF 6052 1T1R
> >> >> >> >> >
> >> >> >> >> > All seems to be ok, except RTL8188CE PCIe adapter doesn't  
> >> work:
> >> >> >> >> >
> >> >> >> >> > rtwn0: r92ce_post_init: warning: net80211 ratectl is used
> >> >> >> >> > rtwn0: device timeout
> >> >> >> >> >
> >> >> >> >> >   Kevin
> >> >> >> >> >
> >> >> >> >> > On Mon, Sep 19, 2016 at 04:26:38PM +0300, Andriy Voskoboinyk  
> >> wrote:
> 

Re: urtwn(4) / rtwn(4) drivers are merged - call for review / testing

2016-10-07 Thread Andriy Voskoboinyk

Mon, 03 Oct 2016 03:55:23 +0300 було написано Kevin Lo :

Hi!

Can you refresh the tree and retest it (dev.rtwn.0.debug=0x829f) ?

P.S. If Rx is still broken (status is always 0) try to execute
'ifconfig wlan0 promisc'


On Sun, Oct 02, 2016 at 10:15:49AM -0700, Adrian Chadd wrote:


hi,


Hi Adrian,


can you turn on debugging? Do you see RX frames?


No Rx frames.  The log is pretty much the same one I sent on the list:
https://lists.freebsd.org/pipermail/freebsd-wireless/2016-September/007093.html


-a


Thanks,
Kevin


On 1 October 2016 at 08:09, Kevin Lo  wrote:
> Strange, rtwn(4) stops working.  I tried to scan for the available  
network,

> but it just returns empty results.
>
> On Fri, Sep 23, 2016 at 02:44:13PM +0300, Andriy Voskoboinyk wrote:
>>
>> Fri, 23 Sep 2016 10:18:30 +0300 було написано Kevin Lo  
:

>>
>> Few more questions:
>> 1) does it work with h/w encryption support? (enabled by default)
>> (if 'yes' - I will remove 'hardware crypto enabled' warning).
>> 2) is there rate control support? (wlandebug -i wlan0 rate ; then  
transmit

>> something - if it works then AMRR will print it's current status
>> periodically)
>> 3) can you test some disabled capabilities? (ad-hoc/AP modes, 11n)
>> (see r92ce_adj_devcaps() in  
sys/dev/rtwn/rtl8192c/pci/r92ce_attach.c).

>>
>> > It works for me, thanks :)
>> >
>> > Kevin
>> >
>> > On Fri, Sep 23, 2016 at 09:08:15AM +0300, Andriy Voskoboinyk wrote:
>> >>
>> >> Fri, 23 Sep 2016 04:58:40 +0300 було написано Kevin Lo
>> >> :
>> >>
>> >> Thanks for the log file,
>> >>
>> >> Tx 'device timeouts' should be fixed in
>> >>  
https://github.com/s3erios/rtwn/commit/f78d51b6ed8590e3aeb65fbf616aa767034a89f5

>> >> (currently I'm reviewing PCI-specific code to see if there are any
>> >> additional
>> >> issues - e.g., there are no Rx events in the log file).
>> >>
>> >> > On Thu, Sep 22, 2016 at 01:54:21PM +0300, Andriy Voskoboinyk  
wrote:

>> >> >>
>> >> >> Thu, 22 Sep 2016 12:24:42 +0300 було написано Kevin Lo
>> >> >> :
>> >> >>
>> >> >> Hi,
>> >> >>
>> >> >> So, the driver was fully tested. Thanks!
>> >> >> Can you set dev.rtwn.0.debug=0x829f for RTL8188CE to see how  
big

>> >> >> the problem is?
>> >> >
>> >> > Sure.  Here you go
>> >> https://people.freebsd.org/~kevlo/rtl8188ce-debug.txt
>> >> >
>> >> > Thanks,
>> >> > Kevin
>> >> >
>> >> >> > Hi Andriy,
>> >> >> >
>> >> >> > First of all, THANK YOU!  You're doing amazing work!
>> >> >> > Second, I've done some testing on the following devices,
>> >> downloading
>> >> >> > FreeBSD-12.0-CURRENT-amd64-20160809-r303880-disc1.iso from
>> >> >> > ftp.freebsd.org:
>> >> >> >
>> >> >> > - ASUS USB-N10 NANO (RTL8188CUS):
>> >> >> >   rtwn0: 2.00/2.00,

>> >> addr
>> >> >> > 3> on usbus0
>> >> >> >   rtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
>> >> >> >
>> >> >> > - TP-Link TL-WN725N v2 (RTL8188EU):
>> >> >> >   rtwn0: addr 4> on

>> >> >> > usbus0
>> >> >> >   rtwn0: MAC/BB RTL8188EU, RF 6052 1T1R
>> >> >> >
>> >> >> > - D-Link DWA-131 (RTL8192CU):
>> >> >> >   rtwn0: 2.00/2.00,

>> >> addr
>> >> >> > 3> on usbus0
>> >> >> >   rtwn0: MAC/BB RTL8192CU, RF 6052 2T2R
>> >> >> >
>> >> >> > - TP-Link Archer T4U (RTL8812AU):
>> >> >> >   rtwn0: addr 7> on

>> >> >> > usbus0
>> >> >> >   rtwn0: MAC/BB RTL8812AU, RF 6052 2T2R
>> >> >> >
>> >> >> > - D-Link DWA-171 rev A1 (RTL8821AU):
>> >> >> >   rtwn0: <802.11n WLAN Adapter> on usbus0
>> >> >> >   rtwn0: MAC/BB RTL8821AU, RF 6052 1T1R
>> >> >> >
>> >> >> > - RTL8188CE mini pcie:
>> >> >> >   rtwn0:  port 0xd000-0xd0ff mem
>> >> >> > 0x9080-0x90803fff irq 17 at device 0.0 on pci1
>> >> >> >   rtwn0: r92ce_attach: warning: hardware crypto enabled
>> >> >> >   rtwn0: MAC/BB RTL8188CE, RF 6052 1T1R
>> >> >> >
>> >> >> > All seems to be ok, except RTL8188CE PCIe adapter doesn't  
work:

>> >> >> >
>> >> >> > rtwn0: r92ce_post_init: warning: net80211 ratectl is used
>> >> >> > rtwn0: device timeout
>> >> >> >
>> >> >> >   Kevin
>> >> >> >
>> >> >> > On Mon, Sep 19, 2016 at 04:26:38PM +0300, Andriy Voskoboinyk  
wrote:

>> >> >> >>
>> >> >> >> Thu, 01 Sep 2016 19:29:03 +0300 було написано Andriy  
Voskoboinyk

>> >> >> >> :
>> >> >> >>
>> >> >> >> Now it resides on https://github.com/s3erios/freebsd-rtwn
>> >> (integrated
>> >> >> >> into src tree, so it can be built with 'make buildkernel' /  
'make

>> >> >> >> buildworld').
>> >> >> >>
>> >> >> >> This the last stage; once all reported issues will be  
resolved,

>> >> I'm
>> >> >> >> going to merge it into HEAD.
>> >> >> >>
>> >> >> >> > 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 

Re: urtwn(4) / rtwn(4) drivers are merged - call for review / testing

2016-10-02 Thread Kevin Lo
On Sun, Oct 02, 2016 at 10:15:49AM -0700, Adrian Chadd wrote:
> 
> hi,

Hi Adrian,

> can you turn on debugging? Do you see RX frames?

No Rx frames.  The log is pretty much the same one I sent on the list:
https://lists.freebsd.org/pipermail/freebsd-wireless/2016-September/007093.html

> -a

Thanks,
Kevin

> On 1 October 2016 at 08:09, Kevin Lo  wrote:
> > Strange, rtwn(4) stops working.  I tried to scan for the available network,
> > but it just returns empty results.
> >
> > On Fri, Sep 23, 2016 at 02:44:13PM +0300, Andriy Voskoboinyk wrote:
> >>
> >> Fri, 23 Sep 2016 10:18:30 +0300 було написано Kevin Lo :
> >>
> >> Few more questions:
> >> 1) does it work with h/w encryption support? (enabled by default)
> >> (if 'yes' - I will remove 'hardware crypto enabled' warning).
> >> 2) is there rate control support? (wlandebug -i wlan0 rate ; then transmit
> >> something - if it works then AMRR will print it's current status
> >> periodically)
> >> 3) can you test some disabled capabilities? (ad-hoc/AP modes, 11n)
> >> (see r92ce_adj_devcaps() in sys/dev/rtwn/rtl8192c/pci/r92ce_attach.c).
> >>
> >> > It works for me, thanks :)
> >> >
> >> > Kevin
> >> >
> >> > On Fri, Sep 23, 2016 at 09:08:15AM +0300, Andriy Voskoboinyk wrote:
> >> >>
> >> >> Fri, 23 Sep 2016 04:58:40 +0300 було написано Kevin Lo
> >> >> :
> >> >>
> >> >> Thanks for the log file,
> >> >>
> >> >> Tx 'device timeouts' should be fixed in
> >> >> https://github.com/s3erios/rtwn/commit/f78d51b6ed8590e3aeb65fbf616aa767034a89f5
> >> >> (currently I'm reviewing PCI-specific code to see if there are any
> >> >> additional
> >> >> issues - e.g., there are no Rx events in the log file).
> >> >>
> >> >> > On Thu, Sep 22, 2016 at 01:54:21PM +0300, Andriy Voskoboinyk wrote:
> >> >> >>
> >> >> >> Thu, 22 Sep 2016 12:24:42 +0300 було написано Kevin Lo
> >> >> >> :
> >> >> >>
> >> >> >> Hi,
> >> >> >>
> >> >> >> So, the driver was fully tested. Thanks!
> >> >> >> Can you set dev.rtwn.0.debug=0x829f for RTL8188CE to see how big
> >> >> >> the problem is?
> >> >> >
> >> >> > Sure.  Here you go
> >> >> https://people.freebsd.org/~kevlo/rtl8188ce-debug.txt
> >> >> >
> >> >> > Thanks,
> >> >> > Kevin
> >> >> >
> >> >> >> > Hi Andriy,
> >> >> >> >
> >> >> >> > First of all, THANK YOU!  You're doing amazing work!
> >> >> >> > Second, I've done some testing on the following devices,
> >> >> downloading
> >> >> >> > FreeBSD-12.0-CURRENT-amd64-20160809-r303880-disc1.iso from
> >> >> >> > ftp.freebsd.org:
> >> >> >> >
> >> >> >> > - ASUS USB-N10 NANO (RTL8188CUS):
> >> >> >> >   rtwn0:  >> >> addr
> >> >> >> > 3> on usbus0
> >> >> >> >   rtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
> >> >> >> >
> >> >> >> > - TP-Link TL-WN725N v2 (RTL8188EU):
> >> >> >> >   rtwn0:  on
> >> >> >> > usbus0
> >> >> >> >   rtwn0: MAC/BB RTL8188EU, RF 6052 1T1R
> >> >> >> >
> >> >> >> > - D-Link DWA-131 (RTL8192CU):
> >> >> >> >   rtwn0:  >> >> addr
> >> >> >> > 3> on usbus0
> >> >> >> >   rtwn0: MAC/BB RTL8192CU, RF 6052 2T2R
> >> >> >> >
> >> >> >> > - TP-Link Archer T4U (RTL8812AU):
> >> >> >> >   rtwn0:  on
> >> >> >> > usbus0
> >> >> >> >   rtwn0: MAC/BB RTL8812AU, RF 6052 2T2R
> >> >> >> >
> >> >> >> > - D-Link DWA-171 rev A1 (RTL8821AU):
> >> >> >> >   rtwn0: <802.11n WLAN Adapter> on usbus0
> >> >> >> >   rtwn0: MAC/BB RTL8821AU, RF 6052 1T1R
> >> >> >> >
> >> >> >> > - RTL8188CE mini pcie:
> >> >> >> >   rtwn0:  port 0xd000-0xd0ff mem
> >> >> >> > 0x9080-0x90803fff irq 17 at device 0.0 on pci1
> >> >> >> >   rtwn0: r92ce_attach: warning: hardware crypto enabled
> >> >> >> >   rtwn0: MAC/BB RTL8188CE, RF 6052 1T1R
> >> >> >> >
> >> >> >> > All seems to be ok, except RTL8188CE PCIe adapter doesn't work:
> >> >> >> >
> >> >> >> > rtwn0: r92ce_post_init: warning: net80211 ratectl is used
> >> >> >> > rtwn0: device timeout
> >> >> >> >
> >> >> >> >   Kevin
> >> >> >> >
> >> >> >> > On Mon, Sep 19, 2016 at 04:26:38PM +0300, Andriy Voskoboinyk wrote:
> >> >> >> >>
> >> >> >> >> Thu, 01 Sep 2016 19:29:03 +0300 було написано Andriy Voskoboinyk
> >> >> >> >> :
> >> >> >> >>
> >> >> >> >> Now it resides on https://github.com/s3erios/freebsd-rtwn
> >> >> (integrated
> >> >> >> >> into src tree, so it can be built with 'make buildkernel' / 'make
> >> >> >> >> buildworld').
> >> >> >> >>
> >> >> >> >> This the last stage; once all reported issues will be resolved,
> >> >> I'm
> >> >> >> >> going to merge it into HEAD.
> >> >> >> >>
> >> >> >> >> > 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) 

Re: urtwn(4) / rtwn(4) drivers are merged - call for review / testing

2016-10-02 Thread Adrian Chadd
hi,

can you turn on debugging? Do you see RX frames?


-a


On 1 October 2016 at 08:09, Kevin Lo  wrote:
> Strange, rtwn(4) stops working.  I tried to scan for the available network,
> but it just returns empty results.
>
> On Fri, Sep 23, 2016 at 02:44:13PM +0300, Andriy Voskoboinyk wrote:
>>
>> Fri, 23 Sep 2016 10:18:30 +0300 було написано Kevin Lo :
>>
>> Few more questions:
>> 1) does it work with h/w encryption support? (enabled by default)
>> (if 'yes' - I will remove 'hardware crypto enabled' warning).
>> 2) is there rate control support? (wlandebug -i wlan0 rate ; then transmit
>> something - if it works then AMRR will print it's current status
>> periodically)
>> 3) can you test some disabled capabilities? (ad-hoc/AP modes, 11n)
>> (see r92ce_adj_devcaps() in sys/dev/rtwn/rtl8192c/pci/r92ce_attach.c).
>>
>> > It works for me, thanks :)
>> >
>> > Kevin
>> >
>> > On Fri, Sep 23, 2016 at 09:08:15AM +0300, Andriy Voskoboinyk wrote:
>> >>
>> >> Fri, 23 Sep 2016 04:58:40 +0300 було написано Kevin Lo
>> >> :
>> >>
>> >> Thanks for the log file,
>> >>
>> >> Tx 'device timeouts' should be fixed in
>> >> https://github.com/s3erios/rtwn/commit/f78d51b6ed8590e3aeb65fbf616aa767034a89f5
>> >> (currently I'm reviewing PCI-specific code to see if there are any
>> >> additional
>> >> issues - e.g., there are no Rx events in the log file).
>> >>
>> >> > On Thu, Sep 22, 2016 at 01:54:21PM +0300, Andriy Voskoboinyk wrote:
>> >> >>
>> >> >> Thu, 22 Sep 2016 12:24:42 +0300 було написано Kevin Lo
>> >> >> :
>> >> >>
>> >> >> Hi,
>> >> >>
>> >> >> So, the driver was fully tested. Thanks!
>> >> >> Can you set dev.rtwn.0.debug=0x829f for RTL8188CE to see how big
>> >> >> the problem is?
>> >> >
>> >> > Sure.  Here you go
>> >> https://people.freebsd.org/~kevlo/rtl8188ce-debug.txt
>> >> >
>> >> > Thanks,
>> >> > Kevin
>> >> >
>> >> >> > Hi Andriy,
>> >> >> >
>> >> >> > First of all, THANK YOU!  You're doing amazing work!
>> >> >> > Second, I've done some testing on the following devices,
>> >> downloading
>> >> >> > FreeBSD-12.0-CURRENT-amd64-20160809-r303880-disc1.iso from
>> >> >> > ftp.freebsd.org:
>> >> >> >
>> >> >> > - ASUS USB-N10 NANO (RTL8188CUS):
>> >> >> >   rtwn0: > >> addr
>> >> >> > 3> on usbus0
>> >> >> >   rtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
>> >> >> >
>> >> >> > - TP-Link TL-WN725N v2 (RTL8188EU):
>> >> >> >   rtwn0:  on
>> >> >> > usbus0
>> >> >> >   rtwn0: MAC/BB RTL8188EU, RF 6052 1T1R
>> >> >> >
>> >> >> > - D-Link DWA-131 (RTL8192CU):
>> >> >> >   rtwn0: > >> addr
>> >> >> > 3> on usbus0
>> >> >> >   rtwn0: MAC/BB RTL8192CU, RF 6052 2T2R
>> >> >> >
>> >> >> > - TP-Link Archer T4U (RTL8812AU):
>> >> >> >   rtwn0:  on
>> >> >> > usbus0
>> >> >> >   rtwn0: MAC/BB RTL8812AU, RF 6052 2T2R
>> >> >> >
>> >> >> > - D-Link DWA-171 rev A1 (RTL8821AU):
>> >> >> >   rtwn0: <802.11n WLAN Adapter> on usbus0
>> >> >> >   rtwn0: MAC/BB RTL8821AU, RF 6052 1T1R
>> >> >> >
>> >> >> > - RTL8188CE mini pcie:
>> >> >> >   rtwn0:  port 0xd000-0xd0ff mem
>> >> >> > 0x9080-0x90803fff irq 17 at device 0.0 on pci1
>> >> >> >   rtwn0: r92ce_attach: warning: hardware crypto enabled
>> >> >> >   rtwn0: MAC/BB RTL8188CE, RF 6052 1T1R
>> >> >> >
>> >> >> > All seems to be ok, except RTL8188CE PCIe adapter doesn't work:
>> >> >> >
>> >> >> > rtwn0: r92ce_post_init: warning: net80211 ratectl is used
>> >> >> > rtwn0: device timeout
>> >> >> >
>> >> >> >   Kevin
>> >> >> >
>> >> >> > On Mon, Sep 19, 2016 at 04:26:38PM +0300, Andriy Voskoboinyk wrote:
>> >> >> >>
>> >> >> >> Thu, 01 Sep 2016 19:29:03 +0300 було написано Andriy Voskoboinyk
>> >> >> >> :
>> >> >> >>
>> >> >> >> Now it resides on https://github.com/s3erios/freebsd-rtwn
>> >> (integrated
>> >> >> >> into src tree, so it can be built with 'make buildkernel' / 'make
>> >> >> >> buildworld').
>> >> >> >>
>> >> >> >> This the last stage; once all reported issues will be resolved,
>> >> I'm
>> >> >> >> going to merge it into HEAD.
>> >> >> >>
>> >> >> >> > 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
>> >> >> >> > 

Re: urtwn(4) / rtwn(4) drivers are merged - call for review / testing

2016-10-01 Thread Kevin Lo
Strange, rtwn(4) stops working.  I tried to scan for the available network,
but it just returns empty results.

On Fri, Sep 23, 2016 at 02:44:13PM +0300, Andriy Voskoboinyk wrote:
> 
> Fri, 23 Sep 2016 10:18:30 +0300 було написано Kevin Lo :
> 
> Few more questions:
> 1) does it work with h/w encryption support? (enabled by default)
> (if 'yes' - I will remove 'hardware crypto enabled' warning).
> 2) is there rate control support? (wlandebug -i wlan0 rate ; then transmit
> something - if it works then AMRR will print it's current status  
> periodically)
> 3) can you test some disabled capabilities? (ad-hoc/AP modes, 11n)
> (see r92ce_adj_devcaps() in sys/dev/rtwn/rtl8192c/pci/r92ce_attach.c).
> 
> > It works for me, thanks :)
> >
> > Kevin
> >
> > On Fri, Sep 23, 2016 at 09:08:15AM +0300, Andriy Voskoboinyk wrote:
> >>
> >> Fri, 23 Sep 2016 04:58:40 +0300 було написано Kevin Lo  
> >> :
> >>
> >> Thanks for the log file,
> >>
> >> Tx 'device timeouts' should be fixed in
> >> https://github.com/s3erios/rtwn/commit/f78d51b6ed8590e3aeb65fbf616aa767034a89f5
> >> (currently I'm reviewing PCI-specific code to see if there are any
> >> additional
> >> issues - e.g., there are no Rx events in the log file).
> >>
> >> > On Thu, Sep 22, 2016 at 01:54:21PM +0300, Andriy Voskoboinyk wrote:
> >> >>
> >> >> Thu, 22 Sep 2016 12:24:42 +0300 було написано Kevin Lo
> >> >> :
> >> >>
> >> >> Hi,
> >> >>
> >> >> So, the driver was fully tested. Thanks!
> >> >> Can you set dev.rtwn.0.debug=0x829f for RTL8188CE to see how big
> >> >> the problem is?
> >> >
> >> > Sure.  Here you go  
> >> https://people.freebsd.org/~kevlo/rtl8188ce-debug.txt
> >> >
> >> > Thanks,
> >> > Kevin
> >> >
> >> >> > Hi Andriy,
> >> >> >
> >> >> > First of all, THANK YOU!  You're doing amazing work!
> >> >> > Second, I've done some testing on the following devices,  
> >> downloading
> >> >> > FreeBSD-12.0-CURRENT-amd64-20160809-r303880-disc1.iso from
> >> >> > ftp.freebsd.org:
> >> >> >
> >> >> > - ASUS USB-N10 NANO (RTL8188CUS):
> >> >> >   rtwn0:  >> addr
> >> >> > 3> on usbus0
> >> >> >   rtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
> >> >> >
> >> >> > - TP-Link TL-WN725N v2 (RTL8188EU):
> >> >> >   rtwn0:  on
> >> >> > usbus0
> >> >> >   rtwn0: MAC/BB RTL8188EU, RF 6052 1T1R
> >> >> >
> >> >> > - D-Link DWA-131 (RTL8192CU):
> >> >> >   rtwn0:  >> addr
> >> >> > 3> on usbus0
> >> >> >   rtwn0: MAC/BB RTL8192CU, RF 6052 2T2R
> >> >> >
> >> >> > - TP-Link Archer T4U (RTL8812AU):
> >> >> >   rtwn0:  on
> >> >> > usbus0
> >> >> >   rtwn0: MAC/BB RTL8812AU, RF 6052 2T2R
> >> >> >
> >> >> > - D-Link DWA-171 rev A1 (RTL8821AU):
> >> >> >   rtwn0: <802.11n WLAN Adapter> on usbus0
> >> >> >   rtwn0: MAC/BB RTL8821AU, RF 6052 1T1R
> >> >> >
> >> >> > - RTL8188CE mini pcie:
> >> >> >   rtwn0:  port 0xd000-0xd0ff mem
> >> >> > 0x9080-0x90803fff irq 17 at device 0.0 on pci1
> >> >> >   rtwn0: r92ce_attach: warning: hardware crypto enabled
> >> >> >   rtwn0: MAC/BB RTL8188CE, RF 6052 1T1R
> >> >> >
> >> >> > All seems to be ok, except RTL8188CE PCIe adapter doesn't work:
> >> >> >
> >> >> > rtwn0: r92ce_post_init: warning: net80211 ratectl is used
> >> >> > rtwn0: device timeout
> >> >> >
> >> >> >   Kevin
> >> >> >
> >> >> > On Mon, Sep 19, 2016 at 04:26:38PM +0300, Andriy Voskoboinyk wrote:
> >> >> >>
> >> >> >> Thu, 01 Sep 2016 19:29:03 +0300 було написано Andriy Voskoboinyk
> >> >> >> :
> >> >> >>
> >> >> >> Now it resides on https://github.com/s3erios/freebsd-rtwn  
> >> (integrated
> >> >> >> into src tree, so it can be built with 'make buildkernel' / 'make
> >> >> >> buildworld').
> >> >> >>
> >> >> >> This the last stage; once all reported issues will be resolved,  
> >> I'm
> >> >> >> going to merge it into HEAD.
> >> >> >>
> >> >> >> > 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 

Re: urtwn(4) / rtwn(4) drivers are merged - call for review / testing

2016-09-23 Thread Andriy Voskoboinyk

Fri, 23 Sep 2016 10:18:30 +0300 було написано Kevin Lo :

Few more questions:
1) does it work with h/w encryption support? (enabled by default)
(if 'yes' - I will remove 'hardware crypto enabled' warning).
2) is there rate control support? (wlandebug -i wlan0 rate ; then transmit
something - if it works then AMRR will print it's current status  
periodically)

3) can you test some disabled capabilities? (ad-hoc/AP modes, 11n)
(see r92ce_adj_devcaps() in sys/dev/rtwn/rtl8192c/pci/r92ce_attach.c).


It works for me, thanks :)

Kevin

On Fri, Sep 23, 2016 at 09:08:15AM +0300, Andriy Voskoboinyk wrote:


Fri, 23 Sep 2016 04:58:40 +0300 було написано Kevin Lo  
:


Thanks for the log file,

Tx 'device timeouts' should be fixed in
https://github.com/s3erios/rtwn/commit/f78d51b6ed8590e3aeb65fbf616aa767034a89f5
(currently I'm reviewing PCI-specific code to see if there are any
additional
issues - e.g., there are no Rx events in the log file).

> On Thu, Sep 22, 2016 at 01:54:21PM +0300, Andriy Voskoboinyk wrote:
>>
>> Thu, 22 Sep 2016 12:24:42 +0300 було написано Kevin Lo
>> :
>>
>> Hi,
>>
>> So, the driver was fully tested. Thanks!
>> Can you set dev.rtwn.0.debug=0x829f for RTL8188CE to see how big
>> the problem is?
>
> Sure.  Here you go  
https://people.freebsd.org/~kevlo/rtl8188ce-debug.txt

>
> Thanks,
> Kevin
>
>> > Hi Andriy,
>> >
>> > First of all, THANK YOU!  You're doing amazing work!
>> > Second, I've done some testing on the following devices,  
downloading

>> > FreeBSD-12.0-CURRENT-amd64-20160809-r303880-disc1.iso from
>> > ftp.freebsd.org:
>> >
>> > - ASUS USB-N10 NANO (RTL8188CUS):
>> >   rtwn0: addr

>> > 3> on usbus0
>> >   rtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
>> >
>> > - TP-Link TL-WN725N v2 (RTL8188EU):
>> >   rtwn0:  on
>> > usbus0
>> >   rtwn0: MAC/BB RTL8188EU, RF 6052 1T1R
>> >
>> > - D-Link DWA-131 (RTL8192CU):
>> >   rtwn0: addr

>> > 3> on usbus0
>> >   rtwn0: MAC/BB RTL8192CU, RF 6052 2T2R
>> >
>> > - TP-Link Archer T4U (RTL8812AU):
>> >   rtwn0:  on
>> > usbus0
>> >   rtwn0: MAC/BB RTL8812AU, RF 6052 2T2R
>> >
>> > - D-Link DWA-171 rev A1 (RTL8821AU):
>> >   rtwn0: <802.11n WLAN Adapter> on usbus0
>> >   rtwn0: MAC/BB RTL8821AU, RF 6052 1T1R
>> >
>> > - RTL8188CE mini pcie:
>> >   rtwn0:  port 0xd000-0xd0ff mem
>> > 0x9080-0x90803fff irq 17 at device 0.0 on pci1
>> >   rtwn0: r92ce_attach: warning: hardware crypto enabled
>> >   rtwn0: MAC/BB RTL8188CE, RF 6052 1T1R
>> >
>> > All seems to be ok, except RTL8188CE PCIe adapter doesn't work:
>> >
>> > rtwn0: r92ce_post_init: warning: net80211 ratectl is used
>> > rtwn0: device timeout
>> >
>> >   Kevin
>> >
>> > On Mon, Sep 19, 2016 at 04:26:38PM +0300, Andriy Voskoboinyk wrote:
>> >>
>> >> Thu, 01 Sep 2016 19:29:03 +0300 було написано Andriy Voskoboinyk
>> >> :
>> >>
>> >> Now it resides on https://github.com/s3erios/freebsd-rtwn  
(integrated

>> >> into src tree, so it can be built with 'make buildkernel' / 'make
>> >> buildworld').
>> >>
>> >> This the last stage; once all reported issues will be resolved,  
I'm

>> >> going to merge it into HEAD.
>> >>
>> >> > 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-wirel...@freebsd.org 

Re: urtwn(4) / rtwn(4) drivers are merged - call for review / testing

2016-09-23 Thread Kevin Lo
It works for me, thanks :)

Kevin

On Fri, Sep 23, 2016 at 09:08:15AM +0300, Andriy Voskoboinyk wrote:
> 
> Fri, 23 Sep 2016 04:58:40 +0300 було написано Kevin Lo :
> 
> Thanks for the log file,
> 
> Tx 'device timeouts' should be fixed in
> https://github.com/s3erios/rtwn/commit/f78d51b6ed8590e3aeb65fbf616aa767034a89f5
> (currently I'm reviewing PCI-specific code to see if there are any  
> additional
> issues - e.g., there are no Rx events in the log file).
> 
> > On Thu, Sep 22, 2016 at 01:54:21PM +0300, Andriy Voskoboinyk wrote:
> >>
> >> Thu, 22 Sep 2016 12:24:42 +0300 було написано Kevin Lo  
> >> :
> >>
> >> Hi,
> >>
> >> So, the driver was fully tested. Thanks!
> >> Can you set dev.rtwn.0.debug=0x829f for RTL8188CE to see how big
> >> the problem is?
> >
> > Sure.  Here you go https://people.freebsd.org/~kevlo/rtl8188ce-debug.txt
> >
> > Thanks,
> > Kevin
> >
> >> > Hi Andriy,
> >> >
> >> > First of all, THANK YOU!  You're doing amazing work!
> >> > Second, I've done some testing on the following devices, downloading
> >> > FreeBSD-12.0-CURRENT-amd64-20160809-r303880-disc1.iso from
> >> > ftp.freebsd.org:
> >> >
> >> > - ASUS USB-N10 NANO (RTL8188CUS):
> >> >   rtwn0:  >> > 3> on usbus0
> >> >   rtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
> >> >
> >> > - TP-Link TL-WN725N v2 (RTL8188EU):
> >> >   rtwn0:  on
> >> > usbus0
> >> >   rtwn0: MAC/BB RTL8188EU, RF 6052 1T1R
> >> >
> >> > - D-Link DWA-131 (RTL8192CU):
> >> >   rtwn0:  >> > 3> on usbus0
> >> >   rtwn0: MAC/BB RTL8192CU, RF 6052 2T2R
> >> >
> >> > - TP-Link Archer T4U (RTL8812AU):
> >> >   rtwn0:  on
> >> > usbus0
> >> >   rtwn0: MAC/BB RTL8812AU, RF 6052 2T2R
> >> >
> >> > - D-Link DWA-171 rev A1 (RTL8821AU):
> >> >   rtwn0: <802.11n WLAN Adapter> on usbus0
> >> >   rtwn0: MAC/BB RTL8821AU, RF 6052 1T1R
> >> >
> >> > - RTL8188CE mini pcie:
> >> >   rtwn0:  port 0xd000-0xd0ff mem
> >> > 0x9080-0x90803fff irq 17 at device 0.0 on pci1
> >> >   rtwn0: r92ce_attach: warning: hardware crypto enabled
> >> >   rtwn0: MAC/BB RTL8188CE, RF 6052 1T1R
> >> >
> >> > All seems to be ok, except RTL8188CE PCIe adapter doesn't work:
> >> >
> >> > rtwn0: r92ce_post_init: warning: net80211 ratectl is used
> >> > rtwn0: device timeout
> >> >
> >> >  Kevin
> >> >
> >> > On Mon, Sep 19, 2016 at 04:26:38PM +0300, Andriy Voskoboinyk wrote:
> >> >>
> >> >> Thu, 01 Sep 2016 19:29:03 +0300 було написано Andriy Voskoboinyk
> >> >> :
> >> >>
> >> >> Now it resides on https://github.com/s3erios/freebsd-rtwn (integrated
> >> >> into src tree, so it can be built with 'make buildkernel' / 'make
> >> >> buildworld').
> >> >>
> >> >> This the last stage; once all reported issues will be resolved, I'm
> >> >> going to merge it into HEAD.
> >> >>
> >> >> > 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-wirel...@freebsd.org mailing list
> >> >> https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
> >> >> To unsubscribe, send any mail to
> >> >> "freebsd-wireless-unsubscr...@freebsd.org"
> >> >>
> >>
> ___
> freebsd-current@freebsd.org mailing list
> 

Re: urtwn(4) / rtwn(4) drivers are merged - call for review / testing

2016-09-23 Thread Andriy Voskoboinyk

Fri, 23 Sep 2016 04:58:40 +0300 було написано Kevin Lo :

Thanks for the log file,

Tx 'device timeouts' should be fixed in
https://github.com/s3erios/rtwn/commit/f78d51b6ed8590e3aeb65fbf616aa767034a89f5
(currently I'm reviewing PCI-specific code to see if there are any  
additional

issues - e.g., there are no Rx events in the log file).


On Thu, Sep 22, 2016 at 01:54:21PM +0300, Andriy Voskoboinyk wrote:


Thu, 22 Sep 2016 12:24:42 +0300 було написано Kevin Lo  
:


Hi,

So, the driver was fully tested. Thanks!
Can you set dev.rtwn.0.debug=0x829f for RTL8188CE to see how big
the problem is?


Sure.  Here you go https://people.freebsd.org/~kevlo/rtl8188ce-debug.txt

Thanks,
Kevin


> Hi Andriy,
>
> First of all, THANK YOU!  You're doing amazing work!
> Second, I've done some testing on the following devices, downloading
> FreeBSD-12.0-CURRENT-amd64-20160809-r303880-disc1.iso from
> ftp.freebsd.org:
>
> - ASUS USB-N10 NANO (RTL8188CUS):
>   rtwn0:  3> on usbus0
>   rtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
>
> - TP-Link TL-WN725N v2 (RTL8188EU):
>   rtwn0:  on
> usbus0
>   rtwn0: MAC/BB RTL8188EU, RF 6052 1T1R
>
> - D-Link DWA-131 (RTL8192CU):
>   rtwn0:  3> on usbus0
>   rtwn0: MAC/BB RTL8192CU, RF 6052 2T2R
>
> - TP-Link Archer T4U (RTL8812AU):
>   rtwn0:  on
> usbus0
>   rtwn0: MAC/BB RTL8812AU, RF 6052 2T2R
>
> - D-Link DWA-171 rev A1 (RTL8821AU):
>   rtwn0: <802.11n WLAN Adapter> on usbus0
>   rtwn0: MAC/BB RTL8821AU, RF 6052 1T1R
>
> - RTL8188CE mini pcie:
>   rtwn0:  port 0xd000-0xd0ff mem
> 0x9080-0x90803fff irq 17 at device 0.0 on pci1
>   rtwn0: r92ce_attach: warning: hardware crypto enabled
>   rtwn0: MAC/BB RTL8188CE, RF 6052 1T1R
>
> All seems to be ok, except RTL8188CE PCIe adapter doesn't work:
>
> rtwn0: r92ce_post_init: warning: net80211 ratectl is used
> rtwn0: device timeout
>
>Kevin
>
> On Mon, Sep 19, 2016 at 04:26:38PM +0300, Andriy Voskoboinyk wrote:
>>
>> Thu, 01 Sep 2016 19:29:03 +0300 було написано Andriy Voskoboinyk
>> :
>>
>> Now it resides on https://github.com/s3erios/freebsd-rtwn (integrated
>> into src tree, so it can be built with 'make buildkernel' / 'make
>> buildworld').
>>
>> This the last stage; once all reported issues will be resolved, I'm
>> going to merge it into HEAD.
>>
>> > 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-wirel...@freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
>> To unsubscribe, send any mail to
>> "freebsd-wireless-unsubscr...@freebsd.org"
>>


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

Re: urtwn(4) / rtwn(4) drivers are merged - call for review / testing

2016-09-22 Thread Kevin Lo
On Thu, Sep 22, 2016 at 01:54:21PM +0300, Andriy Voskoboinyk wrote:
> 
> Thu, 22 Sep 2016 12:24:42 +0300 було написано Kevin Lo :
> 
> Hi,
> 
> So, the driver was fully tested. Thanks!
> Can you set dev.rtwn.0.debug=0x829f for RTL8188CE to see how big
> the problem is?

Sure.  Here you go https://people.freebsd.org/~kevlo/rtl8188ce-debug.txt

Thanks,
Kevin

> > Hi Andriy,
> >
> > First of all, THANK YOU!  You're doing amazing work!
> > Second, I've done some testing on the following devices, downloading
> > FreeBSD-12.0-CURRENT-amd64-20160809-r303880-disc1.iso from  
> > ftp.freebsd.org:
> >
> > - ASUS USB-N10 NANO (RTL8188CUS):
> >   rtwn0:  > 3> on usbus0
> >   rtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
> >
> > - TP-Link TL-WN725N v2 (RTL8188EU):
> >   rtwn0:  on  
> > usbus0
> >   rtwn0: MAC/BB RTL8188EU, RF 6052 1T1R
> >
> > - D-Link DWA-131 (RTL8192CU):
> >   rtwn0:  > 3> on usbus0
> >   rtwn0: MAC/BB RTL8192CU, RF 6052 2T2R
> >
> > - TP-Link Archer T4U (RTL8812AU):
> >   rtwn0:  on  
> > usbus0
> >   rtwn0: MAC/BB RTL8812AU, RF 6052 2T2R
> >
> > - D-Link DWA-171 rev A1 (RTL8821AU):
> >   rtwn0: <802.11n WLAN Adapter> on usbus0
> >   rtwn0: MAC/BB RTL8821AU, RF 6052 1T1R
> >
> > - RTL8188CE mini pcie:
> >   rtwn0:  port 0xd000-0xd0ff mem  
> > 0x9080-0x90803fff irq 17 at device 0.0 on pci1
> >   rtwn0: r92ce_attach: warning: hardware crypto enabled
> >   rtwn0: MAC/BB RTL8188CE, RF 6052 1T1R
> >
> > All seems to be ok, except RTL8188CE PCIe adapter doesn't work:
> >
> > rtwn0: r92ce_post_init: warning: net80211 ratectl is used
> > rtwn0: device timeout
> >
> > Kevin
> >
> > On Mon, Sep 19, 2016 at 04:26:38PM +0300, Andriy Voskoboinyk wrote:
> >>
> >> Thu, 01 Sep 2016 19:29:03 +0300 було написано Andriy Voskoboinyk
> >> :
> >>
> >> Now it resides on https://github.com/s3erios/freebsd-rtwn (integrated
> >> into src tree, so it can be built with 'make buildkernel' / 'make
> >> buildworld').
> >>
> >> This the last stage; once all reported issues will be resolved, I'm
> >> going to merge it into HEAD.
> >>
> >> > 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-wirel...@freebsd.org mailing list
> >> https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
> >> To unsubscribe, send any mail to  
> >> "freebsd-wireless-unsubscr...@freebsd.org"
> >>
> 
> 
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: urtwn(4) / rtwn(4) drivers are merged - call for review / testing

2016-09-22 Thread Andriy Voskoboinyk

Thu, 22 Sep 2016 12:24:42 +0300 було написано Kevin Lo :

Hi,

So, the driver was fully tested. Thanks!
Can you set dev.rtwn.0.debug=0x829f for RTL8188CE to see how big
the problem is?


Hi Andriy,

First of all, THANK YOU!  You're doing amazing work!
Second, I've done some testing on the following devices, downloading
FreeBSD-12.0-CURRENT-amd64-20160809-r303880-disc1.iso from  
ftp.freebsd.org:


- ASUS USB-N10 NANO (RTL8188CUS):
  rtwn0: 3> on usbus0

  rtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R

- TP-Link TL-WN725N v2 (RTL8188EU):
  rtwn0:  on  
usbus0

  rtwn0: MAC/BB RTL8188EU, RF 6052 1T1R

- D-Link DWA-131 (RTL8192CU):
  rtwn0: 3> on usbus0

  rtwn0: MAC/BB RTL8192CU, RF 6052 2T2R

- TP-Link Archer T4U (RTL8812AU):
  rtwn0:  on  
usbus0

  rtwn0: MAC/BB RTL8812AU, RF 6052 2T2R

- D-Link DWA-171 rev A1 (RTL8821AU):
  rtwn0: <802.11n WLAN Adapter> on usbus0
  rtwn0: MAC/BB RTL8821AU, RF 6052 1T1R

- RTL8188CE mini pcie:
  rtwn0:  port 0xd000-0xd0ff mem  
0x9080-0x90803fff irq 17 at device 0.0 on pci1

  rtwn0: r92ce_attach: warning: hardware crypto enabled
  rtwn0: MAC/BB RTL8188CE, RF 6052 1T1R

All seems to be ok, except RTL8188CE PCIe adapter doesn't work:

rtwn0: r92ce_post_init: warning: net80211 ratectl is used
rtwn0: device timeout

Kevin

On Mon, Sep 19, 2016 at 04:26:38PM +0300, Andriy Voskoboinyk wrote:


Thu, 01 Sep 2016 19:29:03 +0300 було написано Andriy Voskoboinyk
:

Now it resides on https://github.com/s3erios/freebsd-rtwn (integrated
into src tree, so it can be built with 'make buildkernel' / 'make
buildworld').

This the last stage; once all reported issues will be resolved, I'm
going to merge it into HEAD.

> 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-wirel...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to  
"freebsd-wireless-unsubscr...@freebsd.org"



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

Re: urtwn(4) / rtwn(4) drivers are merged - call for review / testing

2016-09-22 Thread Kevin Lo
Hi Andriy,

First of all, THANK YOU!  You're doing amazing work!
Second, I've done some testing on the following devices, downloading
FreeBSD-12.0-CURRENT-amd64-20160809-r303880-disc1.iso from ftp.freebsd.org:

- ASUS USB-N10 NANO (RTL8188CUS):
  rtwn0:  on 
usbus0
  rtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R

- TP-Link TL-WN725N v2 (RTL8188EU):
  rtwn0:  on usbus0
  rtwn0: MAC/BB RTL8188EU, RF 6052 1T1R

- D-Link DWA-131 (RTL8192CU):
  rtwn0:  on 
usbus0
  rtwn0: MAC/BB RTL8192CU, RF 6052 2T2R

- TP-Link Archer T4U (RTL8812AU):
  rtwn0:  on usbus0
  rtwn0: MAC/BB RTL8812AU, RF 6052 2T2R

- D-Link DWA-171 rev A1 (RTL8821AU):
  rtwn0: <802.11n WLAN Adapter> on usbus0
  rtwn0: MAC/BB RTL8821AU, RF 6052 1T1R

- RTL8188CE mini pcie:
  rtwn0:  port 0xd000-0xd0ff mem 0x9080-0x90803fff irq 
17 at device 0.0 on pci1
  rtwn0: r92ce_attach: warning: hardware crypto enabled
  rtwn0: MAC/BB RTL8188CE, RF 6052 1T1R

All seems to be ok, except RTL8188CE PCIe adapter doesn't work:

rtwn0: r92ce_post_init: warning: net80211 ratectl is used
rtwn0: device timeout

Kevin

On Mon, Sep 19, 2016 at 04:26:38PM +0300, Andriy Voskoboinyk wrote:
> 
> Thu, 01 Sep 2016 19:29:03 +0300 було написано Andriy Voskoboinyk  
> :
> 
> Now it resides on https://github.com/s3erios/freebsd-rtwn (integrated
> into src tree, so it can be built with 'make buildkernel' / 'make  
> buildworld').
> 
> This the last stage; once all reported issues will be resolved, I'm
> going to merge it into HEAD.
> 
> > 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-wirel...@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
> To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"
> 
> 
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: urtwn(4) / rtwn(4) drivers are merged - call for review / testing

2016-09-19 Thread Andriy Voskoboinyk

hi,

I'll try it out tonight! Is the rtwn repo still "ok" to try as a
standalone thing?



Yes, sys/{dev/rtwn,modules} subtree is the same.


The usbdevs patch is fine standalone - would you like to just commit
this in advance?



Done in r305991.





-adrian


On 19 September 2016 at 06:26, Andriy Voskoboinyk   
wrote:

Thu, 01 Sep 2016 19:29:03 +0300 було написано Andriy Voskoboinyk
:

Now it resides on https://github.com/s3erios/freebsd-rtwn (integrated
into src tree, so it can be built with 'make buildkernel' / 'make
buildworld').

This the last stage; once all reported issues will be resolved, I'm
going to merge it into HEAD.


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-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to  
"freebsd-current-unsubscr...@freebsd.org"

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

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

Re: urtwn(4) / rtwn(4) drivers are merged - call for review / testing

2016-09-19 Thread Andriy Voskoboinyk
Mon, 19 Sep 2016 20:51:16 +0300 було написано Hans Petter Selasky  
:



On 09/19/16 19:43, Adrian Chadd wrote:

hi,

I'll try it out tonight! Is the rtwn repo still "ok" to try as a
standalone thing?

The usbdevs patch is fine standalone - would you like to just commit
this in advance?



Possibly you should also rebuild /etc/devd/usb.conf to automatically  
load the correct .ko . You changed the .ko name - right?


Yes; now it's called if_rtwn_usb.ko (depends on if_rtwn.ko v2).
The usb.conf file was regenerated in
https://github.com/s3erios/freebsd-rtwn/commit/9360db6bf80520aa9775d51884e212f3892e4667



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

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

Re: urtwn(4) / rtwn(4) drivers are merged - call for review / testing

2016-09-19 Thread Hans Petter Selasky

On 09/19/16 19:43, Adrian Chadd wrote:

hi,

I'll try it out tonight! Is the rtwn repo still "ok" to try as a
standalone thing?

The usbdevs patch is fine standalone - would you like to just commit
this in advance?



Possibly you should also rebuild /etc/devd/usb.conf to automatically 
load the correct .ko . You changed the .ko name - right?


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


Re: urtwn(4) / rtwn(4) drivers are merged - call for review / testing

2016-09-19 Thread Adrian Chadd
hi,

I'll try it out tonight! Is the rtwn repo still "ok" to try as a
standalone thing?

The usbdevs patch is fine standalone - would you like to just commit
this in advance?




-adrian


On 19 September 2016 at 06:26, Andriy Voskoboinyk  wrote:
> Thu, 01 Sep 2016 19:29:03 +0300 було написано Andriy Voskoboinyk
> :
>
> Now it resides on https://github.com/s3erios/freebsd-rtwn (integrated
> into src tree, so it can be built with 'make buildkernel' / 'make
> buildworld').
>
> This the last stage; once all reported issues will be resolved, I'm
> going to merge it into HEAD.
>
>> 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-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: urtwn(4) / rtwn(4) drivers are merged - call for review / testing

2016-09-19 Thread Andriy Voskoboinyk
Thu, 01 Sep 2016 19:29:03 +0300 було написано Andriy Voskoboinyk  
:


Now it resides on https://github.com/s3erios/freebsd-rtwn (integrated
into src tree, so it can be built with 'make buildkernel' / 'make  
buildworld').


This the last stage; once all reported issues will be resolved, I'm
going to merge it into HEAD.


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-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"