mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 01:22:25 +00:00
rrmd: update timeout for RRM during self-healing and fix center channel mapping in RRM with Channel Utilization
Fixes: WIFI-14901 Signed-off-by: Tanya Singh <tanya_singh@accton.com>
This commit is contained in:
committed by
John Crispin
parent
d1e4c48617
commit
26ed5acb60
@@ -202,7 +202,7 @@ function get_center_channel(channel, band, bw) {
|
|||||||
"225": 227
|
"225": 227
|
||||||
};
|
};
|
||||||
} else if (bw == 80) {
|
} else if (bw == 80) {
|
||||||
bw = {
|
center_channel_map = {
|
||||||
"1": 7, "5": 7, "9": 7, "13": 7,
|
"1": 7, "5": 7, "9": 7, "13": 7,
|
||||||
"17": 23, "21": 23, "25": 23, "29": 23,
|
"17": 23, "21": 23, "25": 23, "29": 23,
|
||||||
"33": 39, "37": 39, "41": 39, "45": 39,
|
"33": 39, "37": 39, "41": 39, "45": 39,
|
||||||
@@ -236,6 +236,8 @@ function get_center_channel(channel, band, bw) {
|
|||||||
};
|
};
|
||||||
} else if (bw == 320) {
|
} else if (bw == 320) {
|
||||||
center_channel_map = {
|
center_channel_map = {
|
||||||
|
"1": 31, "5": 31, "9": 31, "13": 31,
|
||||||
|
"17": 31, "21": 31, "25": 31, "29": 31,
|
||||||
"33": 63, "37": 63, "41": 63, "45": 63,
|
"33": 63, "37": 63, "41": 63, "45": 63,
|
||||||
"49": 63, "53": 63, "57": 63, "61": 63,
|
"49": 63, "53": 63, "57": 63, "61": 63,
|
||||||
"65": 63, "69": 63, "73": 63, "77": 63,
|
"65": 63, "69": 63, "73": 63, "77": 63,
|
||||||
@@ -558,7 +560,7 @@ function random_channel_selection(iface, band, htmode, chan_list_valid) {
|
|||||||
ulog_info(`[%s] Selected channel list from config (default channel list shall be used in case channels haven't been selected) = %s \n`, iface, (chan_list_valid || '[]'));
|
ulog_info(`[%s] Selected channel list from config (default channel list shall be used in case channels haven't been selected) = %s \n`, iface, (chan_list_valid || '[]'));
|
||||||
|
|
||||||
if (band == '2g' && bw >= 40) {
|
if (band == '2g' && bw >= 40) {
|
||||||
ulog_info(`[%s] It is highly recommended to NOT use %dMHz bandwidth for 2.4G radio \n`, iface, bw);
|
ulog_info(`[%s] It is highly recommended to NOT use %dMHz bandwidth for 2.4G radio (RRM will not work properly) \n`, iface, bw);
|
||||||
} else if (band == '5g' && bw > 160) {
|
} else if (band == '5g' && bw > 160) {
|
||||||
ulog_info(`[%s] %dMHz bandwidth not supported for 5G radio. Please use a bandwidth of 160MHz or lower\n`, iface, bw);
|
ulog_info(`[%s] %dMHz bandwidth not supported for 5G radio. Please use a bandwidth of 160MHz or lower\n`, iface, bw);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ function self_healing() {
|
|||||||
heal_wifi = false;
|
heal_wifi = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (time_passed_since_rrm < 120) {
|
if (time_passed_since_rrm < 180) {
|
||||||
// RRM in progress, do not restart network!
|
// RRM in progress, do not restart network!
|
||||||
ulog(LOG_INFO, 'RRM with Channel utilization may still be in progress, cannot restart network \n');
|
ulog(LOG_INFO, 'RRM with Channel utilization may still be in progress, cannot restart network \n');
|
||||||
heal_wifi = false;
|
heal_wifi = false;
|
||||||
@@ -265,7 +265,7 @@ let ubus_methods = {
|
|||||||
current_state = req.args.state;
|
current_state = req.args.state;
|
||||||
blink_timeout();
|
blink_timeout();
|
||||||
ulog(LOG_INFO, 'set state -> ' + req.args.state + '\n');
|
ulog(LOG_INFO, 'set state -> ' + req.args.state + '\n');
|
||||||
|
|
||||||
return state_handler[req.args.state](req.args);
|
return state_handler[req.args.state](req.args);
|
||||||
},
|
},
|
||||||
args: {
|
args: {
|
||||||
|
|||||||
Reference in New Issue
Block a user