Deleted Added
full compact
ieee80211_sta.c (184205) ieee80211_sta.c (184210)
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 184205 2008-10-23 15:53:51Z des $");
28__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_sta.c 184210 2008-10-23 19:57:13Z des $");
29#endif
30
31/*
32 * IEEE 802.11 Station mode support.
33 */
34#include "opt_inet.h"
35#include "opt_wlan.h"
36

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

1008 default:
1009 break;
1010 }
1011 if (vap->iv_state != IEEE80211_S_AUTH)
1012 return;
1013 switch (seq) {
1014 case IEEE80211_AUTH_SHARED_PASS:
1015 if (ni->ni_challenge != NULL) {
29#endif
30
31/*
32 * IEEE 802.11 Station mode support.
33 */
34#include "opt_inet.h"
35#include "opt_wlan.h"
36

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

1008 default:
1009 break;
1010 }
1011 if (vap->iv_state != IEEE80211_S_AUTH)
1012 return;
1013 switch (seq) {
1014 case IEEE80211_AUTH_SHARED_PASS:
1015 if (ni->ni_challenge != NULL) {
1016 free(ni->ni_challenge, M_80211_NODE);
1016 FREE(ni->ni_challenge, M_80211_NODE);
1017 ni->ni_challenge = NULL;
1018 }
1019 if (status != 0) {
1020 IEEE80211_NOTE_FRAME(vap,
1021 IEEE80211_MSG_DEBUG | IEEE80211_MSG_AUTH, wh,
1022 "shared key auth failed (reason %d)", status);
1023 vap->iv_stats.is_rx_auth_fail++;
1024 vap->iv_stats.is_rx_authfail_code = status;

--- 623 unchanged lines hidden ---
1017 ni->ni_challenge = NULL;
1018 }
1019 if (status != 0) {
1020 IEEE80211_NOTE_FRAME(vap,
1021 IEEE80211_MSG_DEBUG | IEEE80211_MSG_AUTH, wh,
1022 "shared key auth failed (reason %d)", status);
1023 vap->iv_stats.is_rx_auth_fail++;
1024 vap->iv_stats.is_rx_authfail_code = status;

--- 623 unchanged lines hidden ---