Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a394eba authored by Arend van Spriel's avatar Arend van Spriel Committed by John W. Linville
Browse files

brcmfmac: make chandef_to_chanspec() function static



The function chandef_to_chanspec() was added by

    brcmfmac: determine chanspec from struct cfg80211_chan_def info

    The struct cfg80211_chan_def contains additional info to derive the
    bandwidth and side-band information of the chanspec. This patch adds
    chandef_to_chanspec() function used in IBSS join and starting AP
    operation.

However, it introduced a sparse warning because the function
is only called from within the source file wl_cfg80211.c.

Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Reviewed-by: default avatarDaniel (Deognyoun) Kim <dekim@broadcom.com>
Reviewed-by: default avatarHante Meuleman <meuleman@broadcom.com>
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 0f0fe990
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -341,7 +341,7 @@ static u8 brcmf_mw_to_qdbm(u16 mw)
	return qdbm;
	return qdbm;
}
}


u16 chandef_to_chanspec(struct brcmu_d11inf *d11inf,
static u16 chandef_to_chanspec(struct brcmu_d11inf *d11inf,
			       struct cfg80211_chan_def *ch)
			       struct cfg80211_chan_def *ch)
{
{
	struct brcmu_chan ch_inf;
	struct brcmu_chan ch_inf;