summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2013-02-18 23:29:22 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2013-02-18 23:29:22 +0000
commitfc839df600415f916eb7c9bf7d55c79ead582531 (patch)
tree0e84e3e035d161ba4888a7780656b925d57890ca
parent3bb0906e70acacb65ad36265a208f9b680732924 (diff)
set the wireless interface priority and interfaces to the wlan group
for the remaining pre 802.11b wireless drivers. ok krw@ phessler@
-rw-r--r--sys/dev/pcmcia/if_cnw.c5
-rw-r--r--sys/dev/pcmcia/if_ray.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/pcmcia/if_cnw.c b/sys/dev/pcmcia/if_cnw.c
index 77f8248085c..cc812f3f8b7 100644
--- a/sys/dev/pcmcia/if_cnw.c
+++ b/sys/dev/pcmcia/if_cnw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_cnw.c,v 1.22 2011/07/03 15:47:17 matthew Exp $ */
+/* $OpenBSD: if_cnw.c,v 1.23 2013/02/18 23:29:21 jsg Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -432,6 +432,9 @@ cnw_attach(parent, self, aux)
if_attach(ifp);
ether_ifattach(ifp);
+ if_addgroup(ifp, "wlan");
+ ifp->if_priority = IF_WIRELESS_DEFAULT_PRIORITY;
+
/* Disable the card now, and turn it on when the interface goes up */
pcmcia_function_disable(sc->sc_pf);
}
diff --git a/sys/dev/pcmcia/if_ray.c b/sys/dev/pcmcia/if_ray.c
index 4371e38ea7e..95d2462b8fa 100644
--- a/sys/dev/pcmcia/if_ray.c
+++ b/sys/dev/pcmcia/if_ray.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ray.c,v 1.48 2011/07/07 19:13:29 henning Exp $ */
+/* $OpenBSD: if_ray.c,v 1.49 2013/02/18 23:29:21 jsg Exp $ */
/* $NetBSD: if_ray.c,v 1.21 2000/07/05 02:35:54 onoe Exp $ */
/*
@@ -617,6 +617,9 @@ ray_attach(struct device *parent, struct device *self, void *aux)
memcpy(&sc->sc_ec.ac_enaddr, ep->e_station_addr, ETHER_ADDR_LEN);
ether_ifattach(ifp);
+ if_addgroup(ifp, "wlan");
+ ifp->if_priority = IF_WIRELESS_DEFAULT_PRIORITY;
+
/* need enough space for ieee80211_header + (snap or e2) */
ifp->if_hdrlen =
sizeof(struct ieee80211_frame) + sizeof(struct ether_header);