if_wi.c (71962) | if_wi.c (72084) |
---|---|
1/* 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 * | 1/* 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 * |
32 * $FreeBSD: head/sys/dev/wi/if_wi.c 71962 2001-02-03 16:29:10Z phk $ | 32 * $FreeBSD: head/sys/dev/wi/if_wi.c 72084 2001-02-06 10:12:15Z phk $ |
33 */ 34 35/* 36 * Lucent WaveLAN/IEEE 802.11 PCMCIA driver for FreeBSD. 37 * 38 * Written by Bill Paul <wpaul@ctr.columbia.edu> 39 * Electrical Engineering Department 40 * Columbia University, New York City --- 64 unchanged lines hidden (view full) --- 105 106#include <dev/wi/if_wavelan_ieee.h> 107#include <dev/wi/if_wireg.h> 108 109#include "card_if.h" 110 111#if !defined(lint) 112static const char rcsid[] = | 33 */ 34 35/* 36 * Lucent WaveLAN/IEEE 802.11 PCMCIA driver for FreeBSD. 37 * 38 * Written by Bill Paul <wpaul@ctr.columbia.edu> 39 * Electrical Engineering Department 40 * Columbia University, New York City --- 64 unchanged lines hidden (view full) --- 105 106#include <dev/wi/if_wavelan_ieee.h> 107#include <dev/wi/if_wireg.h> 108 109#include "card_if.h" 110 111#if !defined(lint) 112static const char rcsid[] = |
113 "$FreeBSD: head/sys/dev/wi/if_wi.c 71962 2001-02-03 16:29:10Z phk $"; | 113 "$FreeBSD: head/sys/dev/wi/if_wi.c 72084 2001-02-06 10:12:15Z phk $"; |
114#endif 115 116#ifdef foo 117static u_int8_t wi_mcast_addr[6] = { 0x01, 0x60, 0x1D, 0x00, 0x01, 0x00 }; 118#endif 119 120static void wi_intr __P((void *)); 121static void wi_reset __P((struct wi_softc *)); --- 908 unchanged lines hidden (view full) --- 1030 mcast.wi_type = WI_RID_MCAST; 1031 mcast.wi_len = (3 * 16) + 1; 1032 1033 if (ifp->if_flags & IFF_ALLMULTI || ifp->if_flags & IFF_PROMISC) { 1034 wi_write_record(sc, (struct wi_ltv_gen *)&mcast); 1035 return; 1036 } 1037 | 114#endif 115 116#ifdef foo 117static u_int8_t wi_mcast_addr[6] = { 0x01, 0x60, 0x1D, 0x00, 0x01, 0x00 }; 118#endif 119 120static void wi_intr __P((void *)); 121static void wi_reset __P((struct wi_softc *)); --- 908 unchanged lines hidden (view full) --- 1030 mcast.wi_type = WI_RID_MCAST; 1031 mcast.wi_len = (3 * 16) + 1; 1032 1033 if (ifp->if_flags & IFF_ALLMULTI || ifp->if_flags & IFF_PROMISC) { 1034 wi_write_record(sc, (struct wi_ltv_gen *)&mcast); 1035 return; 1036 } 1037 |
1038 LIST_FOREACH(ifma, &ifp->if_multiaddrs, ifma_link) { | 1038 TAILQ_FOREACH(ifma, &ifp->if_multiaddrs, ifma_link) { |
1039 if (ifma->ifma_addr->sa_family != AF_LINK) 1040 continue; 1041 if (i < 16) { 1042 bcopy(LLADDR((struct sockaddr_dl *)ifma->ifma_addr), 1043 (char *)&mcast.wi_mcast[i], ETHER_ADDR_LEN); 1044 i++; 1045 } else { 1046 bzero((char *)&mcast, sizeof(mcast)); --- 752 unchanged lines hidden --- | 1039 if (ifma->ifma_addr->sa_family != AF_LINK) 1040 continue; 1041 if (i < 16) { 1042 bcopy(LLADDR((struct sockaddr_dl *)ifma->ifma_addr), 1043 (char *)&mcast.wi_mcast[i], ETHER_ADDR_LEN); 1044 i++; 1045 } else { 1046 bzero((char *)&mcast, sizeof(mcast)); --- 752 unchanged lines hidden --- |