summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2008-01-24 22:35:09 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2008-01-24 22:35:09 +0000
commit07988943d0f245ed2b2d547f8246d77d0f92ebcd (patch)
tree9236447e2602f63c1b066373ea83a8a5ae3f925b
parentc142705ae969670aaf44dbbd65f6dbc5b126b695 (diff)
Fix some comments.
-rw-r--r--sys/dev/usb/if_upgt.c11
-rw-r--r--sys/dev/usb/if_upgtvar.h6
2 files changed, 9 insertions, 8 deletions
diff --git a/sys/dev/usb/if_upgt.c b/sys/dev/usb/if_upgt.c
index 068eec49b8d..66a74404f65 100644
--- a/sys/dev/usb/if_upgt.c
+++ b/sys/dev/usb/if_upgt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_upgt.c,v 1.29 2008/01/24 21:44:32 mglocker Exp $ */
+/* $OpenBSD: if_upgt.c,v 1.30 2008/01/24 22:35:08 mglocker Exp $ */
/*
* Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org>
@@ -230,11 +230,12 @@ upgt_attach(struct device *parent, struct device *self, void *aux)
sc->sc_rx_no = ed->bEndpointAddress;
/*
- * XXX Just get the version 2 bulk pipes for now.
* 0x01 TX pipe
* 0x81 RX pipe
- * 0x02 TX MGMT pipe (not used with fw version >2.5.x)
- * 0x82 TX MGMT pipe (not used with fw version >2.5.x)
+ *
+ * Deprecated scheme (not used with fw version >2.5.6.x):
+ * 0x02 TX MGMT pipe
+ * 0x82 TX MGMT pipe
*/
if (sc->sc_tx_no != -1 && sc->sc_rx_no != -1)
break;
@@ -1535,7 +1536,7 @@ upgt_tx_task(void *arg)
struct upgt_tx_radiotap_header *tap = &sc->sc_txtap;
tap->wt_flags = 0;
- tap->wt_rate = 0;
+ tap->wt_rate = 0; /* TODO: where to get? */
tap->wt_chan_freq =
htole16(ic->ic_bss->ni_chan->ic_freq);
tap->wt_chan_flags =
diff --git a/sys/dev/usb/if_upgtvar.h b/sys/dev/usb/if_upgtvar.h
index 38d749bb5c1..c8b4f09bc94 100644
--- a/sys/dev/usb/if_upgtvar.h
+++ b/sys/dev/usb/if_upgtvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_upgtvar.h,v 1.12 2008/01/24 21:44:32 mglocker Exp $ */
+/* $OpenBSD: if_upgtvar.h,v 1.13 2008/01/24 22:35:08 mglocker Exp $ */
/*
* Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org>
@@ -300,9 +300,9 @@ struct upgt_lmac_channel {
struct upgt_lmac_freq6 freq6;
uint8_t settings;
uint8_t unknown3;
- uint8_t freq3_1[4]; /* XXX wrong? */
+ uint8_t freq3_1[4];
struct upgt_lmac_freq4 freq4[8];
- uint8_t freq3_2[4]; /* XXX wrong? */
+ uint8_t freq3_2[4];
uint32_t pad2;
} __packed;