Lines Matching full:cap
461 p += scnprintf(p, bufsz + buf - p, "cap: %#.4x\n", htc->cap); in sta_ht_capa_read()
463 PRINT_HT_CAP((htc->cap & BIT(0)), "RX LDPC"); in sta_ht_capa_read()
464 PRINT_HT_CAP((htc->cap & BIT(1)), "HT20/HT40"); in sta_ht_capa_read()
465 PRINT_HT_CAP(!(htc->cap & BIT(1)), "HT20"); in sta_ht_capa_read()
467 PRINT_HT_CAP(((htc->cap >> 2) & 0x3) == 0, "Static SM Power Save"); in sta_ht_capa_read()
468 PRINT_HT_CAP(((htc->cap >> 2) & 0x3) == 1, "Dynamic SM Power Save"); in sta_ht_capa_read()
469 PRINT_HT_CAP(((htc->cap >> 2) & 0x3) == 3, "SM Power Save disabled"); in sta_ht_capa_read()
471 PRINT_HT_CAP((htc->cap & BIT(4)), "RX Greenfield"); in sta_ht_capa_read()
472 PRINT_HT_CAP((htc->cap & BIT(5)), "RX HT20 SGI"); in sta_ht_capa_read()
473 PRINT_HT_CAP((htc->cap & BIT(6)), "RX HT40 SGI"); in sta_ht_capa_read()
474 PRINT_HT_CAP((htc->cap & BIT(7)), "TX STBC"); in sta_ht_capa_read()
476 PRINT_HT_CAP(((htc->cap >> 8) & 0x3) == 0, "No RX STBC"); in sta_ht_capa_read()
477 PRINT_HT_CAP(((htc->cap >> 8) & 0x3) == 1, "RX STBC 1-stream"); in sta_ht_capa_read()
478 PRINT_HT_CAP(((htc->cap >> 8) & 0x3) == 2, "RX STBC 2-streams"); in sta_ht_capa_read()
479 PRINT_HT_CAP(((htc->cap >> 8) & 0x3) == 3, "RX STBC 3-streams"); in sta_ht_capa_read()
481 PRINT_HT_CAP((htc->cap & BIT(10)), "HT Delayed Block Ack"); in sta_ht_capa_read()
483 PRINT_HT_CAP(!(htc->cap & BIT(11)), "Max AMSDU length: " in sta_ht_capa_read()
485 PRINT_HT_CAP((htc->cap & BIT(11)), "Max AMSDU length: " in sta_ht_capa_read()
494 PRINT_HT_CAP((htc->cap & BIT(12)), "DSSS/CCK HT40"); in sta_ht_capa_read()
495 PRINT_HT_CAP(!(htc->cap & BIT(12)), "No DSSS/CCK HT40"); in sta_ht_capa_read()
499 PRINT_HT_CAP((htc->cap & BIT(14)), "40 MHz Intolerant"); in sta_ht_capa_read()
501 PRINT_HT_CAP((htc->cap & BIT(15)), "L-SIG TXOP protection"); in sta_ht_capa_read()
546 p += scnprintf(p, bufsz + buf - p, "cap: %#.8x\n", in sta_vht_capa_read()
547 vhtc->cap); in sta_vht_capa_read()
550 if (vhtc->cap & IEEE80211_VHT_CAP_ ## a) \ in sta_vht_capa_read()
555 switch (vhtc->cap & 0x3) { in sta_vht_capa_read()
572 switch (vhtc->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK) { in sta_vht_capa_read()
588 (vhtc->cap >> 2) & 0x3); in sta_vht_capa_read()
595 "\t\tRXSTBC_%d\n", (vhtc->cap >> 8) & 0x7); in sta_vht_capa_read()
600 (vhtc->cap & IEEE80211_VHT_CAP_BEAMFORMEE_STS_MASK) >> in sta_vht_capa_read()
604 (vhtc->cap & IEEE80211_VHT_CAP_SOUNDING_DIMENSIONS_MASK) in sta_vht_capa_read()
612 (vhtc->cap & IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK) >> in sta_vht_capa_read()
618 (vhtc->cap & IEEE80211_VHT_CAP_VHT_LINK_ADAPTATION_VHT_MRQ_MFB) >> 26); in sta_vht_capa_read()
652 u8 *cap; in sta_he_capa_read() local
666 cap = hec->he_cap_elem.mac_cap_info; in sta_he_capa_read()
668 "MAC-CAP: %#.2x %#.2x %#.2x %#.2x %#.2x %#.2x\n", in sta_he_capa_read()
669 cap[0], cap[1], cap[2], cap[3], cap[4], cap[5]); in sta_he_capa_read()
677 if (cap[n] & IEEE80211_HE_##t##_CAP##n##_##a) \ in sta_he_capa_read()
684 u8 idx = ((cap[i] & msk) >> (ffs(msk) - 1)) + off; \ in sta_he_capa_read()
690 if (cap[i] == IEEE80211_HE_##t ##_CAP##i##_##n##_##a) { \ in sta_he_capa_read()
712 if (cap[0] & IEEE80211_HE_MAC_CAP0_HTC_HE) { in sta_he_capa_read()
713 switch (((cap[2] << 1) | (cap[1] >> 7)) & 0x3) { in sta_he_capa_read()
740 switch (cap[3] & IEEE80211_HE_MAC_CAP3_MAX_AMPDU_LEN_EXP_MASK) { in sta_he_capa_read()
767 PRINT("MULTI-TID-AGG-TX-QOS-%d", ((cap[5] << 1) | (cap[4] >> 7)) & 0x7); in sta_he_capa_read()
777 cap = hec->he_cap_elem.phy_cap_info; in sta_he_capa_read()
779 "PHY CAP: %#.2x %#.2x %#.2x %#.2x %#.2x %#.2x %#.2x %#.2x %#.2x %#.2x %#.2x\n", in sta_he_capa_read()
780 cap[0], cap[1], cap[2], cap[3], cap[4], cap[5], cap[6], in sta_he_capa_read()
781 cap[7], cap[8], cap[9], cap[10]); in sta_he_capa_read()
796 switch (cap[1] & IEEE80211_HE_PHY_CAP1_PREAMBLE_PUNC_RX_MASK) { in sta_he_capa_read()
817 PRINT("MIDAMBLE-RX-MAX-NSTS-%d", ((cap[2] << 1) | (cap[1] >> 7)) & 0x3); in sta_he_capa_read()
827 switch (cap[3] & IEEE80211_HE_PHY_CAP3_DCM_MAX_CONST_TX_MASK) { in sta_he_capa_read()
845 switch (cap[3] & IEEE80211_HE_PHY_CAP3_DCM_MAX_CONST_RX_MASK) { in sta_he_capa_read()
911 switch (cap[8] & IEEE80211_HE_PHY_CAP8_DCM_MAX_RU_MASK) { in sta_he_capa_read()
939 switch (u8_get_bits(cap[9], in sta_he_capa_read()
982 if (cap[0] & IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_160MHZ_IN_5G) { in sta_he_capa_read()
987 if (cap[0] & in sta_he_capa_read()
996 if (!(cap[6] & IEEE80211_HE_PHY_CAP6_PPE_THRESHOLD_PRESENT)) in sta_he_capa_read()
1002 ppe_size = ieee80211_he_ppe_size(hec->ppe_thres[0], cap); in sta_he_capa_read()