ieee80211_input.c (404265d4fe285fab64e9b13b8c157637505527f6) | ieee80211_input.c (da17aba102cd3b8430debe57774eea37fa95fbb2) |
---|---|
1/*- 2 * Copyright (c) 2001 Atsushi Onoe 3 * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 877 unchanged lines hidden (view full) --- 886 return; 887 } else 888 (void) ieee80211_ref_node(ni); 889 IEEE80211_SEND_MGMT(ic, ni, 890 IEEE80211_FC0_SUBTYPE_AUTH, seq + 1); 891 IEEE80211_DPRINTF(ic, IEEE80211_MSG_DEBUG | IEEE80211_MSG_AUTH, 892 "[%s] station authenticated (open)\n", 893 ether_sprintf(ni->ni_macaddr)); | 1/*- 2 * Copyright (c) 2001 Atsushi Onoe 3 * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 877 unchanged lines hidden (view full) --- 886 return; 887 } else 888 (void) ieee80211_ref_node(ni); 889 IEEE80211_SEND_MGMT(ic, ni, 890 IEEE80211_FC0_SUBTYPE_AUTH, seq + 1); 891 IEEE80211_DPRINTF(ic, IEEE80211_MSG_DEBUG | IEEE80211_MSG_AUTH, 892 "[%s] station authenticated (open)\n", 893 ether_sprintf(ni->ni_macaddr)); |
894 /* 895 * When 802.1x is not in use mark the port 896 * authorized at this point so traffic can flow. 897 */ 898 if (ni->ni_authmode != IEEE80211_AUTH_8021X) 899 ieee80211_node_authorize(ic, ni); |
|
894 break; 895 896 case IEEE80211_M_STA: 897 if (ic->ic_state != IEEE80211_S_AUTH || 898 seq != IEEE80211_AUTH_OPEN_RESPONSE) { 899 ic->ic_stats.is_rx_bad_auth++; 900 return; 901 } --- 199 unchanged lines hidden (view full) --- 1101 ic->ic_stats.is_rx_auth_fail++; 1102 estatus = IEEE80211_STATUS_CHALLENGE; 1103 goto bad; 1104 } 1105 IEEE80211_DPRINTF(ic, 1106 IEEE80211_MSG_DEBUG | IEEE80211_MSG_AUTH, 1107 "[%s] station authenticated (shared key)\n", 1108 ether_sprintf(ni->ni_macaddr)); | 900 break; 901 902 case IEEE80211_M_STA: 903 if (ic->ic_state != IEEE80211_S_AUTH || 904 seq != IEEE80211_AUTH_OPEN_RESPONSE) { 905 ic->ic_stats.is_rx_bad_auth++; 906 return; 907 } --- 199 unchanged lines hidden (view full) --- 1107 ic->ic_stats.is_rx_auth_fail++; 1108 estatus = IEEE80211_STATUS_CHALLENGE; 1109 goto bad; 1110 } 1111 IEEE80211_DPRINTF(ic, 1112 IEEE80211_MSG_DEBUG | IEEE80211_MSG_AUTH, 1113 "[%s] station authenticated (shared key)\n", 1114 ether_sprintf(ni->ni_macaddr)); |
1115 ieee80211_node_authorize(ic, ni); |
|
1109 break; 1110 default: 1111 IEEE80211_DISCARD_MAC(ic, IEEE80211_MSG_AUTH, 1112 ni->ni_macaddr, "shared key auth", 1113 "bad seq %d", seq); 1114 ic->ic_stats.is_rx_bad_auth++; 1115 estatus = IEEE80211_STATUS_SEQUENCE; 1116 goto bad; --- 1648 unchanged lines hidden --- | 1116 break; 1117 default: 1118 IEEE80211_DISCARD_MAC(ic, IEEE80211_MSG_AUTH, 1119 ni->ni_macaddr, "shared key auth", 1120 "bad seq %d", seq); 1121 ic->ic_stats.is_rx_bad_auth++; 1122 estatus = IEEE80211_STATUS_SEQUENCE; 1123 goto bad; --- 1648 unchanged lines hidden --- |