if_wl.c (72012) | if_wl.c (72084) |
---|---|
1/* $FreeBSD: head/sys/dev/wl/if_wl.c 72012 2001-02-04 16:08:18Z phk $ */ | 1/* $FreeBSD: head/sys/dev/wl/if_wl.c 72084 2001-02-06 10:12:15Z 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 --- 2045 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 | 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 --- 2045 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 LIST_FOREACH(ifma, &sc->wl_if.if_multiaddrs, ifma_link) { | 2063 TAILQ_FOREACH(ifma, &sc->wl_if.if_multiaddrs, ifma_link) { |
2064 if (ifma->ifma_addr->sa_family != AF_LINK) 2065 continue; 2066 2067 addrp = LLADDR((struct sockaddr_dl *)ifma->ifma_addr); 2068 outw(PIOP1(base), addrp[0] + (addrp[1] << 8)); 2069 outw(PIOP1(base), addrp[2] + (addrp[3] << 8)); 2070 outw(PIOP1(base), addrp[4] + (addrp[5] << 8)); 2071 ++cnt; --- 589 unchanged lines hidden --- | 2064 if (ifma->ifma_addr->sa_family != AF_LINK) 2065 continue; 2066 2067 addrp = LLADDR((struct sockaddr_dl *)ifma->ifma_addr); 2068 outw(PIOP1(base), addrp[0] + (addrp[1] << 8)); 2069 outw(PIOP1(base), addrp[2] + (addrp[3] << 8)); 2070 outw(PIOP1(base), addrp[4] + (addrp[5] << 8)); 2071 ++cnt; --- 589 unchanged lines hidden --- |