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 4edd73cbf052..f97dda735cbb 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -410,6 +410,17 @@ static int ieee80211_dump_station(struct wiphy *wiphy, struct net_device *dev, | |||
410 | return ret; | 410 | return ret; |
411 | } | 411 | } |
412 | 412 | ||
413 | static int ieee80211_dump_survey(struct wiphy *wiphy, struct net_device *dev, | ||
414 | int idx, struct survey_info *survey) | ||
415 | { | ||
416 | struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); | ||
417 | |||
418 | if (!local->ops->get_survey) | ||
419 | return -EOPNOTSUPP; | ||
420 | |||
421 | return drv_get_survey(local, idx, survey); | ||
422 | } | ||
423 | |||
413 | static int ieee80211_get_station(struct wiphy *wiphy, struct net_device *dev, | 424 | static int ieee80211_get_station(struct wiphy *wiphy, struct net_device *dev, |
414 | u8 *mac, struct station_info *sinfo) | 425 | u8 *mac, struct station_info *sinfo) |
415 | { | 426 | { |
@@ -1507,6 +1518,7 @@ struct cfg80211_ops mac80211_config_ops = { | |||
1507 | .change_station = ieee80211_change_station, | 1518 | .change_station = ieee80211_change_station, |
1508 | .get_station = ieee80211_get_station, | 1519 | .get_station = ieee80211_get_station, |
1509 | .dump_station = ieee80211_dump_station, | 1520 | .dump_station = ieee80211_dump_station, |
1521 | .dump_survey = ieee80211_dump_survey, | ||
1510 | #ifdef CONFIG_MAC80211_MESH | 1522 | #ifdef CONFIG_MAC80211_MESH |
1511 | .add_mpath = ieee80211_add_mpath, | 1523 | .add_mpath = ieee80211_add_mpath, |
1512 | .del_mpath = ieee80211_del_mpath, | 1524 | .del_mpath = ieee80211_del_mpath, |