Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291552
b: refs/heads/master
c: 3775265
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Drake authored and John W. Linville committed Mar 15, 2012
1 parent 729656d commit cf039be
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 38 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 783b732ac61dd6c653cc2367f389a6234db8cc16
refs/heads/master: 377526578f2c343ea281a918b18ece1fca65005c
37 changes: 0 additions & 37 deletions trunk/drivers/net/wireless/libertas/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1630,42 +1630,6 @@ static int lbs_cfg_get_station(struct wiphy *wiphy, struct net_device *dev,



/*
* "Site survey", here just current channel and noise level
*/

static int lbs_get_survey(struct wiphy *wiphy, struct net_device *dev,
int idx, struct survey_info *survey)
{
struct lbs_private *priv = wiphy_priv(wiphy);
s8 signal, noise;
int ret;

if (dev == priv->mesh_dev)
return -EOPNOTSUPP;

if (idx != 0)
ret = -ENOENT;

lbs_deb_enter(LBS_DEB_CFG80211);

survey->channel = ieee80211_get_channel(wiphy,
ieee80211_channel_to_frequency(priv->channel,
IEEE80211_BAND_2GHZ));

ret = lbs_get_rssi(priv, &signal, &noise);
if (ret == 0) {
survey->filled = SURVEY_INFO_NOISE_DBM;
survey->noise = noise;
}

lbs_deb_leave_args(LBS_DEB_CFG80211, "ret %d", ret);
return ret;
}




/*
* Change interface
*/
Expand Down Expand Up @@ -2068,7 +2032,6 @@ static struct cfg80211_ops lbs_cfg80211_ops = {
.del_key = lbs_cfg_del_key,
.set_default_key = lbs_cfg_set_default_key,
.get_station = lbs_cfg_get_station,
.dump_survey = lbs_get_survey,
.change_virtual_intf = lbs_change_intf,
.join_ibss = lbs_join_ibss,
.leave_ibss = lbs_leave_ibss,
Expand Down

0 comments on commit cf039be

Please sign in to comment.