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: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230103124117.271988-4-arend.vanspriel@broadcom.com
This commit is contained in:
Arend van Spriel 2023-01-03 13:41:17 +01:00 committed by Kalle Valo
parent 3cfb7df24c
commit 5fac18583a

View File

@ -7928,13 +7928,10 @@ exit:
} }
static s32 static s32
cfg80211_set_channel(struct wiphy *wiphy, struct net_device *dev, brcmf_set_channel(struct brcmf_cfg80211_info *cfg, struct ieee80211_channel *chan)
struct ieee80211_channel *chan,
enum nl80211_channel_type channel_type)
{ {
u16 chspec = 0; u16 chspec = 0;
int err = 0; int err = 0;
struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy);
struct brcmf_if *ifp = netdev_priv(cfg_to_ndev(cfg)); struct brcmf_if *ifp = netdev_priv(cfg_to_ndev(cfg));
if (chan->flags & IEEE80211_CHAN_DISABLED) 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 */ /* Setting current channel to the requested channel */
info->filled = 0; info->filled = 0;
if (cfg80211_set_channel(wiphy, ndev, info->channel, NL80211_CHAN_HT20)) if (brcmf_set_channel(cfg, info->channel))
return 0; return 0;
/* Disable mpc */ /* Disable mpc */