summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2007-04-01 00:08:18 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2007-04-01 00:08:18 +0000
commit030f50df6a87e9ec5360a90702cc3c6a2720340f (patch)
tree38c88117a99941454ac7d01aad3915b06a5906c8 /sys/dev
parent8bbbd9921f6dbe69afd1eac73e965dad24e63fb8 (diff)
Remove dead code. Comments.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/bcw.c25
-rw-r--r--sys/dev/ic/bcwvar.h6
2 files changed, 14 insertions, 17 deletions
diff --git a/sys/dev/ic/bcw.c b/sys/dev/ic/bcw.c
index fd0c333a0d4..d75f1bd0171 100644
--- a/sys/dev/ic/bcw.c
+++ b/sys/dev/ic/bcw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bcw.c,v 1.83 2007/03/31 23:50:59 mglocker Exp $ */
+/* $OpenBSD: bcw.c,v 1.84 2007/04/01 00:08:17 mglocker Exp $ */
/*
* Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org>
@@ -19,7 +19,7 @@
/*
* Broadcom BCM43xx Wireless network chipsets (broadcom.com)
- * SiliconBackplane is technology from Sonics, Inc.(sonicsinc.com)
+ * SiliconBackplane is technology from Sonics, Inc. (sonicsinc.com)
*/
#include "bpfilter.h"
@@ -903,6 +903,11 @@ bcw_rate_memory_init(struct bcw_softc *sc)
}
}
+/*
+ * Attach device
+ *
+ * http://bcm-specs.sipsolutions.net/DeviceAttach
+ */
void
bcw_attach(struct bcw_softc *sc)
{
@@ -1111,20 +1116,10 @@ bcw_attach(struct bcw_softc *sc)
bcw_pc_crystal_off(sc);
/*
- * XXX Select the 802.11 core, then
- * Get and display the PHY info from the MIMO
- * This probably won't work for cards with multiple radio cores, as
- * the spec suggests that there is one PHY for each core
+ * Switch to the 80211 core
*/
bcw_change_core(sc, sc->sc_core_80211->index);
-#if 0
- sc->sc_phy_lopairs = malloc(sizeof(struct bcw_lopair) * BCW_LO_COUNT,
- M_DEVBUF, M_NOWAIT);
- bcw_phy_prepare_init(sc);
- bcw_radio_prepare_init(sc);
-#endif
-
/*
* Set MAC address
*/
@@ -1510,6 +1505,8 @@ bcw_txintr(struct bcw_softc *sc)
/*
* Initialize the interface
+ *
+ * http://bcm-specs.sipsolutions.net/DeviceUp
*/
int
bcw_init(struct ifnet *ifp)
@@ -1524,6 +1521,8 @@ bcw_init(struct ifnet *ifp)
bcw_phy_prepare_init(sc); /* XXX probably unpack function */
bcw_radio_prepare_init(sc); /* XXX probably unpack function */
+ bcw_change_core(sc, sc->sc_core_80211->index);
+
bcw_pc_crystal_on(sc);
bcw_pc_init(sc);
diff --git a/sys/dev/ic/bcwvar.h b/sys/dev/ic/bcwvar.h
index 725891e441f..d6ca0b679b7 100644
--- a/sys/dev/ic/bcwvar.h
+++ b/sys/dev/ic/bcwvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bcwvar.h,v 1.33 2007/03/31 23:50:59 mglocker Exp $ */
+/* $OpenBSD: bcwvar.h,v 1.34 2007/04/01 00:08:17 mglocker Exp $ */
/*
* Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org>
@@ -19,9 +19,7 @@
/*
* Broadcom BCM43xx Wireless network chipsets (broadcom.com)
- * SiliconBackplane is technology from Sonics, Inc.(sonicsinc.com)
- *
- * Cliff Wright cliff@snipe444.org
+ * SiliconBackplane is technology from Sonics, Inc. (sonicsinc.com)
*/
#define BCW_ARRAY_SIZE(array) (sizeof(array) / sizeof(array[0]))