Lines Matching defs:modes
5515 struct hostapd_hw_modes *modes;
5703 mode = os_realloc_array(phy_info->modes,
5708 phy_info->modes = mode;
5710 mode = &phy_info->modes[*(phy_info->num_modes)];
5731 mode = &phy_info->modes[*(phy_info->num_modes) - 1];
5779 wpa_driver_nl80211_postprocess_modes(struct hostapd_hw_modes *modes,
5786 /* heuristic to set up modes */
5788 if (!modes[m].num_channels)
5790 if (modes[m].channels[0].freq < 4000) {
5791 modes[m].mode = HOSTAPD_MODE_IEEE80211B;
5792 for (i = 0; i < modes[m].num_rates; i++) {
5793 if (modes[m].rates[i] > 200) {
5794 modes[m].mode = HOSTAPD_MODE_IEEE80211G;
5798 } else if (modes[m].channels[0].freq > 50000)
5799 modes[m].mode = HOSTAPD_MODE_IEEE80211AD;
5801 modes[m].mode = HOSTAPD_MODE_IEEE80211A;
5808 if (modes[m].mode == HOSTAPD_MODE_IEEE80211B)
5809 return modes; /* 802.11b already included */
5810 if (modes[m].mode == HOSTAPD_MODE_IEEE80211G)
5815 return modes; /* 2.4 GHz band not supported at all */
5817 nmodes = os_realloc_array(modes, *num_modes + 1, sizeof(*nmodes));
5819 return modes; /* Could not add 802.11b mode */
5824 modes = nmodes;
5828 mode11g = &modes[mode11g_idx];
5834 return modes; /* Could not add 802.11b mode */
5844 return modes; /* Could not add 802.11b mode */
5861 return modes; /* No 802.11b rates */
5867 return modes;
5922 if (!(results->modes[m].ht_capab &
5925 nl80211_set_ht40_mode(&results->modes[m], start, end);
5949 if (!(results->modes[m].ht_capab &
5952 nl80211_set_ht40_mode_sec(&results->modes[m], start, end);
6027 .modes = NULL,
6049 return wpa_driver_nl80211_postprocess_modes(result.modes,