software/drivers/sd8887/src/wlan/mlan/mlan_11ac.c
/**
 *  @brief This function prints the 802.11ac device capability
 *
 *  @param pmadapter     A pointer to mlan_adapter structure
 *  @param cap           Capability value
 *
 *  @return        N/A
 */
@brief This function prints the 802.11ac device capability
@param pmadapter     A pointer to mlan_adapter structure
@param cap           Capability value

@return        N/A
@brief This function prints the 802 . 11ac device capability @param pmadapter A pointer to mlan_adapter structure @param cap Capability value @return N / A
void
wlan_show_dot11acdevcap(pmlan_adapter pmadapter, t_u32 cap)
{
	ENTER();
	switch (GET_VHTCAP_MAXMPDULEN(cap)) {
	case 0x0:
		PRINTM(MINFO,
		       "GET_HW_SPEC: Maximum MSDU length = 3895 octets\n");
		break;
	case 0x1:
		PRINTM(MINFO,
		       "GET_HW_SPEC: Maximum MSDU length = 7991 octets\n");
		break;
	case 0x2:
		PRINTM(MINFO,
		       "GET_HW_SPEC: Maximum MSDU length = 11454 octets\n");
		break;
	default:
		PRINTM(MINFO, "Unsupport value\n");
		break;
	}
	PRINTM(MINFO, "GET_HW_SPEC: HTC-VHT %s\n",
	       (ISSUPP_11ACVHTHTCVHT(cap) ? "supported" : "not supported"));
	PRINTM(MINFO, "GET_HW_SPEC: VHT TXOP PS %s\n",
	       (ISSUPP_11ACVHTTXOPPS(cap) ? "supported" : "not supported"));
	PRINTM(MINFO, "GET_HW_SPEC: MU RX beamformee %s\n",
	       (ISSUPP_11ACMURXBEAMFORMEE(cap) ? "supported" :
		"not supported"));
	PRINTM(MINFO, "GET_HW_SPEC: MU TX beamformee %s\n",
	       (ISSUPP_11ACMUTXBEAMFORMEE(cap) ? "supported" :
		"not supported"));
	PRINTM(MINFO, "GET_HW_SPEC: SU RX Beamformee %s\n",
	       (ISSUPP_11ACSUBEAMFORMEE(cap) ? "supported" : "not supported"));
	PRINTM(MINFO, "GET_HW_SPEC: SU TX Beamformer %s\n",
	       (ISSUPP_11ACSUBEAMFORMER(cap) ? "supported" : "not supported"));
	PRINTM(MINFO, "GET_HW_SPEC: Rx STBC %s\n",
	       (ISSUPP_11ACRXSTBC(cap) ? "supported" : "not supported"));
	PRINTM(MINFO, "GET_HW_SPEC: Tx STBC %s\n",
	       (ISSUPP_11ACTXSTBC(cap) ? "supported" : "not supported"));
	PRINTM(MINFO, "GET_HW_SPEC: Short GI %s for 160MHz BW\n",
	       (ISSUPP_11ACSGI160(cap) ? "supported" : "not supported"));
	PRINTM(MINFO, "GET_HW_SPEC: Short GI %s for 80MHz BW\n",
	       (ISSUPP_11ACSGI80(cap) ? "supported" : "not supported"));
	PRINTM(MINFO, "GET_HW_SPEC: LDPC coding %s\n",
	       (ISSUPP_11ACLDPC(cap) ? "supported" : "not supported"));
	PRINTM(MINFO, "GET_HW_SPEC: Channel BW 20/40/80/160/80+80 MHz %s\n",
	       (ISSUPP_11ACBW8080(cap) ? "supported" : "not supported"));
	PRINTM(MINFO, "GET_HW_SPEC: Channel BW 20/40/80/160 MHz %s\n",
	       (ISSUPP_11ACBW160(cap) ? "supported" : "not supported"));
	LEAVE();
	return;
}
void wlan_show_dot11acdevcap ( pmlan_adapter pmadapter , t_u32 cap ) { ENTER ( ) ; switch ( GET_VHTCAP_MAXMPDULEN ( cap ) ) { case 0x0 : PRINTM ( MINFO , " \n " ) ; break ; case 0x1 : PRINTM ( MINFO , " \n " ) ; break ; case 0x2 : PRINTM ( MINFO , " \n " ) ; break ; default : PRINTM ( MINFO , " \n " ) ; break ; } PRINTM ( MINFO , " \n " , ( ISSUPP_11ACVHTHTCVHT ( cap ) ? " " : " " ) ) ; PRINTM ( MINFO , " \n " , ( ISSUPP_11ACVHTTXOPPS ( cap ) ? " " : " " ) ) ; PRINTM ( MINFO , " \n " , ( ISSUPP_11ACMURXBEAMFORMEE ( cap ) ? " " : " " ) ) ; PRINTM ( MINFO , " \n " , ( ISSUPP_11ACMUTXBEAMFORMEE ( cap ) ? " " : " " ) ) ; PRINTM ( MINFO , " \n " , ( ISSUPP_11ACSUBEAMFORMEE ( cap ) ? " " : " " ) ) ; PRINTM ( MINFO , " \n " , ( ISSUPP_11ACSUBEAMFORMER ( cap ) ? " " : " " ) ) ; PRINTM ( MINFO , " \n " , ( ISSUPP_11ACRXSTBC ( cap ) ? " " : " " ) ) ; PRINTM ( MINFO , " \n " , ( ISSUPP_11ACTXSTBC ( cap ) ? " " : " " ) ) ; PRINTM ( MINFO , " \n " , ( ISSUPP_11ACSGI160 ( cap ) ? " " : " " ) ) ; PRINTM ( MINFO , " \n " , ( ISSUPP_11ACSGI80 ( cap ) ? " " : " " ) ) ; PRINTM ( MINFO , " \n " , ( ISSUPP_11ACLDPC ( cap ) ? " " : " " ) ) ; PRINTM ( MINFO , " \n " , ( ISSUPP_11ACBW8080 ( cap ) ? " " : " " ) ) ; PRINTM ( MINFO , " \n " , ( ISSUPP_11ACBW160 ( cap ) ? " " : " " ) ) ; LEAVE ( ) ; return ; }
@brief This function prints the 802.11ac device capability
  @param pmadapter     A pointer to mlan_adapter structure
  @param cap           Capability value
@brief This function prints the 802 . 11ac device capability @param pmadapter A pointer to mlan_adapter structure @param cap Capability value