svn commit: r299798 - head/sys/dev/bwn

Adrian Chadd adrian at FreeBSD.org
Sat May 14 23:45:48 UTC 2016


Author: adrian
Date: Sat May 14 23:45:47 2016
New Revision: 299798
URL: https://svnweb.freebsd.org/changeset/base/299798

Log:
  [bwn] set the 5ghz transmit flag for 5ghz transmit.
  
  Turns out trying to do 11a transmit without this set works poorly.

Modified:
  head/sys/dev/bwn/if_bwn.c

Modified: head/sys/dev/bwn/if_bwn.c
==============================================================================
--- head/sys/dev/bwn/if_bwn.c	Sat May 14 23:45:16 2016	(r299797)
+++ head/sys/dev/bwn/if_bwn.c	Sat May 14 23:45:47 2016	(r299798)
@@ -6072,6 +6072,9 @@ bwn_set_txhdr(struct bwn_mac *mac, struc
 	     rate == BWN_CCK_RATE_11MB))
 		phyctl |= BWN_TX_PHY_SHORTPRMBL;
 
+	if (! phy->gmode)
+		macctl |= BWN_TX_MAC_5GHZ;
+
 	/* XXX TX antenna selection */
 
 	switch (bwn_antenna_sanitize(mac, 0)) {


More information about the svn-src-all mailing list