Deleted Added
full compact
ieee80211_sta.c (264906) ieee80211_sta.c (271861)
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

--- 11 unchanged lines hidden (view full) ---

20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#include <sys/cdefs.h>
27#ifdef __FreeBSD__
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

--- 11 unchanged lines hidden (view full) ---

20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#include <sys/cdefs.h>
27#ifdef __FreeBSD__
28__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_sta.c 264906 2014-04-25 01:20:10Z adrian $");
28__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_sta.c 271861 2014-09-19 09:20:55Z glebius $");
29#endif
30
31/*
32 * IEEE 802.11 Station mode support.
33 */
34#include "opt_inet.h"
35#include "opt_wlan.h"
36

--- 896 unchanged lines hidden (view full) ---

933
934 default:
935 IEEE80211_DISCARD(vap, IEEE80211_MSG_ANY,
936 wh, NULL, "bad frame type 0x%x", type);
937 /* should not come here */
938 break;
939 }
940err:
29#endif
30
31/*
32 * IEEE 802.11 Station mode support.
33 */
34#include "opt_inet.h"
35#include "opt_wlan.h"
36

--- 896 unchanged lines hidden (view full) ---

933
934 default:
935 IEEE80211_DISCARD(vap, IEEE80211_MSG_ANY,
936 wh, NULL, "bad frame type 0x%x", type);
937 /* should not come here */
938 break;
939 }
940err:
941 ifp->if_ierrors++;
941 if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
942out:
943 if (m != NULL) {
944 if (need_tap && ieee80211_radiotap_active_vap(vap))
945 ieee80211_radiotap_rx(vap, m);
946 m_freem(m);
947 }
948 return type;
949}

--- 892 unchanged lines hidden ---
942out:
943 if (m != NULL) {
944 if (need_tap && ieee80211_radiotap_active_vap(vap))
945 ieee80211_radiotap_rx(vap, m);
946 m_freem(m);
947 }
948 return type;
949}

--- 892 unchanged lines hidden ---