summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_wpi.c
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2006-08-06 12:51:10 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2006-08-06 12:51:10 +0000
commit1f53aa87a1f0189d697a29c357cf6a67f5221b34 (patch)
treeda131f01ad8eaed3f18b751c7902ab93f87edefb /sys/dev/pci/if_wpi.c
parent920c3900898a297d7f0476bac5683f49a66a5c9d (diff)
cosmetic tweaks.
Diffstat (limited to 'sys/dev/pci/if_wpi.c')
-rw-r--r--sys/dev/pci/if_wpi.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/sys/dev/pci/if_wpi.c b/sys/dev/pci/if_wpi.c
index c1ea7af0328..5394e0477e8 100644
--- a/sys/dev/pci/if_wpi.c
+++ b/sys/dev/pci/if_wpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wpi.c,v 1.25 2006/08/04 14:30:03 damien Exp $ */
+/* $OpenBSD: if_wpi.c,v 1.26 2006/08/06 12:51:09 damien Exp $ */
/*-
* Copyright (c) 2006
@@ -1310,7 +1310,7 @@ wpi_notif_intr(struct wpi_softc *sc)
letoh32(uc->valid)));
if (letoh32(uc->valid) != 1) {
- printf("%s microcontroller initialization "
+ printf("%s: microcontroller initialization "
"failed\n", sc->sc_dev.dv_xname);
}
break;
@@ -1528,15 +1528,14 @@ wpi_tx_data(struct wpi_softc *sc, struct mbuf *m0, struct ieee80211_node *ni,
if ((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) ==
IEEE80211_FC0_TYPE_MGT) {
+ uint8_t subtype = wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK;
+
/* tell h/w to set timestamp in probe responses */
- if ((wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) ==
- IEEE80211_FC0_SUBTYPE_PROBE_RESP)
+ if (subtype == IEEE80211_FC0_SUBTYPE_PROBE_RESP)
tx->flags |= htole32(WPI_TX_INSERT_TSTAMP);
- if (((wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) ==
- IEEE80211_FC0_SUBTYPE_ASSOC_REQ) ||
- ((wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) ==
- IEEE80211_FC0_SUBTYPE_REASSOC_REQ))
+ if (subtype == IEEE80211_FC0_SUBTYPE_ASSOC_REQ ||
+ subtype == IEEE80211_FC0_SUBTYPE_REASSOC_REQ)
tx->timeout = 3;
else
tx->timeout = 2;