Deleted Added
full compact
ieee80211_sta.c (184480) ieee80211_sta.c (186302)
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 184480 2008-10-30 16:22:04Z sam $");
28__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_sta.c 186302 2008-12-18 23:00:09Z sam $");
29#endif
30
31/*
32 * IEEE 802.11 Station mode support.
33 */
34#include "opt_inet.h"
35#include "opt_wlan.h"
36

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

1013 default:
1014 break;
1015 }
1016 if (vap->iv_state != IEEE80211_S_AUTH)
1017 return;
1018 switch (seq) {
1019 case IEEE80211_AUTH_SHARED_PASS:
1020 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

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

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

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

--- 623 unchanged lines hidden ---