diff options
author | Arend van Spriel <arend@broadcom.com> | 2014-05-12 04:47:37 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-05-13 15:56:51 -0400 |
commit | 06c01585ee94e96286c4e6510a4a0ec32c3df729 (patch) | |
tree | b2cc108ebb2addebfad521ad0cf8bf3c1c4dca0e /drivers/net/wireless/brcm80211 | |
parent | c555ecde6c003bbe800e52b9d4b7201b1f1c4dec (diff) |
brcmfmac: get rid of brcmf_cfg80211_set_channel() function
The function does not provide any additional functionality and is
used only once so just get rid of it.
Reviewed-by: Daniel (Deognyoun) Kim <dekim@broadcom.com>
Reviewed-by: Franky Lin <frankyl@broadcom.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/brcm80211')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c index bfe2c932f924..77c9309c271b 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c | |||
@@ -3734,23 +3734,6 @@ brcmf_config_ap_mgmt_ie(struct brcmf_cfg80211_vif *vif, | |||
3734 | } | 3734 | } |
3735 | 3735 | ||
3736 | static s32 | 3736 | static s32 |
3737 | brcmf_cfg80211_set_channel(struct brcmf_cfg80211_info *cfg, | ||
3738 | struct brcmf_if *ifp, | ||
3739 | struct ieee80211_channel *channel) | ||
3740 | { | ||
3741 | u16 chanspec; | ||
3742 | s32 err; | ||
3743 | |||
3744 | brcmf_dbg(TRACE, "band=%d, center_freq=%d\n", channel->band, | ||
3745 | channel->center_freq); | ||
3746 | |||
3747 | chanspec = channel_to_chanspec(&cfg->d11inf, channel); | ||
3748 | err = brcmf_fil_iovar_int_set(ifp, "chanspec", chanspec); | ||
3749 | |||
3750 | return err; | ||
3751 | } | ||
3752 | |||
3753 | static s32 | ||
3754 | brcmf_cfg80211_start_ap(struct wiphy *wiphy, struct net_device *ndev, | 3737 | brcmf_cfg80211_start_ap(struct wiphy *wiphy, struct net_device *ndev, |
3755 | struct cfg80211_ap_settings *settings) | 3738 | struct cfg80211_ap_settings *settings) |
3756 | { | 3739 | { |
@@ -3765,9 +3748,11 @@ brcmf_cfg80211_start_ap(struct wiphy *wiphy, struct net_device *ndev, | |||
3765 | struct brcmf_join_params join_params; | 3748 | struct brcmf_join_params join_params; |
3766 | enum nl80211_iftype dev_role; | 3749 | enum nl80211_iftype dev_role; |
3767 | struct brcmf_fil_bss_enable_le bss_enable; | 3750 | struct brcmf_fil_bss_enable_le bss_enable; |
3751 | u16 chanspec; | ||
3768 | 3752 | ||
3769 | brcmf_dbg(TRACE, "channel=%d, bw=%d, beacon_interval=%d, dtim_period=%d,\n", | 3753 | brcmf_dbg(TRACE, "ctrlchn=%d, center=%d, bw=%d, beacon_interval=%d, dtim_period=%d,\n", |
3770 | settings->chandef.chan->hw_value, settings->chandef.width, | 3754 | settings->chandef.chan->hw_value, |
3755 | settings->chandef.center_freq1, settings->chandef.width, | ||
3771 | settings->beacon_interval, settings->dtim_period); | 3756 | settings->beacon_interval, settings->dtim_period); |
3772 | brcmf_dbg(TRACE, "ssid=%s(%zu), auth_type=%d, inactivity_timeout=%d\n", | 3757 | brcmf_dbg(TRACE, "ssid=%s(%zu), auth_type=%d, inactivity_timeout=%d\n", |
3773 | settings->ssid, settings->ssid_len, settings->auth_type, | 3758 | settings->ssid, settings->ssid_len, settings->auth_type, |
@@ -3825,9 +3810,10 @@ brcmf_cfg80211_start_ap(struct wiphy *wiphy, struct net_device *ndev, | |||
3825 | 3810 | ||
3826 | brcmf_config_ap_mgmt_ie(ifp->vif, &settings->beacon); | 3811 | brcmf_config_ap_mgmt_ie(ifp->vif, &settings->beacon); |
3827 | 3812 | ||
3828 | err = brcmf_cfg80211_set_channel(cfg, ifp, settings->chandef.chan); | 3813 | chanspec = channel_to_chanspec(&cfg->d11inf, settings->chandef.chan); |
3814 | err = brcmf_fil_iovar_int_set(ifp, "chanspec", chanspec); | ||
3829 | if (err < 0) { | 3815 | if (err < 0) { |
3830 | brcmf_err("Set Channel failed, %d\n", err); | 3816 | brcmf_err("Set Channel failed: chspec=%d, %d\n", chanspec, err); |
3831 | goto exit; | 3817 | goto exit; |
3832 | } | 3818 | } |
3833 | 3819 | ||