Re: urtwn broken at r291262

2015-12-19 Thread Steve Wills
On 11/29/2015 17:23, Andriy Voskoboinyk wrote:
> Sun, 29 Nov 2015 18:57:04 +0200 було написано Steve Wills
> :
> 
> Hi,
> 
> I split previous patch into smaller pieces. If you wish, you can test
> them and say, which helps (if any).
> 
> To speed up the process, you can use the following procedure
> (will work only if urtwn(4) is not compiled into the kernel):
> 1) before patching:
>mv /boot/kernel/if_urtwn.ko /boot/kernel/if_urtwn.ko.bak && cd /usr/src
> 2) svn patch --reverse-diff 
> 3) svn patch 
> 4) make buildkernel KERNFAST=yes
> 5) ifconfig wlan0 down
> 6) ifconfig wlan0 destroy
> 7) kldunload if_urtwn
> 8) kldload `find /usr/obj/usr/src/sys -name if_urtwn.ko`
> 9) 
> 10) at the end:
>mv /boot/kernel/if_urtwn.ko.bak /boot/kernel/if_urtwn.ko

Sorry, it took me a while, but I finally got these patches tested. I
tested against r290630. I had to apply both patch-urtwn-ridx.diff and
patch-urtwn-hwseq.diff before it started working.

I see other changes have been made in the mean time, but thought I'd
report anyway. I'll test the latest version too, but wanted to go ahead
and send this info.

Also, with patch-urtwn-eapol.diff applied, I got this panic while unloading:

http://pastebin.com/KGN66u9t

Not sure if this matters or not, but thought I'd pass it along.

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

Re: urtwn broken at r291262

2015-12-02 Thread Steve Wills
Hi,

Sorry, haven't had time to do this yet, but will do it soon, hopefully
this weekend. Thanks for looking into the issue.

Steve

On 11/29/2015 17:23, Andriy Voskoboinyk wrote:
> Sun, 29 Nov 2015 18:57:04 +0200 було написано Steve Wills
> :
> 
> Hi,
> 
> I split previous patch into smaller pieces. If you wish, you can test
> them and say, which helps (if any).
> 
> To speed up the process, you can use the following procedure
> (will work only if urtwn(4) is not compiled into the kernel):
> 1) before patching:
>mv /boot/kernel/if_urtwn.ko /boot/kernel/if_urtwn.ko.bak && cd /usr/src
> 2) svn patch --reverse-diff 
> 3) svn patch 
> 4) make buildkernel KERNFAST=yes
> 5) ifconfig wlan0 down
> 6) ifconfig wlan0 destroy
> 7) kldunload if_urtwn
> 8) kldload `find /usr/obj/usr/src/sys -name if_urtwn.ko`
> 9) 
> 10) at the end:
>mv /boot/kernel/if_urtwn.ko.bak /boot/kernel/if_urtwn.ko
___
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"

Re: urtwn broken at r291262

2015-11-29 Thread Steve Wills
Hi,

On 11/29/2015 08:14, Andriy Voskoboinyk wrote:
> 
> Yes, newer patch reverts more changes from this commit.
> Please, apply and test with it.
> 

This fixes it for me, thanks.

Steve

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


Re: urtwn broken at r291262

2015-11-28 Thread Steve Wills
On 11/28/2015 20:58, Steve Wills wrote:
> 
> r290630 is indeed broken for me. I'm building with your suggested change
> now.
> 

No luck with the suggested change, but perhaps I misunderstood. Here's
the diff I have:

Index: if_urtwn.c
===
--- if_urtwn.c  (revision 290630)
+++ if_urtwn.c  (working copy)
@@ -1860,7 +1860,7 @@
} else  /* IEEE80211_FC0_TYPE_MGT */
qsel = R92C_TXDW1_QSEL_MGNT;
} else {
-   macid = URTWN_MACID_BC;
+   macid = URTWN_MACID_BSS;
qsel = R92C_TXDW1_QSEL_MGNT;
}


Is there something else I can change or debugging info I can provide?

Thanks,
Steve

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


Re: urtwn broken at r291262

2015-11-28 Thread Steve Wills
On 11/28/2015 17:13, Steve Wills wrote:
> 
>>> Any suggestions or should I just bisect to the exact commit?
>> Probably, yes (it works for me without any issues on any revision).
>>
>> P.S. If problem is in r290630, then you can try to replace
>> URTWN_MACID_BC with
>> URTWN_MACID_BSS in urtwn_tx_data() (it was hardcoded as 0 in previous
>> revision).
> 
> So far all I can say for sure is that r290629 works. Will test r290630
> now. More soon.

r290630 is indeed broken for me. I'm building with your suggested change
now.

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


Re: urtwn broken at r291262

2015-11-28 Thread Steve Wills

On 11/28/2015 13:43, Andriy Voskoboinyk wrote:
> 
> Hi,
> 1) chip name?

urtwn0: 
on usbus0
urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R


> 2) have you tried to run 'tcpdump -y IEEE802_11_RADIO
> --no-promiscuous-mode'?
> 

No. Wasn't sure how to interpret the output when I did, but I don't
think I saw any receive.

>> but not transmitting
> Which device is used to monitor the traffic? If this is the same device,
> then you will not know about transmission failure/success,
> since tcpdump uses info from ieee80211_radiotap_tx().

Ok, same device, so no help.

>> Any suggestions or should I just bisect to the exact commit?
> Probably, yes (it works for me without any issues on any revision).
> 
> P.S. If problem is in r290630, then you can try to replace
> URTWN_MACID_BC with
> URTWN_MACID_BSS in urtwn_tx_data() (it was hardcoded as 0 in previous
> revision).

So far all I can say for sure is that r290629 works. Will test r290630
now. More soon.

Steve

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


urtwn broken at r291262

2015-11-28 Thread Steve Wills
Hi,

My Raspberry Pi has a urtwn USB WiFi device. It was working previously,
at r281469. It's been a while, but I updated to r291262 and now it seems
to associate, but can't get a DHCP lease. When I run tcpdump, it looks
like it's receiving but not transmitting. (But obviously it transmits
enough to associate.) Looking at recent commits, I'm building r290629
and will test that, as I suspect r290630. Any suggestions or should I
just bisect to the exact commit? I can send more detailed debugging info
if needed, just let me know what would help.

Thanks,
Steve
___
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: [rfc] removing the NDISulator

2013-10-18 Thread Steve Wills
I would love to have a native driver for this:

none2@pci0:2:0:0:   class=0x028000 card=0x00101028 chip=0x472714e4 rev=0x01 
hdr=0x00
vendor = 'Broadcom Corporation'
device = 'BCM4313 802.11b/g/n Wireless LAN Controller'
class  = network

Are there docs or other drivers available that we could look at?

Steve

On Fri, Oct 18, 2013 at 11:00:20AM -0700, Adrian Chadd wrote:
> Hi all,
> 
> I'd like to remove the NDISulator. I've had many requests to update it to
> the latest NDIS version and support more of the 64 bit wifi drivers. But,
> to be perfectly honest, I have no desire to keep hacking at this. The world
> has changed quite a bit - we can port/reimplement drivers from Linux and
> other BSDs.
> 
> So I plan on deorbiting it - I'll mark it deprecated during 11-HEAD and
> target to have it removed by 11.0-RELEASE.
> 
> I'd rather see more of an effort writing new drivers and porting drivers
> from other operating systems.
> 
> Thanks,
> 
> 
> 
> -adrian
> ___
> freebsd-curr...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"