return 1;
}
} else if (os_strcmp(buf, "beacon_rate") == 0) {
+ enum beacon_rate_type rate_type;
int val;
if (os_strncmp(pos, "ht:", 3) == 0) {
line, val);
return 1;
}
- conf->rate_type = BEACON_RATE_HT;
- conf->beacon_rate = val;
+ rate_type = BEACON_RATE_HT;
} else if (os_strncmp(pos, "vht:", 4) == 0) {
val = atoi(pos + 4);
if (val < 0 || val > 9) {
line, val);
return 1;
}
- conf->rate_type = BEACON_RATE_VHT;
- conf->beacon_rate = val;
+ rate_type = BEACON_RATE_VHT;
} else if (os_strncmp(pos, "he:", 3) == 0) {
val = atoi(pos + 3);
if (val < 0 || val > 11) {
line, val);
return 1;
}
- conf->rate_type = BEACON_RATE_HE;
- conf->beacon_rate = val;
+ rate_type = BEACON_RATE_HE;
} else {
val = atoi(pos);
if (val < 10 || val > 10000) {
line, val);
return 1;
}
- conf->rate_type = BEACON_RATE_LEGACY;
- conf->beacon_rate = val;
+ rate_type = BEACON_RATE_LEGACY;
}
+
+ bss->rate_type = rate_type;
+ bss->beacon_rate = val;
} else if (os_strcmp(buf, "preamble") == 0) {
if (atoi(pos))
conf->preamble = SHORT_PREAMBLE;
int max_num_sta; /* maximum number of STAs in station table */
+ enum beacon_rate_type rate_type;
+ unsigned int beacon_rate;
+
int dtim_period;
unsigned int bss_load_update_period;
unsigned int chan_util_avg_period;
SHORT_PREAMBLE = 1
} preamble;
- unsigned int beacon_rate;
- enum beacon_rate_type rate_type;
-
const struct wpa_driver_ops *driver;
char *driver_params;
params->dtim_period = hapd->conf->dtim_period;
params->beacon_int = hapd->iconf->beacon_int;
params->basic_rates = hapd->basic_rates;
- params->beacon_rate = hapd->iconf->beacon_rate;
- params->rate_type = hapd->iconf->rate_type;
+ params->beacon_rate = hapd->conf->beacon_rate;
+ params->rate_type = hapd->conf->rate_type;
params->ssid = hapd->conf->ssid.ssid;
params->ssid_len = hapd->conf->ssid.ssid_len;
if ((hapd->conf->wpa & (WPA_PROTO_WPA | WPA_PROTO_RSN)) ==