diff options
author | Yogesh Ashok Powar <yogeshp@marvell.com> | 2012-03-12 22:35:10 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-13 14:54:18 -0400 |
commit | 6685d109f4b60604fd206cff01355094a2e3b419 (patch) | |
tree | af19e8f14a9a1b98a0285a3433d74fff9c806d2a /drivers/net/wireless/mwifiex/join.c | |
parent | 985d68a3bb7678d6b4d5175f52d70b7f3abb992a (diff) |
mwifiex: merge functions to derive cfp by chan & freq in one
There exist different functions with very long names
to derive the channel frequency and power tripplet
based on band and channel/freq.
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/join.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/join.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/wireless/mwifiex/join.c b/drivers/net/wireless/mwifiex/join.c index bce9991612c8..803275f58c78 100644 --- a/drivers/net/wireless/mwifiex/join.c +++ b/drivers/net/wireless/mwifiex/join.c | |||
@@ -777,12 +777,11 @@ mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv, | |||
777 | adhoc_start->phy_param_set.ds_param_set.element_id = DS_PARA_IE_ID; | 777 | adhoc_start->phy_param_set.ds_param_set.element_id = DS_PARA_IE_ID; |
778 | adhoc_start->phy_param_set.ds_param_set.len = DS_PARA_IE_LEN; | 778 | adhoc_start->phy_param_set.ds_param_set.len = DS_PARA_IE_LEN; |
779 | 779 | ||
780 | if (!mwifiex_get_cfp_by_band_and_channel_from_cfg80211 | 780 | if (!mwifiex_get_cfp(priv, adapter->adhoc_start_band, |
781 | (priv, adapter->adhoc_start_band, (u16) | 781 | (u16) priv->adhoc_channel, 0)) { |
782 | priv->adhoc_channel)) { | ||
783 | struct mwifiex_chan_freq_power *cfp; | 782 | struct mwifiex_chan_freq_power *cfp; |
784 | cfp = mwifiex_get_cfp_by_band_and_channel_from_cfg80211(priv, | 783 | cfp = mwifiex_get_cfp(priv, adapter->adhoc_start_band, |
785 | adapter->adhoc_start_band, FIRST_VALID_CHANNEL); | 784 | FIRST_VALID_CHANNEL, 0); |
786 | if (cfp) | 785 | if (cfp) |
787 | priv->adhoc_channel = (u8) cfp->channel; | 786 | priv->adhoc_channel = (u8) cfp->channel; |
788 | } | 787 | } |