summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2005-05-22 16:30:31 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2005-05-22 16:30:31 +0000
commit6f98f313500ba56e7f7946301e1eb1a9c04ad652 (patch)
tree20c26ac1e4b66b5c7d22d35ee3833e828bbc6d0b /sys/dev/pci
parent7be3cf32071f516ac9e896ecc133117319a9c86e (diff)
fix setting of the "need ack" flag.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_iwi.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/pci/if_iwi.c b/sys/dev/pci/if_iwi.c
index 9fab35e55de..f23cf4b79d5 100644
--- a/sys/dev/pci/if_iwi.c
+++ b/sys/dev/pci/if_iwi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwi.c,v 1.43 2005/05/22 16:28:00 damien Exp $ */
+/* $OpenBSD: if_iwi.c,v 1.44 2005/05/22 16:30:30 damien Exp $ */
/*-
* Copyright (c) 2004, 2005
@@ -1157,10 +1157,8 @@ iwi_tx_start(struct ifnet *ifp, struct mbuf *m0, struct ieee80211_node *ni)
desc->cmd = IWI_DATA_CMD_TX;
desc->len = htole16(m0->m_pkthdr.len);
desc->flags = 0;
- if (ic->ic_opmode == IEEE80211_M_IBSS) {
- if (!IEEE80211_IS_MULTICAST(wh->i_addr1))
- desc->flags |= IWI_DATA_FLAG_NEED_ACK;
- } else if (!IEEE80211_IS_MULTICAST(wh->i_addr3))
+
+ if (!IEEE80211_IS_MULTICAST(wh->i_addr1))
desc->flags |= IWI_DATA_FLAG_NEED_ACK;
if (ic->ic_flags & IEEE80211_F_WEPON) {