Lines Matching defs:reason
30 const u8 *reason; /* Reason Code (conditional, 2 octets) */
97 /* close reason is always present at end for close */
101 mpm_ie->reason = ie + len - 2;
332 ie_len += 2; /* reason code */
470 u16 reason = 0;
487 reason = WLAN_REASON_MESH_MAX_RETRIES;
492 if (!reason)
493 reason = WLAN_REASON_MESH_CONFIRM_TIMEOUT;
498 mesh_mpm_send_plink_action(wpa_s, sta, PLINK_CLOSE, reason);
537 int reason = WLAN_REASON_MESH_PEERING_CANCELLED;
541 mesh_mpm_send_plink_action(wpa_s, sta, PLINK_CLOSE, reason);
924 enum plink_event event, u16 reason)
946 PLINK_CLOSE, reason);
956 if (!reason)
957 reason = WLAN_REASON_MESH_CONFIG_POLICY_VIOLATION;
961 if (!reason)
962 reason = WLAN_REASON_MESH_CLOSE_RCVD;
968 PLINK_CLOSE, reason);
992 if (!reason)
993 reason = WLAN_REASON_MESH_CONFIG_POLICY_VIOLATION;
997 if (!reason)
998 reason = WLAN_REASON_MESH_CLOSE_RCVD;
1003 sta->mpm_close_reason = reason;
1005 PLINK_CLOSE, reason);
1024 if (!reason)
1025 reason = WLAN_REASON_MESH_CONFIG_POLICY_VIOLATION;
1029 if (!reason)
1030 reason = WLAN_REASON_MESH_CLOSE_RCVD;
1035 sta->mpm_close_reason = reason;
1037 PLINK_CLOSE, reason);
1056 if (!reason)
1057 reason = WLAN_REASON_MESH_CLOSE_RCVD;
1063 sta->mpm_close_reason = reason;
1066 " closed with reason %d",
1067 MAC2STR(sta->addr), reason);
1074 reason);
1079 PLINK_CLOSE, reason);
1098 reason = sta->mpm_close_reason;
1100 PLINK_CLOSE, reason);
1129 u16 reason = 0;
1206 wpa_printf(MSG_DEBUG, "MPM: close reason=%u",
1207 WPA_GET_LE16(peer_mgmt_ie.reason));
1316 reason = WLAN_REASON_MESH_MAX_PEERS;
1333 reason = WLAN_REASON_MESH_MAX_PEERS;
1384 mesh_mpm_fsm(wpa_s, sta, event, reason);