diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2011-09-22 00:43:24 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-27 14:34:03 -0400 |
commit | 4ed5d521b062b7256dcfe46a3194f89ff44fdc66 (patch) | |
tree | 76e9cf45205f50519ba05bcd6aefce081c89cd86 /drivers/net/wireless/mwifiex/sta_ioctl.c | |
parent | 5116f3cef206e7fcd6023ba8595a6321f33c2044 (diff) |
mwifiex: pass correct band parameter to ieee80211_channel_to_frequency()
ieee80211_channel_to_frequency() routine expects band parameter in
the form of "enum ieee80211_band band". Currently driver specific
band (BAND_A, BAND_AN etc.) is passed to the routine.
This patch makes sure that correct parameter is passed.
Signed-off-by: Amitkumar Karwar <akarwar@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/sta_ioctl.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/sta_ioctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/mwifiex/sta_ioctl.c b/drivers/net/wireless/mwifiex/sta_ioctl.c index 157d312f77be..a9dfeb1b4ace 100644 --- a/drivers/net/wireless/mwifiex/sta_ioctl.c +++ b/drivers/net/wireless/mwifiex/sta_ioctl.c | |||
@@ -655,6 +655,7 @@ mwifiex_drv_change_adhoc_chan(struct mwifiex_private *priv, int channel) | |||
655 | u16 curr_chan = 0; | 655 | u16 curr_chan = 0; |
656 | struct cfg80211_bss *bss = NULL; | 656 | struct cfg80211_bss *bss = NULL; |
657 | struct ieee80211_channel *chan; | 657 | struct ieee80211_channel *chan; |
658 | enum ieee80211_band band; | ||
658 | 659 | ||
659 | memset(&bss_info, 0, sizeof(bss_info)); | 660 | memset(&bss_info, 0, sizeof(bss_info)); |
660 | 661 | ||
@@ -691,9 +692,9 @@ mwifiex_drv_change_adhoc_chan(struct mwifiex_private *priv, int channel) | |||
691 | goto done; | 692 | goto done; |
692 | } | 693 | } |
693 | 694 | ||
695 | band = mwifiex_band_to_radio_type(priv->curr_bss_params.band); | ||
694 | chan = __ieee80211_get_channel(priv->wdev->wiphy, | 696 | chan = __ieee80211_get_channel(priv->wdev->wiphy, |
695 | ieee80211_channel_to_frequency(channel, | 697 | ieee80211_channel_to_frequency(channel, band)); |
696 | priv->curr_bss_params.band)); | ||
697 | 698 | ||
698 | /* Find the BSS we want using available scan results */ | 699 | /* Find the BSS we want using available scan results */ |
699 | bss = cfg80211_get_bss(priv->wdev->wiphy, chan, bss_info.bssid, | 700 | bss = cfg80211_get_bss(priv->wdev->wiphy, chan, bss_info.bssid, |