Commit 5fac1858 authored by Arend van Spriel's avatar Arend van Spriel Committed by Kalle Valo
Browse files

wifi: brcmfmac: change cfg80211_set_channel() name and signature



The function cfg80211_set_channel() is an static function in brcmfmac
but the name is misleading. Hence rename it with 'brcmf' prefix. Also
changing the parameters to avoid additional conversions.

Signed-off-by: default avatarArend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230103124117.271988-4-arend.vanspriel@broadcom.com
parent 3cfb7df2
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -7928,13 +7928,10 @@ brcmf_dump_obss(struct brcmf_if *ifp, struct cca_msrmnt_query req,
}

static s32
cfg80211_set_channel(struct wiphy *wiphy, struct net_device *dev,
		     struct ieee80211_channel *chan,
		     enum nl80211_channel_type channel_type)
brcmf_set_channel(struct brcmf_cfg80211_info *cfg, struct ieee80211_channel *chan)
{
	u16 chspec = 0;
	int err = 0;
	struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy);
	struct brcmf_if *ifp = netdev_priv(cfg_to_ndev(cfg));

	if (chan->flags & IEEE80211_CHAN_DISABLED)
@@ -7994,7 +7991,7 @@ brcmf_cfg80211_dump_survey(struct wiphy *wiphy, struct net_device *ndev,

	/* Setting current channel to the requested channel */
	info->filled = 0;
	if (cfg80211_set_channel(wiphy, ndev, info->channel, NL80211_CHAN_HT20))
	if (brcmf_set_channel(cfg, info->channel))
		return 0;

	/* Disable mpc */