Re: urtwm -> rtwm

2016-10-31 Thread Andriy Voskoboinyk
Sun, 30 Oct 2016 14:32:18 +0200 було написано Daniel Braniss  
:


Hi!

rtwn_usb(4) depends on rtwn(4) module; you can try to
1) add them to the kernel config;
2) check / fix WITHOUT_MODULES and MODULES_OVERRIDE make.conf(5) variables
3) compile / install them manually

P.S. There is no 'rtwm' module in the tree; what is the exact error message
where it was?




On 30 Oct 2016, at 14:07, Daniel Braniss  wrote:

hi,
between r30666 and r30808 i lost my wireless,

s/r30666/r306333/ and s/r30808/r308087/

so reading UPDATE clarified why, I also did a mergemaster so now devd  
et.all. seem to be in sync,
but now devd complains that if_rtwn_usb depends on rtwm and there is no  
rtwn, instead there are

several rtwn-rtl8…., the closest being rtwn-rt18188eufw.ko

this is what the old urtwn has to say:
...
Starting devd.
wlan: <802.11 Link Layer>
urtwn0 on uhub1
urtwn0:  on  
usbus0

urtwn0: MAC/BB RTL8188EU, RF 6052 1T1R
urtwn0: enabling 11n
urtwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
urtwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps  
24Mbps 36Mbps 48Mbps 54Mbps

urtwn0: 1T1R
urtwn0: 11ng MCS 20MHz
urtwn0: MCS 0-7: 6.5Mbps - 65Mbps

please help

thanks,
danny

___
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 testing (Was: RTL8812AU / RTL8821AU driver)

2016-10-22 Thread Andriy Voskoboinyk

Sat, 22 Oct 2016 09:22:32 +0300 було написано Kurt Jaeger :

Hi!

You need to compile / load rtwn_pci(4) driver too.

It should be compatible with 11.0-RELEASE (but not with 10 / 9)


Hi!


> 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:
[...]

It took a while to test both, the github version as well as the most
recent version on -CURRENT (r307731) with my RTL8188CE (PCI).


Does this code only work on CURRENT or should it also work on 11.0p1 ?

I've build it on a X220 thinkpad with

none2@pci0:3:0:0:   class=0x028000 card=0x819510ec chip=0x817610ec  
rev=0x01 hdr=0x00

vendor = 'Realtek Semiconductor Co., Ltd.'
device = 'RTL8188CE 802.11b/g/n WiFi Adapter'
class  = network
bar   [10] = type I/O Port, range 32, base 0x5000, size 256, enabled
bar   [18] = type Memory, range 64, base 0xf240, size 16384,  
enabled


and tried to reboot with

if_rtwn_load="YES"
legal.realtek.license_ack=1
rtwn-rtl8192cfwU_load="YES"
rtwn-rtl8192cfwU_B_load="YES"

in /boot/loader.conf. The device was not found/detected.

kldstat finds those (I did a kldload rtwn-* post-boot):

Id Refs AddressSize Name
 1   55 0x8020 1fa7c38  kernel
 21 0x821a9000 30aee8   zfs.ko
 32 0x824b4000 adc8 opensolaris.ko
 41 0x824bf000 21be8geom_eli.ko
 51 0x824e2000 b3f0 aesni.ko
 61 0x824ee000 23ce8if_rtwn.ko
 71 0x82512000 5368 rtwn-rtl8192cfwU.ko
 81 0x8273d000 3980 umodem.ko
 91 0x82741000 53e3 ucom.ko
101 0x82747000 5769 if_cdce.ko
111 0x8274d000 2bf2 uether.ko
121 0x8275 2324fipfw.ko
131 0x82774000 3d84 rtwn-rtl8188eufw.ko
141 0x82778000 4117 rtwn-rtl8192cfwE.ko
151 0x8277d000 4704 rtwn-rtl8192cfwE_B.ko
161 0x82782000 462a rtwn-rtl8192cfwT.ko
171 0x82787000 846b rtwn-rtl8812aufw.ko
181 0x8279 73cb rtwn-rtl8821aufw.ko

Now I need some pointers on what I can do 8-}

___
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 <ke...@freebsd.org>:

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  
<ke...@freebsd.org>:


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
>> <ke...@freebsd.org>:
>>
>> 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 Andriy Voskoboinyk

Tue, 11 Oct 2016 04:27:02 +0300 було написано Kevin Lo <ke...@freebsd.org>:

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  
<ke...@freebsd.org>:


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-07 Thread Andriy Voskoboinyk

Mon, 03 Oct 2016 03:55:23 +0300 було написано Kevin Lo <ke...@freebsd.org>:

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 <ke...@freebsd.org> 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  
<ke...@freebsd.org>:

>>
>> 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
>> >> <ke...@freebsd.org>:
>> >>
>> >> 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
>> >> >> <ke...@freebsd.org>:
>> >> >>
>> >> >> 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

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 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?

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-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 testing (Was: RTL8812AU / RTL8821AU driver)

2016-09-26 Thread Andriy Voskoboinyk
Mon, 26 Sep 2016 22:46:58 +0300 було написано Renato Botelho  
<ga...@freebsd.org>:


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 <a...@freebsd.org> 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-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-23 Thread Andriy Voskoboinyk

Fri, 23 Sep 2016 10:18:30 +0300 було написано Kevin Lo <ke...@freebsd.org>:

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  
<ke...@freebsd.org>:


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
>> <ke...@freebsd.org>:
>>
>> 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
>> >> <a...@freebsd.org>:
>> >>
>> >> 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) (inco

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 <ke...@freebsd.org>:

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  
<ke...@freebsd.org>:


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
>> <a...@freebsd.org>:
>>
>> 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 <ke...@freebsd.org>:

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
<a...@freebsd.org>:

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 <a...@freebsd.org>  
wrote:

Thu, 01 Sep 2016 19:29:03 +0300 було написано Andriy Voskoboinyk
<a...@freebsd.org>:

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 Andriy Voskoboinyk
Thu, 01 Sep 2016 19:29:03 +0300 було написано Andriy Voskoboinyk  
<a...@freebsd.org>:


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"

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  
<m...@freebsd.org>:


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

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-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: IWM(7260), no connect

2016-07-28 Thread Andriy Voskoboinyk
Thu, 28 Jul 2016 05:39:55 +0300 було написано Larry Rosenman  
:


Try to revert r303418 (as I can see, r303416 and/or r303413 are not the  
reason

of this).

In case, if this will not help, you can try to add
wlandebug_wlan0="state+scan+auth+assoc"
into rc.conf to see where it fails.


I'm running today's top of tree, and it doesn't seem to want to connect:


re0: flags=8843 metric 0 mtu 1500

options=8209b
ether 20:47:47:73:07:5f
inet6 fe80::2247:47ff:fe73:75f%re0 prefixlen 64 scopeid 0x1
inet6 2001:470:1f0f:42c:2247:47ff:fe73:75f prefixlen 64 autoconf
inet 192.168.200.246 netmask 0xfc00 broadcast 192.168.203.255
nd6 options=23
media: Ethernet autoselect (1000baseT )
status: active
lo0: flags=8049 metric 0 mtu 16384
options=63
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff00
nd6 options=21
groups: lo
wlan0: flags=8c43 metric  
0 mtu 1500

ether 58:91:cf:1a:45:69
inet6 fe80::5a91:cfff:fe1a:4569%wlan0 prefixlen 64 scopeid 0x3
nd6 options=23
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
ssid "" channel 8 (2447 MHz 11g)
regdomain FCC country US authmode WPA1+WPA2/802.11i privacy ON
deftxkey UNDEF txpower 30 bmiss 10 scanvalid 60 protmode CTS wme
roaming MANUAL
groups: wlan


hostb0@pci0:0:0:0:	class=0x06 card=0x07061028 chip=0x19108086  
rev=0x07 hdr=0x00

vendor = 'Intel Corporation'
device = 'Skylake Host Bridge/DRAM Registers'
class  = bridge
subclass   = HOST-PCI
pcib1@pci0:0:1:0:	class=0x060400 card=0x20158086 chip=0x19018086  
rev=0x07 hdr=0x01

vendor = 'Intel Corporation'
device = 'Skylake PCIe Controller (x16)'
class  = bridge
subclass   = PCI-PCI
pcib2@pci0:0:1:1:	class=0x060400 card=0x07061028 chip=0x19058086  
rev=0x07 hdr=0x01

vendor = 'Intel Corporation'
device = 'Skylake PCIe Controller (x8)'
class  = bridge
subclass   = PCI-PCI
vgapci1@pci0:0:2:0:	class=0x03 card=0x07061028 chip=0x191b8086  
rev=0x06 hdr=0x00

vendor = 'Intel Corporation'
device = 'HD Graphics 530'
class  = display
subclass   = VGA
none0@pci0:0:4:0:	class=0x118000 card=0x07061028 chip=0x19038086  
rev=0x07 hdr=0x00

vendor = 'Intel Corporation'
device = 'Skylake Processor Thermal Subsystem'
class  = dasp
xhci0@pci0:0:20:0:	class=0x0c0330 card=0x07061028 chip=0xa12f8086  
rev=0x31 hdr=0x00

vendor = 'Intel Corporation'
device = 'Sunrise Point-H USB 3.0 xHCI Controller'
class  = serial bus
subclass   = USB
none1@pci0:0:20:2:	class=0x118000 card=0x07061028 chip=0xa1318086  
rev=0x31 hdr=0x00

vendor = 'Intel Corporation'
device = 'Sunrise Point-H Thermal subsystem'
class  = dasp
none2@pci0:0:21:0:	class=0x118000 card=0x07061028 chip=0xa1608086  
rev=0x31 hdr=0x00

vendor = 'Intel Corporation'
device = 'Sunrise Point-H Serial IO I2C Controller'
class  = dasp
none3@pci0:0:22:0:	class=0x078000 card=0x07061028 chip=0xa13a8086  
rev=0x31 hdr=0x00

vendor = 'Intel Corporation'
device = 'Sunrise Point-H CSME HECI'
class  = simple comms
ahci0@pci0:0:23:0:	class=0x010601 card=0x07061028 chip=0xa1038086  
rev=0x31 hdr=0x00

vendor = 'Intel Corporation'
device = 'Sunrise Point-H SATA Controller [AHCI mode]'
class  = mass storage
subclass   = SATA
pcib3@pci0:0:28:0:	class=0x060400 card=0x07061028 chip=0xa1108086  
rev=0xf1 hdr=0x01

vendor = 'Intel Corporation'
device = 'Sunrise Point-H PCI Express Root Port'
class  = bridge
subclass   = PCI-PCI
pcib4@pci0:0:28:4:	class=0x060400 card=0x07061028 chip=0xa1148086  
rev=0xf1 hdr=0x01

vendor = 'Intel Corporation'
device = 'Sunrise Point-H PCI Express Root Port'
class  = bridge
subclass   = PCI-PCI
pcib5@pci0:0:28:5:	class=0x060400 card=0x07061028 chip=0xa1158086  
rev=0xf1 hdr=0x01

vendor = 'Intel Corporation'
device = 'Sunrise Point-H PCI Express Root Port'
class  = bridge
subclass   = PCI-PCI
pcib6@pci0:0:28:6:	class=0x060400 card=0x07061028 chip=0xa1168086  
rev=0xf1 hdr=0x01

vendor = 'Intel Corporation'
device = 'Sunrise Point-H PCI Express Root Port'
class  = bridge
subclass   = PCI-PCI
isab0@pci0:0:31:0:	class=0x060100 card=0x07061028 chip=0xa14e8086  
rev=0x31 hdr=0x00


Re: RTL8812AU / RTL8821AU driver - call for testing

2016-06-30 Thread Andriy Voskoboinyk

Some updates:
- 11n (A-MPDU & A-MSDU) now is supported (hw.usb.urtwm.enable_11n option  
was removed);

- Atheros Fast-Frames support was added in
https://github.com/s3erios/urtwm/commit/e835e556a0533d0adf81008dd4330241a7a5fbab  
.



Hi all!

The driver is in https://github.com/s3erios/urtwm ; currently it  
includes most
features from urtwn(4) + TCP/UDP/IP checksum validation. 11a is  
supported too

(but without DFS at this moment).

Seems to be stable enough with DLINK DWA-171 (RTL8821AU)
(11a/b/g support was tested only; you can try to enable 11n Rx supportby  
adding

"hw.usb.urtwm.enable_11n=1" into /boot/loader.conf).

___
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: Bad rtwn(0) performance with RTL8188CE on -CURRENT after r302035

2016-06-27 Thread Andriy Voskoboinyk
Mon, 27 Jun 2016 20:06:20 +0300 було написано Marcus von Appen  
:


Hi,

the attached patch may fix this issue (probably)


Hi,

thanks to previous efforts, the rtwn(0) connection for my RTL8188CE
wireless card is far more stable. It seems to come at the price of
relatively bad performance, though. After r302035 from avos@, I
can't get more than 500 kbit/s downstream from anywhere.


I don't think that this is a regression - that was already noted in PR  
203105:



-Speed seems limited to 16Mbps rate (around 120 kbps on downstream),
even though the ifconfig summary show 802.11g/56mbps.




Let me know, what information is necessary to isolate and correct
that issue. I'll gladly test it. :-)


You can check number of input errors (netstat -I wlan0); it should be
relatively small (or even zero).



Cheers
Marcus

patch-rtwn-rxfilter-busdma.diff
Description: Binary data
___
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: rtwn connection stops working on CURRENT

2016-06-14 Thread Andriy Voskoboinyk
Tue, 14 Jun 2016 08:24:01 +0300 було написано Marcus von Appen  
:


Hi!

Try attached patch (adds some busdma synchronization,
unloads data instead of descriptor in rtwn_tx_done() and improves
watchdog logic for a bit).


Hi,

I'm running into a somewhat weird issue with the rtwn driver
on CURRENT. It usually works for a couple of minutes (if there's
not too much of troughput happening) before the downstream and
upstream rates just "dry up" and the interface stops working.
It happens faster, if there are multiple connections open at the
same time, e.g. having a browser open or fetching mail and doing
a portsnap update.

Once the connection stopped working, dhclient will report the
following:

  Jun 11 12:22:22 athena dhclient[474]: send_packet: no buffer space  
available

  Jun 11 12:24:08 athena last message repeated 4 times
  ...

wpa_supplicant reports:

  Jun 11 12:22:20 athena wpa_supplicant[335]: wlan0:  
CTRL-EVENT-DISCONNECTED bssid=... reason=3 locally_generated=1
  Jun 11 12:22:20 athena wpa_supplicant[335]: wlan0: WPA: 4-Way  
Handshake failed - pre-shared key may be incorrect
  Jun 11 12:22:20 athena wpa_supplicant[335]: wlan0:  
CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="..." auth_failures=8  
duration=100 reason=WRONG_KEY
  Jun 11 12:22:20 athena wpa_supplicant[335]: wlan0:  
CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="..." auth_failures=9  
duration=152 reason=CONN_FAILED


pciconf -lv:

rtwn0@pci0:3:0:0: class=0x028000 card=0x819510ec chip=0x817610ec  
rev=0x01 hdr=0x00

  vendor = 'Realtek Semiconductor Co., Ltd.'
  device = 'RTL8188CE 802.11b/g/n WiFi Adapter'
  class  = network

An pointers on tracking this issue down and getting it fixed are
highly appreciated.

Cheers
Marcus
___
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"

patch-rtwn-busdma.diff
Description: Binary data
___
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: wlan/ifconfig stopped working sometime between 5/25 and 6/3

2016-06-07 Thread Andriy Voskoboinyk
Tue, 07 Jun 2016 07:42:48 +0300 було написано Adrian Chadd  
:


Hi,

the attached patch should fix this issue
(no idea if it can be fixed in a better way...)


Hi,

this is a recent change to the regulatory handling. I've emailed
Andriy who wrote the code. :)

Andriy, any ideas?



-adrian


On 6 June 2016 at 20:15, Yoshihiro Ota  wrote:

Hi,

I started getting the following error when I tried to bring up wireless  
connection since June 3rd.  I had last updated kernel and world on May  
25th before.


"unable to get regulatory domain info: Device not configured"

ifconfig starts working again after I reverted the user land backt May  
25th one; kernel don't seem to be a fact here.


I use "ifconfig wlan create wlandev ath0 ssid  wepmode on wepkey  
 weptxkey 1 up".

Is something changed in ifconfig?
Do I need to use different arguments?

Thanks,
Hiro
___
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"

patch-ifconfig2.diff
Description: Binary data
___
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: rtwn(0) panics with RTL8188CE

2016-05-16 Thread Andriy Voskoboinyk
Mon, 16 May 2016 12:35:35 +0300 було написано Marcus von Appen  
:



m_freem() at m_freem+0x38/frame 0xfe04535f5810


There is double free in xmit path; I will fix it soon.
___
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: D-link wireless not detected

2015-12-29 Thread Andriy Voskoboinyk
Tue, 29 Dec 2015 16:08:56 +0200 було написано Kubilay Kocak  
:



On 30/12/2015 1:07 AM, Hans Petter Selasky wrote:

On 12/29/15 15:02, Hans Petter Selasky wrote:

On 12/29/15 14:00, Daniel Braniss wrote:


On 29 Dec 2015, at 14:44, Hans Petter Selasky   
wrote:


On 12/29/15 13:36, Daniel Braniss wrote:




Until /etc/devd/usb.conf is regenerated, you'll need to manually load
the kernel module for urtwn. Did you do that?

--HPS


ok, set if_urtwn_load=yes
and now I get:

ugen0.4:  at usbus0
urtwn0:  on usbus0
urtwn0: could not allocate USB transfers, err=USB_ERR_NO_PIPE
Fatal kernel mode data abort: 'Translation Fault (L1)' on write
trapframe: 0xda29fb88
FSR=0805, FAR=, spsr=6013
r0 =, r1 =, r2 =c0a72cb0, r3 =0165
r4 =c2cd, r5 =c0a86650, r6 =c2cd1a80, r7 =
r8 =c2cd1dd8, r9 =c2cd1a20, r10=c2a85dd0, r11=da29fc20
r12=, ssp=da29fc18, slr=0004, pc =c0a3f7cc

[ thread pid 13 tid 100045 ]
Stopped at  ieee80211_ifdetach+0x4c:str r0, [r1]
db>

btw, as long as you are willing to help, I will keep testing,
in other words, i’m ok.


Hi Andriy,

Can you fix the crash above and verify this error patch?



Hi,

I see 11-current has a fix. Maybe MFC that to 10-stable?


Is there a Bugzilla issue ID for it?


No, it was fixed in r292174 (as a part of  
https://reviews.freebsd.org/D4447)





Andriy:

After:
 usbd_transfer_unsetup(sc->sc_xfer, URTWN_N_TRANSFER);
There is no need for:
 usbd_transfer_drain(sc->sc_xfer[x]);


--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"