Re: freebsd-wireless Digest, Vol 255, Issue 4

2016-05-19 Thread Adrian Chadd
Hi!

The phy code from brcmfmac is bsd licenced and with some bwn work should be
able to be dropped in. I chose the GPL code because it was easier to port.
I wanted to debug one thing at a time. Now that I'm confident the basic mac
bits in bwn work, then changing phy code is doable.

I'll likely port phy-ht from b43 so Landon can do his bcm4331 work on head.
Once that's all done and working then I'll think about the bsd licenced phy
code.

If someone else wants to take a crack at it then please do!

A
On May 19, 2016 2:51 PM, "Andrzej Bylicki"  wrote:

Dear Adrian,

Thank you very much for your hard work! I will test the driver
as soon as I come back from a work-related symposium I am at right now.

In your last e-mail you mentioned that some of the Broadcom bcm 43xx
driver code is GPL-licensed. Do you think there is any chance to re-write it
somehow as to make it compatible with the FreeBSD base system license-wide?

If you need some help testing the driver I am all up for it. I have a
fairly working
FreeBSD 10.3-RELEASE installation on a 2009 MacBook laptop with bcm 4321.
It would be nice to see the driver make its way to 11-RELEASE. Probably too
much wishful thinking on my side, though :).

All the best,
Andy

On Thu, May 19, 2016 at 2:00 PM, 
wrote:

> Send freebsd-wireless mailing list submissions to
> freebsd-wireless@freebsd.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
> or, via email, send a message with subject or body 'help' to
> freebsd-wireless-requ...@freebsd.org
>
> You can reach the person managing the list at
> freebsd-wireless-ow...@freebsd.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of freebsd-wireless digest..."
>
>
> Today's Topics:
>
>1. Re: bwn(4) updates - PHY-N support, newer firmware, etc
>   (Adrian Chadd)
>2. bwn updates - now BCM4321, BCM4322 (Adrian Chadd)
>
>
> --
>
> Message: 1
> Date: Wed, 18 May 2016 12:53:28 -0700
> From: Adrian Chadd 
> To: "freebsd-wireless@freebsd.org" 
> Subject: Re: bwn(4) updates - PHY-N support, newer firmware, etc
> Message-ID:
> <
> caj-vmonsfq2gerx+thur8vu2befh4qcgohkafu+71ygssow...@mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> Hi,
>
> I've fixed RX RSSI calculatinos for PHY-G, PHY-LP and PHY-N hardware.
> The noise/rssi is now valid, and so now net80211/wpa_supplicant makes
> sane(r) AP selection decisions.
>
> I've also done the firmware API 5xx support. That seems to work enough
> to tinker with.
>
>
>
> -adrian
>
>
> --
>
> Message: 2
> Date: Thu, 19 May 2016 00:01:15 -0700
> From: Adrian Chadd 
> To: "freebsd-wireless@freebsd.org" 
> Subject: bwn updates - now BCM4321, BCM4322
> Message-ID:
> 

Re: freebsd-wireless Digest, Vol 255, Issue 4

2016-05-19 Thread Andrzej Bylicki
Dear Adrian,

Thank you very much for your hard work! I will test the driver
as soon as I come back from a work-related symposium I am at right now.

In your last e-mail you mentioned that some of the Broadcom bcm 43xx
driver code is GPL-licensed. Do you think there is any chance to re-write it
somehow as to make it compatible with the FreeBSD base system license-wide?

If you need some help testing the driver I am all up for it. I have a
fairly working
FreeBSD 10.3-RELEASE installation on a 2009 MacBook laptop with bcm 4321.
It would be nice to see the driver make its way to 11-RELEASE. Probably too
much wishful thinking on my side, though :).

All the best,
Andy

On Thu, May 19, 2016 at 2:00 PM, 
wrote:

> Send freebsd-wireless mailing list submissions to
> freebsd-wireless@freebsd.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
> or, via email, send a message with subject or body 'help' to
> freebsd-wireless-requ...@freebsd.org
>
> You can reach the person managing the list at
> freebsd-wireless-ow...@freebsd.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of freebsd-wireless digest..."
>
>
> Today's Topics:
>
>1. Re: bwn(4) updates - PHY-N support, newer firmware, etc
>   (Adrian Chadd)
>2. bwn updates - now BCM4321, BCM4322 (Adrian Chadd)
>
>
> --
>
> Message: 1
> Date: Wed, 18 May 2016 12:53:28 -0700
> From: Adrian Chadd 
> To: "freebsd-wireless@freebsd.org" 
> Subject: Re: bwn(4) updates - PHY-N support, newer firmware, etc
> Message-ID:
> <
> caj-vmonsfq2gerx+thur8vu2befh4qcgohkafu+71ygssow...@mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> Hi,
>
> I've fixed RX RSSI calculatinos for PHY-G, PHY-LP and PHY-N hardware.
> The noise/rssi is now valid, and so now net80211/wpa_supplicant makes
> sane(r) AP selection decisions.
>
> I've also done the firmware API 5xx support. That seems to work enough
> to tinker with.
>
>
>
> -adrian
>
>
> --
>
> Message: 2
> Date: Thu, 19 May 2016 00:01:15 -0700
> From: Adrian Chadd 
> To: "freebsd-wireless@freebsd.org" 
> Subject: bwn updates - now BCM4321, BCM4322
> Message-ID:
> 

Re: minor array overflow in ifconfig set80211chanlist()

2016-05-19 Thread Adrian Chadd
Ok, let's break out the chan array from the ieee chan value (8 bit).
We need that done for 11ac.




-adrian
___
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: minor array overflow in ifconfig set80211chanlist()

2016-05-19 Thread Andriy Voskoboinyk
Tue, 17 May 2016 01:05:57 +0300 було написано Andriy Voskoboinyk  
:


Tue, 17 May 2016 01:03:03 +0300 було написано Adrian Chadd  
:



Heh, god, it's used for both maximum ieee channel number /and/ the
array size? we should eventually fix that; 11ac channels will likely
overflow all of the above. :(


No (yes) :)
I mean ic->ic_nchans and nitems(ic->ic_channels)
... but you are right: ic_ieee is uint8_t, so it's limited by this  
number too.




... but there is another macro with the same value:
ieee80211_scan_sta.c:

#define MAX_IEEE_CHAN   256 /* max acceptable IEEE 
chan # */
CTASSERT(MAX_IEEE_CHAN >= 256);





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

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

bwn updates - now BCM4321, BCM4322

2016-05-19 Thread Adrian Chadd
Hiya,

I managed to get the BCM4321 and BCM4322 working. You need to load
bwn_v4_n_ucode for BCM4322 and then it should "just work".

BCM4321 also works on bwn_v4_n_ucode - it uses the same newer ucode API.

You can't load bwn_v4_n_ucode and bwn_v4_lp_ucode just yet - I need to
address that.

Let me know if you can test out either of these chips!


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