Lines Matching full:cap

26 	struct ieee80211_vht_capabilities *cap;  in hostapd_eid_vht_capabilities()  local
47 *pos++ = sizeof(*cap); in hostapd_eid_vht_capabilities()
49 cap = (struct ieee80211_vht_capabilities *) pos; in hostapd_eid_vht_capabilities()
50 os_memset(cap, 0, sizeof(*cap)); in hostapd_eid_vht_capabilities()
51 cap->vht_capabilities_info = host_to_le32( in hostapd_eid_vht_capabilities()
57 hapd_nsts = le_to_host32(cap->vht_capabilities_info); in hostapd_eid_vht_capabilities()
59 cap->vht_capabilities_info &= in hostapd_eid_vht_capabilities()
62 cap->vht_capabilities_info |= in hostapd_eid_vht_capabilities()
67 os_memcpy(&cap->vht_supported_mcs_set, mode->vht_mcs_set, 8); in hostapd_eid_vht_capabilities()
69 pos += sizeof(*cap); in hostapd_eid_vht_capabilities()
315 u32 cap, own_cap, sym_caps; in hostapd_get_vht_capab() local
321 cap = le_to_host32(neg_vht_cap->vht_capabilities_info); in hostapd_get_vht_capab()
326 cap &= ~sym_caps | (own_cap & sym_caps); in hostapd_get_vht_capab()
330 cap &= ~(VHT_CAP_SU_BEAMFORMEE_CAPABLE | in hostapd_get_vht_capab()
334 cap &= ~(VHT_CAP_SU_BEAMFORMER_CAPABLE | in hostapd_get_vht_capab()
338 cap &= ~VHT_CAP_MU_BEAMFORMEE_CAPABLE; in hostapd_get_vht_capab()
341 cap &= ~VHT_CAP_MU_BEAMFORMER_CAPABLE; in hostapd_get_vht_capab()
348 if (cap & VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ) { in hostapd_get_vht_capab()
349 cap &= ~VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ; in hostapd_get_vht_capab()
350 cap |= VHT_CAP_SUPP_CHAN_WIDTH_160MHZ; in hostapd_get_vht_capab()
354 cap &= ~VHT_CAP_SUPP_CHAN_WIDTH_MASK; in hostapd_get_vht_capab()
358 if (!(cap & VHT_CAP_SUPP_CHAN_WIDTH_MASK)) in hostapd_get_vht_capab()
359 cap &= ~VHT_CAP_SHORT_GI_160; in hostapd_get_vht_capab()
366 cap &= ~VHT_CAP_TXSTBC; in hostapd_get_vht_capab()
368 cap &= ~VHT_CAP_RXSTBC_MASK; in hostapd_get_vht_capab()
370 neg_vht_cap->vht_capabilities_info = host_to_le32(cap); in hostapd_get_vht_capab()