summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2017-12-14 20:12:33 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2017-12-14 20:12:33 +0000
commit0bf7b44438def5f9a9675b4cc4ab0719c856973b (patch)
treeef88e6d9d3b21f69b5fcacd11991e1d812ed6783 /sys/dev/pci
parent2332e55633d35692dc649195e1ce223f26a74b0f (diff)
Make roaming after a background scan work while tcpbench -u is running
over iwn(4), in the same way as this was done for iwm(4). I forgot about making iwn(4) heed the IEEE80211_F_TX_MGMT_ONLY flag which is used to disable queueing of new data frames during an AP switch. Found due to a problem report by naddy@ ok phessler@ tb@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_iwn.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/if_iwn.c b/sys/dev/pci/if_iwn.c
index 6c799fbf996..2c8c1226aaa 100644
--- a/sys/dev/pci/if_iwn.c
+++ b/sys/dev/pci/if_iwn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwn.c,v 1.195 2017/12/14 14:21:11 stsp Exp $ */
+/* $OpenBSD: if_iwn.c,v 1.196 2017/12/14 20:12:32 stsp Exp $ */
/*-
* Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr>
@@ -3254,7 +3254,8 @@ iwn_start(struct ifnet *ifp)
ni = m->m_pkthdr.ph_cookie;
goto sendit;
}
- if (ic->ic_state != IEEE80211_S_RUN)
+ if (ic->ic_state != IEEE80211_S_RUN ||
+ (ic->ic_xflags & IEEE80211_F_TX_MGMT_ONLY))
break;
/* Encapsulate and send data frames. */