Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203888
b: refs/heads/master
c: 1b2fb7d
h: refs/heads/master
v: v3
  • Loading branch information
John W. Linville committed Jul 27, 2010
1 parent c36bfc8 commit dec1edd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 800f65bba8d2030b3fef62850e203f9f176625a8
refs/heads/master: 1b2fb7dc71c1f8f97663c2da84fa1c8183588474
17 changes: 17 additions & 0 deletions trunk/drivers/net/wireless/p54/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,22 @@ static int p54_set_key(struct ieee80211_hw *dev, enum set_key_cmd cmd,
return ret;
}

static int p54_get_survey(struct ieee80211_hw *dev, int idx,
struct survey_info *survey)
{
struct p54_common *priv = dev->priv;
struct ieee80211_conf *conf = &dev->conf;

if (idx != 0)
return -ENOENT;

survey->channel = conf->channel;
survey->filled = SURVEY_INFO_NOISE_DBM;
survey->noise = clamp_t(s8, priv->noise, -128, 127);

return 0;
}

static const struct ieee80211_ops p54_ops = {
.tx = p54_tx_80211,
.start = p54_start,
Expand All @@ -523,6 +539,7 @@ static const struct ieee80211_ops p54_ops = {
.configure_filter = p54_configure_filter,
.conf_tx = p54_conf_tx,
.get_stats = p54_get_stats,
.get_survey = p54_get_survey,
};

struct ieee80211_hw *p54_init_common(size_t priv_data_len)
Expand Down

0 comments on commit dec1edd

Please sign in to comment.