Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WMM: add missing hostapd configuration. #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 35 additions & 3 deletions ap.c
Original file line number Diff line number Diff line change
Expand Up @@ -8621,10 +8621,42 @@ enum sigma_cmd_result cmd_ap_config_commit(struct sigma_dut *dut,
if (dut->ap_proxy_arp)
fprintf(f, "proxy_arp=1\n");

if (dut->ap_wme)
if (dut->ap_wme) {
fprintf(f, "wmm_enabled=1\n");

if (dut->ap_wmmps == AP_WMMPS_ON)
int i = 0;
for (i = 0; i < NUM_AP_AC; i++) {
if (dut->ap_qos[i].ac) {
const char* class = NULL;
switch (i) {
case SIGMA_TC_VOICE:
// Highest priority / AC_VO = voice
class = "vo";
break;
case SIGMA_TC_VIDEO:
// High priority / AC_VI = video
class = "vi";
break;
case SIGMA_TC_BACKGROUND:
// Low priority / AC_BK = background
class = "bk";
break;
case SIGMA_TC_BEST_EFFORT:
// Normal priority / AC_BE = best effort
class = "be";
break;
default:
continue;
}
fprintf(f, "wmm_ac_%s_cwmin=%d\n", class, dut->ap_qos[i].cwmin);
fprintf(f, "wmm_ac_%s_cwmax=%d\n", class, dut->ap_qos[i].cwmax);
fprintf(f, "wmm_ac_%s_aifs=%d\n", class, dut->ap_qos[i].aifs);
fprintf(f, "wmm_ac_%s_txop_limit=%d\n", class, dut->ap_qos[i].txop);
fprintf(f, "wmm_ac_%s_acm=%d\n", class, dut->ap_qos[i].acm);
}
}
}

if (dut->ap_wmmps == AP_WMMPS_ON)
fprintf(f, "uapsd_advertisement_enabled=1\n");

if (dut->ap_hs2) {
Expand Down