summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2006-10-04 18:13:38 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2006-10-04 18:13:38 +0000
commit578d1d8be4ff501f8c6239e3cfbe01e374ece2bf (patch)
tree8c9dfd0478c474bc639a7311031356d029d4d41d /sys/dev
parent2a32f1fa6d5bbb414b0847ffc232b8194e929fde (diff)
Merge pgt_start_body() into pgt_start().
ok claudio@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/pgt.c27
1 files changed, 9 insertions, 18 deletions
diff --git a/sys/dev/ic/pgt.c b/sys/dev/ic/pgt.c
index 742433c6e24..7ce35125171 100644
--- a/sys/dev/ic/pgt.c
+++ b/sys/dev/ic/pgt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pgt.c,v 1.24 2006/10/04 14:23:12 mglocker Exp $ */
+/* $OpenBSD: pgt.c,v 1.25 2006/10/04 18:13:37 mglocker Exp $ */
/*
* Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org>
@@ -173,8 +173,6 @@ int pgt_ieee80211_send_mgmt(struct ieee80211com *,
struct ieee80211_node *, int, int);
int pgt_net_attach(struct pgt_softc *);
void pgt_start(struct ifnet *);
-void pgt_start_body(struct pgt_softc *, struct ieee80211com *,
- struct ifnet *);
int pgt_ioctl(struct ifnet *, u_long, caddr_t);
void pgt_obj_bss2scanres(struct pgt_softc *,
struct pgt_obj_bss *, struct wi_scan_res *, uint32_t);
@@ -2089,11 +2087,19 @@ pgt_media_status(struct ifnet *ifp, struct ifmediareq *imr)
splx(s);
}
+/*
+ * Start data frames. Critical sections surround the boundary of
+ * management frame transmission / transmission acknowledgement / response
+ * and data frame transmission / transmission acknowledgement.
+ */
void
pgt_start(struct ifnet *ifp)
{
struct pgt_softc *sc;
struct ieee80211com *ic;
+ struct pgt_desc *pd;
+ struct mbuf *m;
+ int error;
sc = ifp->if_softc;
ic = &sc->sc_ic;
@@ -2104,21 +2110,6 @@ pgt_start(struct ifnet *ifp)
return;
}
- pgt_start_body(sc, ic, ifp);
-}
-
-/*
- * Start data frames. Critical sections surround the boundary of
- * management frame transmission / transmission acknowledgement / response
- * and data frame transmission / transmission acknowledgement.
- */
-void
-pgt_start_body(struct pgt_softc *sc, struct ieee80211com *ic, struct ifnet *ifp)
-{
- struct pgt_desc *pd;
- struct mbuf *m;
- int error;
-
/*
* Management packets should probably be MLME frames
* (i.e. hostap "managed" mode); we don't touch the