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-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: Updating bwn to support newer chipsets

2016-09-01 Thread Felix Friedlander
Hi Brett,

It turns out I actually have no idea how to write wireless drivers,
but progress is being made by adrian and others. I don't think there's
a working build to test - yet - but if you want to help code, then by
all means, just talk to someone more competent than me.

For the record, I'm also dual-booting several MacBooks, both BCM4331
(apparently not *that* far off) and the newer BCM4360 (which is miles
away, being an 11ac chip).

- Felix

On 1 September 2016 at 17:43, Brett Wiggins  wrote:
> Hi everyone,
>
> I'm replying to a message from April 07 2015 which was calling for people to
> help get the bwn driver to support BCM4331 adapters. The message is provided
> below. I am happy to help with code or testing. I'm dual booting a  Macbook
> Pro 10,1 with OS X and Freebsd 10.3-RELEASE, my wireless adapter is a
> BCM4331.
>
> If anyone know of progress on this or needs help please let me know.
>
> Brett.
>
>
>  Updating bwn to support newer chipsets
>
> *Felix Friedlander* felixphew0 at gmail.com
> 
> /Tue Apr 7 06:35:13 UTC 2015/
>
>  * Previous message (by thread): hostapd with wpa
>
> 
>  * Next message (by thread): Updating bwn to support newer chipsets
>
> 
>  * *Messages sorted by:* [ date ]
>
> 
>[ thread ]
>
> 
>[ subject ]
>
> 
>[ author ]
>
> 
>
>
> 
>
> Hello all,
> I am trying to expand the bwn driver to support some newer-model Broadcom
> chips, like the BCM4331 in my machine. These chips require newer firmware,
> and so I have modified bwn-firmware-kmod to use a newer firmware. However, I
> do not have a device with one of the chips currently supported, so I cannot
> be sure that this change won't break things. Do any of you have a device
> that you are willing to try with the new firmware?
>
> The changes are quite simple:
>
> --- Makefile.orig   2014-01-27 08:52:12.0 +1100
> +++ Makefile2015-04-07 08:31:46.0 +1000
> @@ -2,7 +2,7 @@
>  # $FreeBSD: head/net/bwn-firmware-kmod/Makefile 341294 2014-01-26 21:52:12Z
> bapt $
>   PORTNAME= bwn-firmware
> -PORTVERSION=   0.1.0
> +PORTVERSION=   0.2.0
>  CATEGORIES=net
>  MASTER_SITES=  http://downloads.openwrt.org/sources/  \
> http://mirror2.openwrt.org/sources/
> @@ -36,11 +36,11 @@
>  WRKSRC=${WRKDIR}
>  FWNAME=bwn_v4
>  FWFILE=broadcom-wl-${FWVERSION}.tar.bz2
> -FWVERSION= 4.150.10.5
> +FWVERSION= 5.100.138
>  KMODNAME=  ${FWNAME}_ucode
>  FWNAME_LP= bwn_v4_lp
>  FWFILE_LP= broadcom-wl-${FWVERSION_LP}.tar.bz2
> -FWVERSION_LP=  4.178.10.4
> +FWVERSION_LP=  5.100.138
>  KMODNAME_LP=   ${FWNAME_LP}_ucode
>  PLIST_SUB= KMODNAME="${KMODNAME}" \
> KMODNAME_LP="${KMODNAME_LP}"
> @@ -54,7 +54,7 @@
> tar xjf ${DISTDIR}/${FWFILE}
> mkdir -p ${WRKSRC}/bg
> b43-fwcutter -w ${WRKSRC}/bg \
> -  ${WRKSRC}/broadcom-wl-${FWVERSION}/driver/wl_apsta_mimo.o
> +  ${WRKSRC}/broadcom-wl-${FWVERSION}/linux/wl_apsta.o
> ${TOUCH} ${WRKSRC}/bg/v4/ucode.fw
> @${ECHO_CMD} "KMOD= ${KMODNAME}" > ${WRKSRC}/bg/v4/Makefile
> --- distinfo.orig   2014-01-23 02:30:13.0 +1100
> +++ distinfo2015-04-07 08:37:10.0 +1000
> @@ -2,3 +2,5 @@
>  SIZE (broadcom-wl-4.150.10.5.tar.bz2) = 3888794
>  SHA256 (broadcom-wl-4.178.10.4.tar.bz2) =
> 32f6ad98facbb9045646fdc8b54bb03086d204153253f9c65d0234a5d90ae53f
>  SIZE (broadcom-wl-4.178.10.4.tar.bz2) = 5986780
> +SHA256 (broadcom-wl-5.100.138.tar.bz2) =
> f1e7067aac5b62b67b8b6e4c517990277804339ac16065eb13c731ff909ae46f
>
> Any help would be much appreciated.
> --
> Felix Friedlander  >
> -- next part --
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/pgp-signature
> Size: 819 bytes
> Desc: not available
> URL:
> 
>
> 
>
>  * Previous message (by thread): hostapd with wpa
>
> 
>  * Next message (by thread): Updating bwn to support newer chipsets
>
> 

RE: Updating bwn to support newer chipsets

2016-09-01 Thread Brett Wiggins

Hi everyone,

I'm replying to a message from April 07 2015 which was calling for 
people to help get the bwn driver to support BCM4331 adapters. The 
message is provided below. I am happy to help with code or testing. I'm 
dual booting a  Macbook Pro 10,1 with OS X and Freebsd 10.3-RELEASE, my 
wireless adapter is a BCM4331.


If anyone know of progress on this or needs help please let me know.

Brett.


 Updating bwn to support newer chipsets

*Felix Friedlander* felixphew0 at gmail.com 


/Tue Apr 7 06:35:13 UTC 2015/

 * Previous message (by thread): hostapd with wpa
   
 * Next message (by thread): Updating bwn to support newer chipsets
   
 * *Messages sorted by:* [ date ]
   

   [ thread ]
   

   [ subject ]
   

   [ author ]
   





Hello all,
I am trying to expand the bwn driver to support some newer-model Broadcom 
chips, like the BCM4331 in my machine. These chips require newer firmware, and 
so I have modified bwn-firmware-kmod to use a newer firmware. However, I do not 
have a device with one of the chips currently supported, so I cannot be sure 
that this change won't break things. Do any of you have a device that you are 
willing to try with the new firmware?

The changes are quite simple:

--- Makefile.orig   2014-01-27 08:52:12.0 +1100
+++ Makefile2015-04-07 08:31:46.0 +1000
@@ -2,7 +2,7 @@
 # $FreeBSD: head/net/bwn-firmware-kmod/Makefile 341294 2014-01-26 21:52:12Z 
bapt $
 
 PORTNAME=	bwn-firmware

-PORTVERSION=   0.1.0
+PORTVERSION=   0.2.0
 CATEGORIES=net
 MASTER_SITES=  http://downloads.openwrt.org/sources/  \
http://mirror2.openwrt.org/sources/
@@ -36,11 +36,11 @@
 WRKSRC=${WRKDIR}
 FWNAME=bwn_v4
 FWFILE=broadcom-wl-${FWVERSION}.tar.bz2
-FWVERSION= 4.150.10.5
+FWVERSION= 5.100.138
 KMODNAME=  ${FWNAME}_ucode
 FWNAME_LP= bwn_v4_lp
 FWFILE_LP= broadcom-wl-${FWVERSION_LP}.tar.bz2
-FWVERSION_LP=  4.178.10.4
+FWVERSION_LP=  5.100.138
 KMODNAME_LP=   ${FWNAME_LP}_ucode
 PLIST_SUB= KMODNAME="${KMODNAME}" \
KMODNAME_LP="${KMODNAME_LP}"
@@ -54,7 +54,7 @@
tar xjf ${DISTDIR}/${FWFILE}
mkdir -p ${WRKSRC}/bg
b43-fwcutter -w ${WRKSRC}/bg \
-  ${WRKSRC}/broadcom-wl-${FWVERSION}/driver/wl_apsta_mimo.o
+  ${WRKSRC}/broadcom-wl-${FWVERSION}/linux/wl_apsta.o
${TOUCH} ${WRKSRC}/bg/v4/ucode.fw
 
 	@${ECHO_CMD} "KMOD= ${KMODNAME}" > ${WRKSRC}/bg/v4/Makefile

--- distinfo.orig   2014-01-23 02:30:13.0 +1100
+++ distinfo2015-04-07 08:37:10.0 +1000
@@ -2,3 +2,5 @@
 SIZE (broadcom-wl-4.150.10.5.tar.bz2) = 3888794
 SHA256 (broadcom-wl-4.178.10.4.tar.bz2) = 
32f6ad98facbb9045646fdc8b54bb03086d204153253f9c65d0234a5d90ae53f
 SIZE (broadcom-wl-4.178.10.4.tar.bz2) = 5986780
+SHA256 (broadcom-wl-5.100.138.tar.bz2) = 
f1e7067aac5b62b67b8b6e4c517990277804339ac16065eb13c731ff909ae46f

Any help would be much appreciated.
--
Felix Friedlander >

-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: 




 * Previous message (by thread): hostapd with wpa
   
 * Next message (by thread): Updating bwn to support newer chipsets
   
 * *Messages sorted by:* [ date ]
   

   [ thread ]
   

   [ subject ]
   

   [ author ]
   




More information about the freebsd-wireless mailing list