Logo Search packages:      
Sourcecode: uapevent version File versions  Download package

void print_event_sta_deauth ( u8 buffer,
u16  size 
)

Parse and print STA deauthentication event data.

Parameters:
bufferPointer to received event buffer
sizeLength of the received event data
Returns:
N/A

Definition at line 136 of file uapevent.c.

References print_mac(), and uap_le16_to_cpu.

Referenced by print_event().

{
    EVENTBUF_STA_DEAUTH *event_body = NULL;

    if (size < sizeof(EVENTBUF_STA_DEAUTH)) {
        printf("ERR:Event buffer too small!\n");
        return;
    }
    event_body = (EVENTBUF_STA_DEAUTH *) buffer;
    event_body->ReasonCode = uap_le16_to_cpu(event_body->ReasonCode);
    printf("EVENT: STA_DEAUTH\n");
    printf("Deauthenticated STA MAC: ");
    print_mac(event_body->StaMacAddress);
    printf("\nReason: ");
    switch (event_body->ReasonCode) {
    case 1:
        printf("Unspecified reason.\n");
        break;
    case 2:
        printf("Previous authentication no longer valid.\n");
        break;
    case 3:
        printf("Deauthenticated because sending STA is leaving IBSS or ESS.\n");
        break;
    case 4:
        printf("Disassociated due to inactivity.\n");
        break;
    case 5:
        printf
            ("Disassociated because AP is unable to handle all currently associated STAs.\n");
        break;
    case 6:
        printf("Class 2 frame received from nonauthenticated STA.\n");
        break;
    case 7:
        printf("Class 3 frame received from nonassociated STA.\n");
        break;
    case 8:
        printf("Disassociated because sending STA is leaving BSS.\n");
        break;
    case 9:
        printf
            ("STA requesting (re)association is not authenticated with responding STA.\n");
        break;
    case 10:
        printf
            ("Disassociated because the information in the Power Capability element is unacceptable.\n");
        break;
    case 11:
        printf
            ("Disassociated because the information in the Supported Channels element is unacceptable.\n");
        break;
    case 13:
        printf("Invalid information element.\n");
        break;
    case 14:
        printf("Message integrity code (MIC) failure.\n");
        break;
    case 15:
        printf("4-Way Handshake timeout.\n");
        break;
    case 16:
        printf("Group Key Handshake timeout.\n");
        break;
    case 17:
        printf("Information element in 4-Way Handshake different from\n");
        printf("   (Re)Association Request/Probe Response/Beacon frame.\n");
        break;
    case 18:
        printf("Invalid group cipher.\n");
        break;
    case 19:
        printf("Invalid pairwise cipher.\n");
        break;
    case 20:
        printf("Invalid AKMP.\n");
        break;
    case 21:
        printf("Unsupported RSN information element version.\n");
        break;
    case 22:
        printf("Invalid RSN information element capabilities.\n");
        break;
    case 23:
        printf("IEEE 802.1X authentication failed.\n");
        break;
    case 24:
        printf("Cipher suite rejected because of the security policy.\n");
        break;
    case 32:
        printf("Disassociated for unspecified, QoS-related reason.\n");
        break;
    case 33:
        printf
            ("Disassociated because QoS AP lacks sufficient bandwidth for this QoS STA.\n");
        break;
    case 34:
        printf
            ("Disassociated because excessive number of frames need to be acknowledged\n");
        printf
            (" but are not acknowledged due to AP transmissions and or poor channel conditions.\n");
        break;
    case 35:
        printf
            ("Disassociated because STA is transmitting outside the limits of its TXOPs.\n");
        break;
    case 36:
        printf
            ("Requested from peer STA as the STA is leaving the BSS or resetting.\n");
        break;
    case 37:
        printf
            ("Requested from peer STA as it does not want to use the mechanism.\n");
        break;
    case 38:
        printf("Requested from peer STA as the STA received frames using");
        printf("   the mechanism for which a setup is required.\n");
        break;
    case 39:
        printf("Requested from peer STA due to timeout.\n");
        break;
    case 45:
        printf("Peer STA does not support the requested cipher suite.\n");
        break;
    default:
        printf("Reserved or Unspecified\n");
        break;
    }
    return;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index