rework wifi type and rate logic
Hard coding basic rates is wrong. Each Wifi types does expect some default basic rates. However those rates are not set in stone and the AC is permited to set then to whatever it deems ok. This might prevent client from connecting, but it still is the AC decission to do so. This is first step towards a more flexible basic rate handling.
This commit is contained in:
@ -364,7 +364,7 @@ static int wtp_parsing_radio_configuration(config_setting_t* configElement, stru
|
||||
if ((count >= CAPWAP_SUPPORTEDRATES_MINLENGTH) && (count <= CAPWAP_SUPPORTEDRATES_MAXLENGTH)) {
|
||||
radio->supportedrates.supportedratescount = (uint8_t)count;
|
||||
for (i = 0; i < count; i++) {
|
||||
int value = config_setting_get_int_elem(configItems, i);
|
||||
int value = (config_setting_get_float_elem(configItems, i) * 10) / 5;
|
||||
if ((value >= 2) && (value <= 127)) {
|
||||
radio->supportedrates.supportedrates[i] = (uint8_t)value;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user