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

void print_cipher ( TLVBUF_CIPHER *  tlv )

Show cipher tlv.

Parameters:
tlvPoniter to cipher tlv

$return N/A

Definition at line 5003 of file uaputl.c.

References CIPHER_AES_CCMP, CIPHER_NONE, and CIPHER_TKIP.

Referenced by apcmd_sys_cfg_cipher(), and print_tlv().

{
    switch (tlv->PairwiseCipher) {
    case CIPHER_TKIP:
        printf("PairwiseCipher = TKIP\n");
        break;
    case CIPHER_AES_CCMP:
        printf("PairwiseCipher = AES CCMP\n");
        break;
    case CIPHER_TKIP | CIPHER_AES_CCMP:
        printf("PairwiseCipher = TKIP + AES CCMP\n");
        break;
    case CIPHER_NONE:
        printf("PairwiseCipher =  None\n");
        break;
    default:
        printf("Unknown Pairwise cipher 0x%x\n", tlv->PairwiseCipher);
        break;
    }
    switch (tlv->GroupCipher) {
    case CIPHER_TKIP:
        printf("GroupCipher = TKIP\n");
        break;
    case CIPHER_AES_CCMP:
        printf("GroupCipher = AES CCMP\n");
        break;
    case CIPHER_NONE:
        printf("GroupCipher = None\n");
        break;
    default:
        printf("Unknown Group cipher 0x%x\n", tlv->GroupCipher);
        break;
    }
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index