aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1271_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_main.c')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_main.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c
index 864318f096ea..374abf0f5cc7 100644
--- a/drivers/net/wireless/wl12xx/wl1271_main.c
+++ b/drivers/net/wireless/wl12xx/wl1271_main.c
@@ -1927,6 +1927,22 @@ out:
1927 return mactime; 1927 return mactime;
1928} 1928}
1929 1929
1930static int wl1271_op_get_survey(struct ieee80211_hw *hw, int idx,
1931 struct survey_info *survey)
1932{
1933 struct wl1271 *wl = hw->priv;
1934 struct ieee80211_conf *conf = &hw->conf;
1935
1936 if (idx != 0)
1937 return -ENOENT;
1938
1939 survey->channel = conf->channel;
1940 survey->filled = SURVEY_INFO_NOISE_DBM;
1941 survey->noise = wl->noise;
1942
1943 return 0;
1944}
1945
1930/* can't be const, mac80211 writes to this */ 1946/* can't be const, mac80211 writes to this */
1931static struct ieee80211_rate wl1271_rates[] = { 1947static struct ieee80211_rate wl1271_rates[] = {
1932 { .bitrate = 10, 1948 { .bitrate = 10,
@@ -2156,6 +2172,7 @@ static const struct ieee80211_ops wl1271_ops = {
2156 .set_rts_threshold = wl1271_op_set_rts_threshold, 2172 .set_rts_threshold = wl1271_op_set_rts_threshold,
2157 .conf_tx = wl1271_op_conf_tx, 2173 .conf_tx = wl1271_op_conf_tx,
2158 .get_tsf = wl1271_op_get_tsf, 2174 .get_tsf = wl1271_op_get_tsf,
2175 .get_survey = wl1271_op_get_survey,
2159 CFG80211_TESTMODE_CMD(wl1271_tm_cmd) 2176 CFG80211_TESTMODE_CMD(wl1271_tm_cmd)
2160}; 2177};
2161 2178