Deleted Added
full compact
ieee80211_wds.c (194461) ieee80211_wds.c (195377)
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_wds.c 194461 2009-06-18 21:15:41Z rpaulo $");
28__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_wds.c 195377 2009-07-05 17:59:19Z sam $");
29#endif
30
31/*
32 * IEEE 802.11 WDS mode support.
33 */
34#include "opt_inet.h"
35#include "opt_wlan.h"
36

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

833 case IEEE80211_FC0_SUBTYPE_ACTION:
834 if (vap->iv_state != IEEE80211_S_RUN ||
835 IEEE80211_IS_MULTICAST(wh->i_addr1)) {
836 vap->iv_stats.is_rx_mgtdiscard++;
837 break;
838 }
839 ni->ni_inact = ni->ni_inact_reload;
840 if (ieee80211_parse_action(ni, m0) == 0)
29#endif
30
31/*
32 * IEEE 802.11 WDS mode support.
33 */
34#include "opt_inet.h"
35#include "opt_wlan.h"
36

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

833 case IEEE80211_FC0_SUBTYPE_ACTION:
834 if (vap->iv_state != IEEE80211_S_RUN ||
835 IEEE80211_IS_MULTICAST(wh->i_addr1)) {
836 vap->iv_stats.is_rx_mgtdiscard++;
837 break;
838 }
839 ni->ni_inact = ni->ni_inact_reload;
840 if (ieee80211_parse_action(ni, m0) == 0)
841 ic->ic_recv_action(ni, frm, efrm);
841 ic->ic_recv_action(ni, wh, frm, efrm);
842 break;
843 default:
844 IEEE80211_DISCARD(vap, IEEE80211_MSG_ANY,
845 wh, "mgt", "subtype 0x%x not handled", subtype);
846 vap->iv_stats.is_rx_badsubtype++;
847 break;
848 }
849}
842 break;
843 default:
844 IEEE80211_DISCARD(vap, IEEE80211_MSG_ANY,
845 wh, "mgt", "subtype 0x%x not handled", subtype);
846 vap->iv_stats.is_rx_badsubtype++;
847 break;
848 }
849}