diff options
Diffstat (limited to 'drivers/net/wireless/libertas/cfg.c')
-rw-r--r-- | drivers/net/wireless/libertas/cfg.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/cfg.c b/drivers/net/wireless/libertas/cfg.c index 698a1f7694ed..30ef0351bfc4 100644 --- a/drivers/net/wireless/libertas/cfg.c +++ b/drivers/net/wireless/libertas/cfg.c | |||
@@ -607,7 +607,8 @@ static int lbs_ret_scan(struct lbs_private *priv, unsigned long dummy, | |||
607 | /* No channel, no luck */ | 607 | /* No channel, no luck */ |
608 | if (chan_no != -1) { | 608 | if (chan_no != -1) { |
609 | struct wiphy *wiphy = priv->wdev->wiphy; | 609 | struct wiphy *wiphy = priv->wdev->wiphy; |
610 | int freq = ieee80211_channel_to_frequency(chan_no); | 610 | int freq = ieee80211_channel_to_frequency(chan_no, |
611 | IEEE80211_BAND_2GHZ); | ||
611 | struct ieee80211_channel *channel = | 612 | struct ieee80211_channel *channel = |
612 | ieee80211_get_channel(wiphy, freq); | 613 | ieee80211_get_channel(wiphy, freq); |
613 | 614 | ||
@@ -1597,7 +1598,8 @@ static int lbs_get_survey(struct wiphy *wiphy, struct net_device *dev, | |||
1597 | lbs_deb_enter(LBS_DEB_CFG80211); | 1598 | lbs_deb_enter(LBS_DEB_CFG80211); |
1598 | 1599 | ||
1599 | survey->channel = ieee80211_get_channel(wiphy, | 1600 | survey->channel = ieee80211_get_channel(wiphy, |
1600 | ieee80211_channel_to_frequency(priv->channel)); | 1601 | ieee80211_channel_to_frequency(priv->channel, |
1602 | IEEE80211_BAND_2GHZ)); | ||
1601 | 1603 | ||
1602 | ret = lbs_get_rssi(priv, &signal, &noise); | 1604 | ret = lbs_get_rssi(priv, &signal, &noise); |
1603 | if (ret == 0) { | 1605 | if (ret == 0) { |