mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-22 03:53:02 -05:00
Fix wmm compile on fedora-17 (gcc 4.7.2)
I guess this compiler does not like to initialize arrays with brackets? Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
parent
d240c74b6a
commit
16b789eefc
@ -111,9 +111,11 @@ u8 * hostapd_eid_wmm(struct hostapd_data *hapd, u8 *eid)
|
|||||||
u8 *pos = eid;
|
u8 *pos = eid;
|
||||||
struct wmm_parameter_element *wmm =
|
struct wmm_parameter_element *wmm =
|
||||||
(struct wmm_parameter_element *) (pos + 2);
|
(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;
|
int e;
|
||||||
|
|
||||||
|
os_memset(wmmp, 0, sizeof(wmmp));
|
||||||
|
|
||||||
if (!hapd->conf->wmm_enabled)
|
if (!hapd->conf->wmm_enabled)
|
||||||
return eid;
|
return eid;
|
||||||
wmm_calc_regulatory_limit(hapd, wmmp);
|
wmm_calc_regulatory_limit(hapd, wmmp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user