software/drivers/sd8887/src/wlan/mapp/uaputl/uaputl.c
/**
 *  @brief Show pairwise cipher tlv
 *
 *  @param tlv     Pointer to pairwise cipher tlv
 *
 *  @return         N/A
 */
@brief Show pairwise cipher tlv
@param tlv     Pointer to pairwise cipher tlv

@return         N/A
@brief Show pairwise cipher tlv @param tlv Pointer to pairwise cipher tlv @return N / A
void
print_pwk_cipher(tlvbuf_pwk_cipher *tlv)
{
	switch (tlv->protocol) {
	case PROTOCOL_WPA:
		printf("Protocol WPA  : ");
		break;
	case PROTOCOL_WPA2:
		printf("Protocol WPA2 : ");
		break;
	default:
		printf("Unknown Protocol 0x%x\n", tlv->protocol);
		break;
	}
	switch (tlv->pairwise_cipher) {
	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->pairwise_cipher);
		break;
	}
}
void print_pwk_cipher ( tlvbuf_pwk_cipher * tlv ) { switch ( tlv -> protocol ) { case PROTOCOL_WPA : printf ( " " ) ; break ; case PROTOCOL_WPA2 : printf ( " " ) ; break ; default : printf ( " \n " , tlv -> protocol ) ; break ; } switch ( tlv -> pairwise_cipher ) { case CIPHER_TKIP : printf ( " \n " ) ; break ; case CIPHER_AES_CCMP : printf ( " \n " ) ; break ; case CIPHER_TKIP | CIPHER_AES_CCMP : printf ( " \n " ) ; break ; case CIPHER_NONE : printf ( " \n " ) ; break ; default : printf ( " \n " , tlv -> pairwise_cipher ) ; break ; } }
@brief Show pairwise cipher tlv
  @param tlv     Pointer to pairwise cipher tlv
@brief Show pairwise cipher tlv @param tlv Pointer to pairwise cipher tlv