diff options
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 7dd7cda75cfa..845a6e6b9d89 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -411,6 +411,17 @@ static int ieee80211_dump_station(struct wiphy *wiphy, struct net_device *dev, | |||
411 | return ret; | 411 | return ret; |
412 | } | 412 | } |
413 | 413 | ||
414 | static int ieee80211_dump_survey(struct wiphy *wiphy, struct net_device *dev, | ||
415 | int idx, struct survey_info *survey) | ||
416 | { | ||
417 | struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); | ||
418 | |||
419 | if (!local->ops->get_survey) | ||
420 | return -EOPNOTSUPP; | ||
421 | |||
422 | return drv_get_survey(local, idx, survey); | ||
423 | } | ||
424 | |||
414 | static int ieee80211_get_station(struct wiphy *wiphy, struct net_device *dev, | 425 | static int ieee80211_get_station(struct wiphy *wiphy, struct net_device *dev, |
415 | u8 *mac, struct station_info *sinfo) | 426 | u8 *mac, struct station_info *sinfo) |
416 | { | 427 | { |
@@ -1508,6 +1519,7 @@ struct cfg80211_ops mac80211_config_ops = { | |||
1508 | .change_station = ieee80211_change_station, | 1519 | .change_station = ieee80211_change_station, |
1509 | .get_station = ieee80211_get_station, | 1520 | .get_station = ieee80211_get_station, |
1510 | .dump_station = ieee80211_dump_station, | 1521 | .dump_station = ieee80211_dump_station, |
1522 | .dump_survey = ieee80211_dump_survey, | ||
1511 | #ifdef CONFIG_MAC80211_MESH | 1523 | #ifdef CONFIG_MAC80211_MESH |
1512 | .add_mpath = ieee80211_add_mpath, | 1524 | .add_mpath = ieee80211_add_mpath, |
1513 | .del_mpath = ieee80211_del_mpath, | 1525 | .del_mpath = ieee80211_del_mpath, |