diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-03-16 13:45:25 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-16 13:45:25 -0400 |
commit | 01a282980937f9ca55a3cb06b9c6ff1cc49ea396 (patch) | |
tree | 07a043edc861e245a7a9764751af0898a1f1199a /drivers/net/wireless/libertas | |
parent | d5ddb4a59ed43b4c569b4efa8b508d50ef140cc6 (diff) | |
parent | 377526578f2c343ea281a918b18ece1fca65005c (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
Conflicts:
drivers/net/wireless/ath/ath9k/hw.c
Diffstat (limited to 'drivers/net/wireless/libertas')
-rw-r--r-- | drivers/net/wireless/libertas/cfg.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/drivers/net/wireless/libertas/cfg.c b/drivers/net/wireless/libertas/cfg.c index a7cd311cb1b7..3fa1ecebadfd 100644 --- a/drivers/net/wireless/libertas/cfg.c +++ b/drivers/net/wireless/libertas/cfg.c | |||
@@ -1631,42 +1631,6 @@ static int lbs_cfg_get_station(struct wiphy *wiphy, struct net_device *dev, | |||
1631 | 1631 | ||
1632 | 1632 | ||
1633 | /* | 1633 | /* |
1634 | * "Site survey", here just current channel and noise level | ||
1635 | */ | ||
1636 | |||
1637 | static int lbs_get_survey(struct wiphy *wiphy, struct net_device *dev, | ||
1638 | int idx, struct survey_info *survey) | ||
1639 | { | ||
1640 | struct lbs_private *priv = wiphy_priv(wiphy); | ||
1641 | s8 signal, noise; | ||
1642 | int ret; | ||
1643 | |||
1644 | if (dev == priv->mesh_dev) | ||
1645 | return -EOPNOTSUPP; | ||
1646 | |||
1647 | if (idx != 0) | ||
1648 | ret = -ENOENT; | ||
1649 | |||
1650 | lbs_deb_enter(LBS_DEB_CFG80211); | ||
1651 | |||
1652 | survey->channel = ieee80211_get_channel(wiphy, | ||
1653 | ieee80211_channel_to_frequency(priv->channel, | ||
1654 | IEEE80211_BAND_2GHZ)); | ||
1655 | |||
1656 | ret = lbs_get_rssi(priv, &signal, &noise); | ||
1657 | if (ret == 0) { | ||
1658 | survey->filled = SURVEY_INFO_NOISE_DBM; | ||
1659 | survey->noise = noise; | ||
1660 | } | ||
1661 | |||
1662 | lbs_deb_leave_args(LBS_DEB_CFG80211, "ret %d", ret); | ||
1663 | return ret; | ||
1664 | } | ||
1665 | |||
1666 | |||
1667 | |||
1668 | |||
1669 | /* | ||
1670 | * Change interface | 1634 | * Change interface |
1671 | */ | 1635 | */ |
1672 | 1636 | ||
@@ -2068,7 +2032,6 @@ static struct cfg80211_ops lbs_cfg80211_ops = { | |||
2068 | .del_key = lbs_cfg_del_key, | 2032 | .del_key = lbs_cfg_del_key, |
2069 | .set_default_key = lbs_cfg_set_default_key, | 2033 | .set_default_key = lbs_cfg_set_default_key, |
2070 | .get_station = lbs_cfg_get_station, | 2034 | .get_station = lbs_cfg_get_station, |
2071 | .dump_survey = lbs_get_survey, | ||
2072 | .change_virtual_intf = lbs_change_intf, | 2035 | .change_virtual_intf = lbs_change_intf, |
2073 | .join_ibss = lbs_join_ibss, | 2036 | .join_ibss = lbs_join_ibss, |
2074 | .leave_ibss = lbs_leave_ibss, | 2037 | .leave_ibss = lbs_leave_ibss, |