u8 key_index, bool pairwise, const u8 *mac_addr)
 {
        struct mwifiex_private *priv = mwifiex_netdev_get_priv(netdev);
-       const u8 bc_mac[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
+       static const u8 bc_mac[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
        const u8 *peer_mac = pairwise ? mac_addr : bc_mac;
 
        if (mwifiex_set_encode(priv, NULL, NULL, 0, key_index, peer_mac, 1)) {
 {
        struct mwifiex_private *priv = mwifiex_netdev_get_priv(netdev);
        struct mwifiex_wep_key *wep_key;
-       const u8 bc_mac[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
+       static const u8 bc_mac[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
        const u8 *peer_mac = pairwise ? mac_addr : bc_mac;
 
        if (GET_BSS_ROLE(priv) == MWIFIEX_BSS_ROLE_UAP &&
        int i, filt_num = 0, ret = 0;
        bool first_pat = true;
        u8 byte_seq[MWIFIEX_MEF_MAX_BYTESEQ + 1];
-       const u8 ipv4_mc_mac[] = {0x33, 0x33};
-       const u8 ipv6_mc_mac[] = {0x01, 0x00, 0x5e};
+       static const u8 ipv4_mc_mac[] = {0x33, 0x33};
+       static const u8 ipv6_mc_mac[] = {0x01, 0x00, 0x5e};
 
        mef_entry->mode = MEF_MODE_HOST_SLEEP;
        mef_entry->action = MEF_ACTION_ALLOW_AND_WAKEUP_HOST;
 
 static int mwifiex_get_coalesce_pkt_type(u8 *byte_seq)
 {
-       const u8 ipv4_mc_mac[] = {0x33, 0x33};
-       const u8 ipv6_mc_mac[] = {0x01, 0x00, 0x5e};
-       const u8 bc_mac[] = {0xff, 0xff, 0xff, 0xff};
+       static const u8 ipv4_mc_mac[] = {0x33, 0x33};
+       static const u8 ipv6_mc_mac[] = {0x01, 0x00, 0x5e};
+       static const u8 bc_mac[] = {0xff, 0xff, 0xff, 0xff};
 
        if ((byte_seq[0] & 0x01) &&
            (byte_seq[MWIFIEX_COALESCE_MAX_BYTESEQ] == 1))