if_wl.c (67893) | if_wl.c (71999) |
---|---|
1/* $FreeBSD: head/sys/dev/wl/if_wl.c 67893 2000-10-29 16:06:56Z phk $ */ | 1/* $FreeBSD: head/sys/dev/wl/if_wl.c 71999 2001-02-04 13:13:25Z phk $ */ |
2/* 3 * Redistribution and use in source and binary forms, with or without 4 * modification, are permitted provided that the following conditions 5 * are met: 6 * 1. Redistributions of source code must retain all copyright 7 * notices, this list of conditions and the following disclaimer. 8 * 2. The names of the authors may not be used to endorse or promote products 9 * derived from this software withough specific prior written permission --- 667 unchanged lines hidden (view full) --- 677 int stat; 678 u_long oldpri; 679 680#ifdef WLDEBUG 681 if (sc->wl_if.if_flags & IFF_DEBUG) 682 printf("wl%d: entered wlinit()\n",sc->unit); 683#endif 684#if defined(__FreeBSD__) && __FreeBSD_version >= 300000 | 2/* 3 * Redistribution and use in source and binary forms, with or without 4 * modification, are permitted provided that the following conditions 5 * are met: 6 * 1. Redistributions of source code must retain all copyright 7 * notices, this list of conditions and the following disclaimer. 8 * 2. The names of the authors may not be used to endorse or promote products 9 * derived from this software withough specific prior written permission --- 667 unchanged lines hidden (view full) --- 677 int stat; 678 u_long oldpri; 679 680#ifdef WLDEBUG 681 if (sc->wl_if.if_flags & IFF_DEBUG) 682 printf("wl%d: entered wlinit()\n",sc->unit); 683#endif 684#if defined(__FreeBSD__) && __FreeBSD_version >= 300000 |
685 if (ifp->if_addrhead.tqh_first == (struct ifaddr *)0) { | 685 if (TAILQ_FIRST(&ifp->if_addrhead) == (struct ifaddr *)0) { |
686#else 687 if (ifp->if_addrlist == (struct ifaddr *)0) { 688#endif 689 return; 690 } 691 oldpri = splimp(); 692 if ((stat = wlhwrst(sc->unit)) == TRUE) { 693 sc->wl_if.if_flags |= IFF_RUNNING; /* same as DSF_RUNNING */ --- 1361 unchanged lines hidden (view full) --- 2055 if(wlcmd(unit, "config()-configure") == 0) 2056 return 0; 2057#if MULTICAST 2058 outw(PIOR1(base), OFFSET_CU); 2059 outw(PIOP1(base), 0); /* ac_status */ 2060 outw(PIOP1(base), AC_MCSETUP|AC_CW_EL); /* ac_command */ 2061 outw(PIOR1(base), OFFSET_CU + 8); 2062#if defined(__FreeBSD__) && __FreeBSD_version >= 300000 | 686#else 687 if (ifp->if_addrlist == (struct ifaddr *)0) { 688#endif 689 return; 690 } 691 oldpri = splimp(); 692 if ((stat = wlhwrst(sc->unit)) == TRUE) { 693 sc->wl_if.if_flags |= IFF_RUNNING; /* same as DSF_RUNNING */ --- 1361 unchanged lines hidden (view full) --- 2055 if(wlcmd(unit, "config()-configure") == 0) 2056 return 0; 2057#if MULTICAST 2058 outw(PIOR1(base), OFFSET_CU); 2059 outw(PIOP1(base), 0); /* ac_status */ 2060 outw(PIOP1(base), AC_MCSETUP|AC_CW_EL); /* ac_command */ 2061 outw(PIOR1(base), OFFSET_CU + 8); 2062#if defined(__FreeBSD__) && __FreeBSD_version >= 300000 |
2063 for (ifma = sc->wl_if.if_multiaddrs.lh_first; ifma; 2064 ifma = ifma->ifma_link.le_next) { | 2063 for (ifma = LIST_FIRST(&sc->wl_if.if_multiaddrs); ifma; 2064 ifma = LIST_NEXT(ifma, ifma_link)) { |
2065 if (ifma->ifma_addr->sa_family != AF_LINK) 2066 continue; 2067 2068 addrp = LLADDR((struct sockaddr_dl *)ifma->ifma_addr); 2069 outw(PIOP1(base), addrp[0] + (addrp[1] << 8)); 2070 outw(PIOP1(base), addrp[2] + (addrp[3] << 8)); 2071 outw(PIOP1(base), addrp[4] + (addrp[5] << 8)); 2072 ++cnt; --- 589 unchanged lines hidden --- | 2065 if (ifma->ifma_addr->sa_family != AF_LINK) 2066 continue; 2067 2068 addrp = LLADDR((struct sockaddr_dl *)ifma->ifma_addr); 2069 outw(PIOP1(base), addrp[0] + (addrp[1] << 8)); 2070 outw(PIOP1(base), addrp[2] + (addrp[3] << 8)); 2071 outw(PIOP1(base), addrp[4] + (addrp[5] << 8)); 2072 ++cnt; --- 589 unchanged lines hidden --- |