Lines Matching refs:mode

1105 	struct hostapd_hw_modes *mode;  in hostap_get_hw_feature_data()  local
1112 mode = os_zalloc(sizeof(struct hostapd_hw_modes)); in hostap_get_hw_feature_data()
1113 if (mode == NULL) in hostap_get_hw_feature_data()
1120 mode->mode = HOSTAPD_MODE_IEEE80211B; in hostap_get_hw_feature_data()
1121 mode->num_channels = 14; in hostap_get_hw_feature_data()
1122 mode->num_rates = 4; in hostap_get_hw_feature_data()
1124 clen = mode->num_channels * sizeof(struct hostapd_channel_data); in hostap_get_hw_feature_data()
1125 rlen = mode->num_rates * sizeof(int); in hostap_get_hw_feature_data()
1127 mode->channels = os_zalloc(clen); in hostap_get_hw_feature_data()
1128 mode->rates = os_zalloc(rlen); in hostap_get_hw_feature_data()
1129 if (mode->channels == NULL || mode->rates == NULL) { in hostap_get_hw_feature_data()
1130 os_free(mode->channels); in hostap_get_hw_feature_data()
1131 os_free(mode->rates); in hostap_get_hw_feature_data()
1132 os_free(mode); in hostap_get_hw_feature_data()
1137 mode->channels[i].chan = i + 1; in hostap_get_hw_feature_data()
1138 mode->channels[i].freq = chan2freq[i]; in hostap_get_hw_feature_data()
1139 mode->channels[i].allowed_bw = HOSTAPD_CHAN_WIDTH_20; in hostap_get_hw_feature_data()
1142 mode->channels[i].flag = HOSTAPD_CHAN_DISABLED; in hostap_get_hw_feature_data()
1145 mode->rates[0] = 10; in hostap_get_hw_feature_data()
1146 mode->rates[1] = 20; in hostap_get_hw_feature_data()
1147 mode->rates[2] = 55; in hostap_get_hw_feature_data()
1148 mode->rates[3] = 110; in hostap_get_hw_feature_data()
1150 return mode; in hostap_get_hw_feature_data()