Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Jan 2016 21:45:21 +0000 (UTC)
From:      Andriy Voskoboinyk <avos@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r293616 - head/sys/dev/rtwn
Message-ID:  <201601092145.u09LjLj3037399@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avos
Date: Sat Jan  9 21:45:21 2016
New Revision: 293616
URL: https://svnweb.freebsd.org/changeset/base/293616

Log:
  rtwn: fix sequence number assignment (part of r290630)
  
  Reviewed by:	kevlo
  Approved by:	adrian (mentor)
  Differential Revision:	https://reviews.freebsd.org/D4819

Modified:
  head/sys/dev/rtwn/if_rtwn.c

Modified: head/sys/dev/rtwn/if_rtwn.c
==============================================================================
--- head/sys/dev/rtwn/if_rtwn.c	Sat Jan  9 21:33:31 2016	(r293615)
+++ head/sys/dev/rtwn/if_rtwn.c	Sat Jan  9 21:45:21 2016	(r293616)
@@ -1683,7 +1683,7 @@ rtwn_tx(struct rtwn_softc *sc, struct mb
 		txd->txdw5 |= htole32(SM(R92C_TXDW5_DATARATE, 0));
 	}
 	/* Set sequence number (already little endian). */
-	txd->txdseq = *(uint16_t *)wh->i_seq;
+	txd->txdseq = htole16(M_SEQNO_GET(m) % IEEE80211_SEQ_RANGE);
 	
 	if (!qos) {
 		/* Use HW sequence numbering for non-QoS frames. */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601092145.u09LjLj3037399>