f353a60b87e7351cf086957e43b3c72daf353d97
[oweals/openwrt.git] /
1 From f8793c26fe586659d6da3fa277e63961a69d314b Mon Sep 17 00:00:00 2001
2 From: Arend Van Spriel <arend.vanspriel@broadcom.com>
3 Date: Wed, 16 May 2018 14:11:58 +0200
4 Subject: [PATCH] brcmfmac: move ALLFFMAC variable in flowring module
5
6 The only user of ALLFFMAC is the flowring module so no need to
7 expose it in a header file.
8
9 Reviewed-by: Hante Meuleman <hante.meuleman@broadcom.com>
10 Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>
11 Reviewed-by: Franky Lin <franky.lin@broadcom.com>
12 Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
13 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
14 ---
15  drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c   | 2 --
16  drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.h   | 2 --
17  drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c | 2 ++
18  3 files changed, 2 insertions(+), 4 deletions(-)
19
20 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c
21 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c
22 @@ -36,8 +36,6 @@ MODULE_AUTHOR("Broadcom Corporation");
23  MODULE_DESCRIPTION("Broadcom 802.11 wireless LAN fullmac driver.");
24  MODULE_LICENSE("Dual BSD/GPL");
25  
26 -const u8 ALLFFMAC[ETH_ALEN] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
27 -
28  #define BRCMF_DEFAULT_SCAN_CHANNEL_TIME        40
29  #define BRCMF_DEFAULT_SCAN_UNASSOC_TIME        40
30  
31 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.h
32 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.h
33 @@ -19,8 +19,6 @@
34  #include <linux/platform_data/brcmfmac.h>
35  #include "fwil_types.h"
36  
37 -extern const u8 ALLFFMAC[ETH_ALEN];
38 -
39  #define BRCMF_FW_ALTPATH_LEN                   256
40  
41  /* Definitions for the module global and device specific settings are defined
42 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c
43 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c
44 @@ -46,6 +46,8 @@ static const u8 brcmf_flowring_prio2fifo
45         3
46  };
47  
48 +static const u8 ALLFFMAC[ETH_ALEN] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
49 +
50  
51  static bool
52  brcmf_flowring_is_tdls_mac(struct brcmf_flowring *flow, u8 mac[ETH_ALEN])