summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2007-08-10 10:42:04 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2007-08-10 10:42:04 +0000
commitc4e9352756d6701223ecbc7ea7bf7be97bcada75 (patch)
tree03861df5f317e47f017102c6512cd71591f4fe85 /sys/dev
parent8a5e89895da751f916d05da2bb4cb763f90f450f (diff)
Add missing multicast part to ioctl.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pcmcia/if_malo.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/dev/pcmcia/if_malo.c b/sys/dev/pcmcia/if_malo.c
index 27af1fb5d48..ad49ccaab91 100644
--- a/sys/dev/pcmcia/if_malo.c
+++ b/sys/dev/pcmcia/if_malo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_malo.c,v 1.49 2007/08/09 21:24:02 mglocker Exp $ */
+/* $OpenBSD: if_malo.c,v 1.50 2007/08/10 10:42:03 mglocker Exp $ */
/*
* Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org>
@@ -340,6 +340,7 @@ cmalo_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
struct ieee80211_nodereq_all *na;
struct ieee80211_nodereq *nr;
struct ifaddr *ifa;
+ struct ifreq *ifr;
int i, j, s, error = 0;
s = splnet();
@@ -362,6 +363,15 @@ cmalo_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
cmalo_stop(sc);
}
break;
+ case SIOCADDMULTI:
+ case SIOCDELMULTI:
+ ifr = (struct ifreq *)data;
+ error = (cmd == SIOCADDMULTI) ?
+ ether_addmulti(ifr, &ic->ic_ac) :
+ ether_delmulti(ifr, &ic->ic_ac);
+ if (error == ENETRESET)
+ error = 0;
+ break;
case SIOCS80211SCAN:
cmalo_cmd_set_scan(sc);
break;