svn commit: r282399 - head/sys/dev/wpi

Adrian Chadd adrian at FreeBSD.org
Sun May 3 23:38:33 UTC 2015


Author: adrian
Date: Sun May  3 23:38:32 2015
New Revision: 282399
URL: https://svnweb.freebsd.org/changeset/base/282399

Log:
  [iwn?] Use correct sequence numbers with non-QoS STAs.
  
  PR:		kern/197143
  Submitted by:	Andriy Voskoboinyk <s3erios at gmail.com>

Modified:
  head/sys/dev/wpi/if_wpi.c

Modified: head/sys/dev/wpi/if_wpi.c
==============================================================================
--- head/sys/dev/wpi/if_wpi.c	Sun May  3 23:37:13 2015	(r282398)
+++ head/sys/dev/wpi/if_wpi.c	Sun May  3 23:38:32 2015	(r282399)
@@ -2714,6 +2714,8 @@ wpi_tx_data(struct wpi_softc *sc, struct
 			flags |= WPI_TX_NEED_ACK;
 	}
 
+	if (!IEEE80211_QOS_HAS_SEQ(wh))
+		flags |= WPI_TX_AUTO_SEQ;
 	if (wh->i_fc[1] & IEEE80211_FC1_MORE_FRAG)
 		flags |= WPI_TX_MORE_FRAG;	/* Cannot happen yet. */
 
@@ -2818,6 +2820,8 @@ wpi_tx_data_raw(struct wpi_softc *sc, st
 	rate = params->ibp_rate0;
 
 	flags = 0;
+	if (!IEEE80211_QOS_HAS_SEQ(wh))
+		flags |= WPI_TX_AUTO_SEQ;
 	if ((params->ibp_flags & IEEE80211_BPF_NOACK) == 0)
 		flags |= WPI_TX_NEED_ACK;
 	if (params->ibp_flags & IEEE80211_BPF_RTS)


More information about the svn-src-all mailing list