ieee80211_hostap.c (86bd0491442e667469d72d133cf07945362f7dad) | ieee80211_hostap.c (b105165323e798c7238818d0413dbce4e67e6ab0) |
---|---|
1/*- 2 * Copyright (c) 2007-2008 Sam Leffler, Errno Consulting 3 * 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 --- 341 unchanged lines hidden (view full) --- 350static void 351hostap_deliver_data(struct ieee80211vap *vap, 352 struct ieee80211_node *ni, struct mbuf *m) 353{ 354 struct ether_header *eh = mtod(m, struct ether_header *); 355 struct ifnet *ifp = vap->iv_ifp; 356 357 /* clear driver/net80211 flags before passing up */ | 1/*- 2 * Copyright (c) 2007-2008 Sam Leffler, Errno Consulting 3 * 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 --- 341 unchanged lines hidden (view full) --- 350static void 351hostap_deliver_data(struct ieee80211vap *vap, 352 struct ieee80211_node *ni, struct mbuf *m) 353{ 354 struct ether_header *eh = mtod(m, struct ether_header *); 355 struct ifnet *ifp = vap->iv_ifp; 356 357 /* clear driver/net80211 flags before passing up */ |
358#if __FreeBSD_version >= 1000046 |
|
358 m->m_flags &= ~(M_MCAST | M_BCAST); 359 m_clrprotoflags(m); | 359 m->m_flags &= ~(M_MCAST | M_BCAST); 360 m_clrprotoflags(m); |
361#else 362 m->m_flags &= ~(M_80211_RX | M_MCAST | M_BCAST); 363#endif |
|
360 361 KASSERT(vap->iv_opmode == IEEE80211_M_HOSTAP, 362 ("gack, opmode %d", vap->iv_opmode)); 363 /* 364 * Do accounting. 365 */ 366 ifp->if_ipackets++; 367 IEEE80211_NODE_STAT(ni, rx_data); --- 1968 unchanged lines hidden --- | 364 365 KASSERT(vap->iv_opmode == IEEE80211_M_HOSTAP, 366 ("gack, opmode %d", vap->iv_opmode)); 367 /* 368 * Do accounting. 369 */ 370 ifp->if_ipackets++; 371 IEEE80211_NODE_STAT(ni, rx_data); --- 1968 unchanged lines hidden --- |