]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix wmm compile on fedora-17 (gcc 4.7.2)
authorBen Greear <greearb@candelatech.com>
Tue, 21 Jan 2020 20:09:26 +0000 (12:09 -0800)
committerJouni Malinen <jouni@codeaurora.org>
Mon, 3 Feb 2020 00:03:32 +0000 (02:03 +0200)
I guess this compiler does not like to initialize arrays with brackets?

Signed-off-by: Ben Greear <greearb@candelatech.com>
src/ap/wmm.c

index 881fd9f239b79d64adca8c88a57cca585ed0040b..9ebb01e3d748b6b86a1c516cc80133b255be9201 100644 (file)
@@ -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);