Message ID | 1579637367-14080-1-git-send-email-greearb@candelatech.com |
---|---|
State | Accepted |
Headers | show |
Series | [1/2] Fix wmm compile on fedora-17 (gcc 4.7.2) | expand |
Thanks, applied.
diff --git a/src/ap/wmm.c b/src/ap/wmm.c index 881fd9f..9ebb01e 100644 --- a/src/ap/wmm.c +++ b/src/ap/wmm.c @@ -111,9 +111,11 @@ u8 * hostapd_eid_wmm(struct hostapd_data *hapd, u8 *eid) u8 *pos = eid; struct wmm_parameter_element *wmm = (struct wmm_parameter_element *) (pos + 2); - struct hostapd_wmm_ac_params wmmp[WMM_AC_NUM] = { 0 }; + struct hostapd_wmm_ac_params wmmp[WMM_AC_NUM]; int e; + os_memset(wmmp, 0, sizeof(wmmp)); + if (!hapd->conf->wmm_enabled) return eid; wmm_calc_regulatory_limit(hapd, wmmp);