Re: D-link wireless not detected

2015-12-29 Thread Daniel Braniss

> On 29 Dec 2015, at 19:42, Adrian Chadd  wrote:
> 
> I'll go order one and take a crack at it soon.
> 
> (I saw this when looking at the r92su and realtek linux drivers - they
> do a whole bunch of extra endpoint gymnastics that we don't..)

great, let me know, and I can help out debugging.

danny

> 
> 
> -a
> 
> 
> On 29 December 2015 at 06:19, Kevin Lo  wrote:
>> On Tue, Dec 29, 2015 at 03:02:35PM +0100, 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?
>>> 
>>> Andriy:
>>> 
>>> After:
>>> usbd_transfer_unsetup(sc->sc_xfer, URTWN_N_TRANSFER);
>>> There is no need for:
>>>  usbd_transfer_drain(sc->sc_xfer[x]);
>> 
>> As I mentioned previously we don't support rtl8192eu.  One difference
>> between those is the the number of endpoints and its addresses.
>> 
>>> --HPS
>> ___
>> freebsd-...@freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
>> To unsubscribe, send any mail to "freebsd-arm-unsubscr...@freebsd.org"
> ___
> freebsd-...@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscr...@freebsd.org"

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

Re: D-link wireless not detected

2015-12-29 Thread Adrian Chadd
I'll go order one and take a crack at it soon.

(I saw this when looking at the r92su and realtek linux drivers - they
do a whole bunch of extra endpoint gymnastics that we don't..)


-a


On 29 December 2015 at 06:19, Kevin Lo  wrote:
> On Tue, Dec 29, 2015 at 03:02:35PM +0100, 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?
>>
>> Andriy:
>>
>> After:
>>  usbd_transfer_unsetup(sc->sc_xfer, URTWN_N_TRANSFER);
>> There is no need for:
>>   usbd_transfer_drain(sc->sc_xfer[x]);
>
> As I mentioned previously we don't support rtl8192eu.  One difference
> between those is the the number of endpoints and its addresses.
>
>> --HPS
> ___
> freebsd-...@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscr...@freebsd.org"
___
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"

Re: D-link wireless not detected

2015-12-29 Thread Kevin Lo
On Tue, Dec 29, 2015 at 03:02:35PM +0100, 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?
> 
> Andriy:
> 
> After:
>  usbd_transfer_unsetup(sc->sc_xfer, URTWN_N_TRANSFER);
> There is no need for:
>   usbd_transfer_drain(sc->sc_xfer[x]);

As I mentioned previously we don't support rtl8192eu.  One difference 
between those is the the number of endpoints and its addresses.

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

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

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

Re: D-link wireless not detected

2015-12-29 Thread 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?

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

Re: D-link wireless not detected

2015-12-29 Thread Hans Petter Selasky

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?


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

Re: D-link wireless not detected

2015-12-29 Thread Hans Petter Selasky

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?

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

Re: D-link wireless not detected

2015-12-29 Thread Kevin Lo
On Tue, Dec 29, 2015 at 12:12:26PM +0200, Daniel Braniss wrote:
> 
> > On 29 Dec 2015, at 11:53, Hans Petter Selasky  wrote:
> > 
> > On 12/29/15 10:42, Daniel Braniss wrote:
> >> 
> >>> On 29 Dec 2015, at 11:33, Vladimir Botka  wrote:
> >>> 
> >>> Hi Danny,
> >>> 
> >>> On Tue, 29 Dec 2015 11:16:27 +0200
> >>> Daniel Braniss  wrote:
>  Hi All,
>  I have a working tp-link usb (realtek), but can’t get a d-link(also 
>  realtek) to work.
>  usbconfig:
>   ugen0.4:  at usbus0, cfg=0 md=HOST 
>  spd=HIGH (480Mbps) pwr=ON (500mA)
>  This is on a raspberry pi running a resent current.
>  cheers & season greetings,
>   danny
> >>> 
> >>> I've added freebsd-wireless list.
> >>> 
> >>> My 2 cents. It might be helpful to see more details about the adapters.
> >>> For example:
> >>> 
> >>> # usbconfig -u 0 -a 7 dump_device_desc
> >>> ugen0.7: <802.11 n WLAN Ralink> at usbus0, cfg=0 md=HOST spd=HIGH
> >>> (480Mbps) pwr=ON (450mA)
> >>>  bLength = 0x0012
> >>>  bDescriptorType = 0x0001
> >>>  bcdUSB = 0x0200
> >>>  bDeviceClass = 0x  
> >>>  bDeviceSubClass = 0x
> >>>  bDeviceProtocol = 0x
> >>>  bMaxPacketSize0 = 0x0040
> >>>  idVendor = 0x148f
> >>>  idProduct = 0x5370
> >>>  bcdDevice = 0x0101
> >>>  iManufacturer = 0x0001  
> >>>  iProduct = 0x0002  <802.11 n WLAN>
> >>>  iSerialNumber = 0x0003  <1.0>
> >>>  bNumConfigurations = 0x0001
> >> 
> >> 
> >> so here it is:
> >> root@:~ # usbconfig -u 0 -a 4 dump_device_desc
> >> ugen0.4:  at usbus0, cfg=0 md=HOST 
> >> spd=HIGH (480Mbps) pwr=ON (500mA)
> >> 
> >>   bLength = 0x0012
> >>   bDescriptorType = 0x0001
> >>   bcdUSB = 0x0210
> >>   bDeviceClass = 0x  
> >>   bDeviceSubClass = 0x
> >>   bDeviceProtocol = 0x
> >>   bMaxPacketSize0 = 0x0040
> >>   idVendor = 0x2001
> >>   idProduct = 0x3319
> >>   bcdDevice = 0x0200
> >>   iManufacturer = 0x0001  
> >>   iProduct = 0x0002  
> >>   iSerialNumber = 0x0003  <00e04c01>
> >>   bNumConfigurations = 0x0001
> >> 
> >> thanks,
> >>danny
> >> 
> > 
> > Did you google the idVendor and idProduct values and see if Linux has a 
> > driver already?
> > 
> > —HPS
> > 
> 
> 
> https://github.com/Mange/rtl8192eu-linux-driver/blob/master/os_dep/linux/usb_intf.c
>  
> 
> and look at line 216

Your device (D-Link DWA-131 rev E1) is rtl8192eu, which is not supported by
FreeBSD.

> danny

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

Re: D-link wireless not detected

2015-12-29 Thread Daniel Braniss

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

thanks,
danny

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

Re: D-link wireless not detected

2015-12-29 Thread Hans Petter Selasky

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

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


Re: D-link wireless not detected

2015-12-29 Thread Daniel Braniss

> On 29 Dec 2015, at 14:31, Hans Petter Selasky  wrote:
> 
> On 12/29/15 13:26, Daniel Braniss wrote:
>> 
>>> On 29 Dec 2015, at 12:20, Hans Petter Selasky  wrote:
>>> 
>>> On 12/29/15 11:12, Daniel Braniss wrote:
 
 https://github.com/Mange/rtl8192eu-linux-driver/blob/master/os_dep/linux/usb_intf.c
   
 
 and look at line 216
 
 danny
>>> 
>>> Hi,
>>> 
>>> You should be able to get this device working by adding a device entry to:
>>> 
>>> src/sys/dev/usb/wlan/if_urtwn.c
>>> 
>>> Can you make a patch and PR for this, and I'll submit upstream. I recommend 
>>> you test using an 11-current kernel.
>>> 
>>> --HPS
>> 
>> clearly, I’m missing something, because it’s not working :-(
>> the only visible change is now
>> ugen0.4: <802.11n WLAN Adapter RealtekWireless N Nano USB A> at usbus0, 
>> cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
>> before it was
>> ugen0.4:  at usbus0, cfg=0 md=HOST 
>> spd=HIGH (480Mbps) pwr=ON (500mA)
>> 
>> rnd> svn diff
>> Index: usbdevs
>> ===
>> --- usbdevs (revision 291745)
>> +++ usbdevs (working copy)
>> @@ -1657,6 +1657,7 @@
>>  product DLINK2 RTL8192SU_1 0x3300  RTL8192SU
>>  product DLINK2 RTL8192SU_2 0x3302  RTL8192SU
>>  product DLINK2 DWA131A10x3303  DWA-131 A1
>> +product DLINK  DWA131  0x3319  DWA-131
>>  product DLINK2 DWA160A20x3a09  DWA-160 A2
>>  product DLINK2 DWA120  0x3a0c  DWA-120
>>  product DLINK2 DWA120_NF   0x3a0d  DWA-120 (no firmware)
>> Index: wlan/if_urtwn.c
>> ===
>> --- wlan/if_urtwn.c (revision 291745)
>> +++ wlan/if_urtwn.c (working copy)
>> @@ -116,6 +116,7 @@
>> URTWN_DEV(DLINK,RTL8192CU_2),
>> URTWN_DEV(DLINK,RTL8192CU_3),
>> URTWN_DEV(DLINK,DWA131B),
>> +   URTWN_DEV(DLINK,DWA131), // danny
>> URTWN_DEV(EDIMAX,   EW7811UN),
>> URTWN_DEV(EDIMAX,   RTL8192CU),
>> URTWN_DEV(FEIXUN,   RTL8188CU),
>> 
> 
> Hi,
> 
> You should use vendor RALINK (according to your usbconfig dump)
> 
> vendor RALINK 0x148f  Ralink Technology

you are confusing Vladimir’s with mine.
here is mine again:
ugen0.4:  at usbus0, cfg=0 md=HOST 
spd=HIGH (480Mbps) pwr=ON (500mA)

 bLength = 0x0012 
 bDescriptorType = 0x0001 
 bcdUSB = 0x0210 
 bDeviceClass = 0x  
 bDeviceSubClass = 0x 
 bDeviceProtocol = 0x 
 bMaxPacketSize0 = 0x0040 
 idVendor = 0x2001  <== D-LINK
 idProduct = 0x3319 
 bcdDevice = 0x0200 
 iManufacturer = 0x0001  
 iProduct = 0x0002  
 iSerialNumber = 0x0003  <00e04c01>
 bNumConfigurations = 0x0001 

danny

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

Re: D-link wireless not detected

2015-12-29 Thread Hans Petter Selasky

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



On 29 Dec 2015, at 12:20, Hans Petter Selasky  wrote:

On 12/29/15 11:12, Daniel Braniss wrote:


https://github.com/Mange/rtl8192eu-linux-driver/blob/master/os_dep/linux/usb_intf.c  

and look at line 216

danny


Hi,

You should be able to get this device working by adding a device entry to:

src/sys/dev/usb/wlan/if_urtwn.c

Can you make a patch and PR for this, and I'll submit upstream. I recommend you 
test using an 11-current kernel.

--HPS


clearly, I’m missing something, because it’s not working :-(
the only visible change is now
ugen0.4: <802.11n WLAN Adapter RealtekWireless N Nano USB A> at usbus0, cfg=0 
md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
before it was
ugen0.4:  at usbus0, cfg=0 md=HOST 
spd=HIGH (480Mbps) pwr=ON (500mA)

rnd> svn diff
Index: usbdevs
===
--- usbdevs (revision 291745)
+++ usbdevs (working copy)
@@ -1657,6 +1657,7 @@
  product DLINK2 RTL8192SU_1 0x3300  RTL8192SU
  product DLINK2 RTL8192SU_2 0x3302  RTL8192SU
  product DLINK2 DWA131A10x3303  DWA-131 A1
+product DLINK  DWA131  0x3319  DWA-131
  product DLINK2 DWA160A20x3a09  DWA-160 A2
  product DLINK2 DWA120  0x3a0c  DWA-120
  product DLINK2 DWA120_NF   0x3a0d  DWA-120 (no firmware)
Index: wlan/if_urtwn.c
===
--- wlan/if_urtwn.c (revision 291745)
+++ wlan/if_urtwn.c (working copy)
@@ -116,6 +116,7 @@
 URTWN_DEV(DLINK,RTL8192CU_2),
 URTWN_DEV(DLINK,RTL8192CU_3),
 URTWN_DEV(DLINK,DWA131B),
+   URTWN_DEV(DLINK,DWA131), // danny
 URTWN_DEV(EDIMAX,   EW7811UN),
 URTWN_DEV(EDIMAX,   RTL8192CU),
 URTWN_DEV(FEIXUN,   RTL8188CU),



Hi,

You should use vendor RALINK (according to your usbconfig dump)

vendor RALINK   0x148f  Ralink Technology

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

Re: D-link wireless not detected

2015-12-29 Thread Daniel Braniss

> On 29 Dec 2015, at 12:20, Hans Petter Selasky  wrote:
> 
> On 12/29/15 11:12, Daniel Braniss wrote:
>> 
>> https://github.com/Mange/rtl8192eu-linux-driver/blob/master/os_dep/linux/usb_intf.c
>>   
>> 
>> and look at line 216
>> 
>> danny
> 
> Hi,
> 
> You should be able to get this device working by adding a device entry to:
> 
> src/sys/dev/usb/wlan/if_urtwn.c
> 
> Can you make a patch and PR for this, and I'll submit upstream. I recommend 
> you test using an 11-current kernel.
> 
> --HPS

clearly, I’m missing something, because it’s not working :-(
the only visible change is now
ugen0.4: <802.11n WLAN Adapter RealtekWireless N Nano USB A> at usbus0, cfg=0 
md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
before it was
ugen0.4:  at usbus0, cfg=0 md=HOST 
spd=HIGH (480Mbps) pwr=ON (500mA)

rnd> svn diff
Index: usbdevs
===
--- usbdevs (revision 291745)
+++ usbdevs (working copy)
@@ -1657,6 +1657,7 @@
 product DLINK2 RTL8192SU_1 0x3300  RTL8192SU
 product DLINK2 RTL8192SU_2 0x3302  RTL8192SU
 product DLINK2 DWA131A10x3303  DWA-131 A1
+product DLINK  DWA131  0x3319  DWA-131
 product DLINK2 DWA160A20x3a09  DWA-160 A2
 product DLINK2 DWA120  0x3a0c  DWA-120
 product DLINK2 DWA120_NF   0x3a0d  DWA-120 (no firmware)
Index: wlan/if_urtwn.c
===
--- wlan/if_urtwn.c (revision 291745)
+++ wlan/if_urtwn.c (working copy)
@@ -116,6 +116,7 @@
URTWN_DEV(DLINK,RTL8192CU_2),
URTWN_DEV(DLINK,RTL8192CU_3),
URTWN_DEV(DLINK,DWA131B),
+   URTWN_DEV(DLINK,DWA131), // danny
URTWN_DEV(EDIMAX,   EW7811UN),
URTWN_DEV(EDIMAX,   RTL8192CU),
URTWN_DEV(FEIXUN,   RTL8188CU),

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

Re: D-link wireless not detected

2015-12-29 Thread Hans Petter Selasky

On 12/29/15 11:12, Daniel Braniss wrote:


https://github.com/Mange/rtl8192eu-linux-driver/blob/master/os_dep/linux/usb_intf.c  

and look at line 216

danny


Hi,

You should be able to get this device working by adding a device entry to:

src/sys/dev/usb/wlan/if_urtwn.c

Can you make a patch and PR for this, and I'll submit upstream. I 
recommend you test using an 11-current kernel.


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


Re: D-link wireless not detected

2015-12-29 Thread Daniel Braniss

> On 29 Dec 2015, at 11:53, Hans Petter Selasky  wrote:
> 
> On 12/29/15 10:42, Daniel Braniss wrote:
>> 
>>> On 29 Dec 2015, at 11:33, Vladimir Botka  wrote:
>>> 
>>> Hi Danny,
>>> 
>>> On Tue, 29 Dec 2015 11:16:27 +0200
>>> Daniel Braniss  wrote:
 Hi All,
 I have a working tp-link usb (realtek), but can’t get a d-link(also 
 realtek) to work.
 usbconfig:
ugen0.4:  at usbus0, cfg=0 md=HOST 
 spd=HIGH (480Mbps) pwr=ON (500mA)
 This is on a raspberry pi running a resent current.
 cheers & season greetings,
danny
>>> 
>>> I've added freebsd-wireless list.
>>> 
>>> My 2 cents. It might be helpful to see more details about the adapters.
>>> For example:
>>> 
>>> # usbconfig -u 0 -a 7 dump_device_desc
>>> ugen0.7: <802.11 n WLAN Ralink> at usbus0, cfg=0 md=HOST spd=HIGH
>>> (480Mbps) pwr=ON (450mA)
>>>  bLength = 0x0012
>>>  bDescriptorType = 0x0001
>>>  bcdUSB = 0x0200
>>>  bDeviceClass = 0x  
>>>  bDeviceSubClass = 0x
>>>  bDeviceProtocol = 0x
>>>  bMaxPacketSize0 = 0x0040
>>>  idVendor = 0x148f
>>>  idProduct = 0x5370
>>>  bcdDevice = 0x0101
>>>  iManufacturer = 0x0001  
>>>  iProduct = 0x0002  <802.11 n WLAN>
>>>  iSerialNumber = 0x0003  <1.0>
>>>  bNumConfigurations = 0x0001
>> 
>> 
>> so here it is:
>> root@:~ # usbconfig -u 0 -a 4 dump_device_desc
>> ugen0.4:  at usbus0, cfg=0 md=HOST 
>> spd=HIGH (480Mbps) pwr=ON (500mA)
>> 
>>   bLength = 0x0012
>>   bDescriptorType = 0x0001
>>   bcdUSB = 0x0210
>>   bDeviceClass = 0x  
>>   bDeviceSubClass = 0x
>>   bDeviceProtocol = 0x
>>   bMaxPacketSize0 = 0x0040
>>   idVendor = 0x2001
>>   idProduct = 0x3319
>>   bcdDevice = 0x0200
>>   iManufacturer = 0x0001  
>>   iProduct = 0x0002  
>>   iSerialNumber = 0x0003  <00e04c01>
>>   bNumConfigurations = 0x0001
>> 
>> thanks,
>>  danny
>> 
> 
> Did you google the idVendor and idProduct values and see if Linux has a 
> driver already?
> 
> —HPS
> 


https://github.com/Mange/rtl8192eu-linux-driver/blob/master/os_dep/linux/usb_intf.c
 

and look at line 216

danny


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

Re: D-link wireless not detected

2015-12-29 Thread Hans Petter Selasky

On 12/29/15 10:42, Daniel Braniss wrote:



On 29 Dec 2015, at 11:33, Vladimir Botka  wrote:

Hi Danny,

On Tue, 29 Dec 2015 11:16:27 +0200
Daniel Braniss  wrote:

Hi All,
I have a working tp-link usb (realtek), but can’t get a d-link(also realtek) to 
work.
usbconfig:
ugen0.4:  at usbus0, cfg=0 md=HOST 
spd=HIGH (480Mbps) pwr=ON (500mA)
This is on a raspberry pi running a resent current.
cheers & season greetings,
danny


I've added freebsd-wireless list.

My 2 cents. It might be helpful to see more details about the adapters.
For example:

# usbconfig -u 0 -a 7 dump_device_desc
ugen0.7: <802.11 n WLAN Ralink> at usbus0, cfg=0 md=HOST spd=HIGH
(480Mbps) pwr=ON (450mA)
  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0200
  bDeviceClass = 0x  
  bDeviceSubClass = 0x
  bDeviceProtocol = 0x
  bMaxPacketSize0 = 0x0040
  idVendor = 0x148f
  idProduct = 0x5370
  bcdDevice = 0x0101
  iManufacturer = 0x0001  
  iProduct = 0x0002  <802.11 n WLAN>
  iSerialNumber = 0x0003  <1.0>
  bNumConfigurations = 0x0001



so here it is:
root@:~ # usbconfig -u 0 -a 4 dump_device_desc
ugen0.4:  at usbus0, cfg=0 md=HOST 
spd=HIGH (480Mbps) pwr=ON (500mA)

   bLength = 0x0012
   bDescriptorType = 0x0001
   bcdUSB = 0x0210
   bDeviceClass = 0x  
   bDeviceSubClass = 0x
   bDeviceProtocol = 0x
   bMaxPacketSize0 = 0x0040
   idVendor = 0x2001
   idProduct = 0x3319
   bcdDevice = 0x0200
   iManufacturer = 0x0001  
   iProduct = 0x0002  
   iSerialNumber = 0x0003  <00e04c01>
   bNumConfigurations = 0x0001

thanks,
danny



Did you google the idVendor and idProduct values and see if Linux has a 
driver already?


--HPS

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

Re: D-link wireless not detected

2015-12-29 Thread Daniel Braniss

> On 29 Dec 2015, at 11:33, Vladimir Botka  wrote:
> 
> Hi Danny,
> 
> On Tue, 29 Dec 2015 11:16:27 +0200
> Daniel Braniss  wrote:
>> Hi All,
>> I have a working tp-link usb (realtek), but can’t get a d-link(also realtek) 
>> to work.
>> usbconfig:
>>  ugen0.4:  at usbus0, cfg=0 md=HOST 
>> spd=HIGH (480Mbps) pwr=ON (500mA)
>> This is on a raspberry pi running a resent current.
>> cheers & season greetings,
>>  danny
> 
> I've added freebsd-wireless list.
> 
> My 2 cents. It might be helpful to see more details about the adapters.
> For example:
> 
> # usbconfig -u 0 -a 7 dump_device_desc
> ugen0.7: <802.11 n WLAN Ralink> at usbus0, cfg=0 md=HOST spd=HIGH
> (480Mbps) pwr=ON (450mA)
>  bLength = 0x0012 
>  bDescriptorType = 0x0001 
>  bcdUSB = 0x0200 
>  bDeviceClass = 0x  
>  bDeviceSubClass = 0x 
>  bDeviceProtocol = 0x 
>  bMaxPacketSize0 = 0x0040 
>  idVendor = 0x148f 
>  idProduct = 0x5370 
>  bcdDevice = 0x0101 
>  iManufacturer = 0x0001  
>  iProduct = 0x0002  <802.11 n WLAN>
>  iSerialNumber = 0x0003  <1.0>
>  bNumConfigurations = 0x0001


so here it is:
root@:~ # usbconfig -u 0 -a 4 dump_device_desc
ugen0.4:  at usbus0, cfg=0 md=HOST 
spd=HIGH (480Mbps) pwr=ON (500mA)

  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0210 
  bDeviceClass = 0x  
  bDeviceSubClass = 0x 
  bDeviceProtocol = 0x 
  bMaxPacketSize0 = 0x0040 
  idVendor = 0x2001 
  idProduct = 0x3319 
  bcdDevice = 0x0200 
  iManufacturer = 0x0001  
  iProduct = 0x0002  
  iSerialNumber = 0x0003  <00e04c01>
  bNumConfigurations = 0x0001 

thanks,
danny

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

Re: D-link wireless not detected

2015-12-29 Thread Vladimir Botka
Hi Danny,

On Tue, 29 Dec 2015 11:16:27 +0200
Daniel Braniss  wrote:
> Hi All,
> I have a working tp-link usb (realtek), but can’t get a d-link(also realtek) 
> to work.
> usbconfig:
>   ugen0.4:  at usbus0, cfg=0 md=HOST 
> spd=HIGH (480Mbps) pwr=ON (500mA)
> This is on a raspberry pi running a resent current.
> cheers & season greetings,
>   danny

I've added freebsd-wireless list.

My 2 cents. It might be helpful to see more details about the adapters.
For example:

# usbconfig -u 0 -a 7 dump_device_desc
ugen0.7: <802.11 n WLAN Ralink> at usbus0, cfg=0 md=HOST spd=HIGH
(480Mbps) pwr=ON (450mA)
  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0200 
  bDeviceClass = 0x  
  bDeviceSubClass = 0x 
  bDeviceProtocol = 0x 
  bMaxPacketSize0 = 0x0040 
  idVendor = 0x148f 
  idProduct = 0x5370 
  bcdDevice = 0x0101 
  iManufacturer = 0x0001  
  iProduct = 0x0002  <802.11 n WLAN>
  iSerialNumber = 0x0003  <1.0>
  bNumConfigurations = 0x0001


Cheers,

-vlado


pgpKpac3S2hCX.pgp
Description: OpenPGP digital signature