aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/rndis_wlan.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c
index 061bfec14a9c..351affe793c4 100644
--- a/drivers/net/wireless/rndis_wlan.c
+++ b/drivers/net/wireless/rndis_wlan.c
@@ -531,6 +531,9 @@ static int rndis_set_default_key(struct wiphy *wiphy, struct net_device *netdev,
531static int rndis_get_station(struct wiphy *wiphy, struct net_device *dev, 531static int rndis_get_station(struct wiphy *wiphy, struct net_device *dev,
532 u8 *mac, struct station_info *sinfo); 532 u8 *mac, struct station_info *sinfo);
533 533
534static int rndis_dump_station(struct wiphy *wiphy, struct net_device *dev,
535 int idx, u8 *mac, struct station_info *sinfo);
536
534static struct cfg80211_ops rndis_config_ops = { 537static struct cfg80211_ops rndis_config_ops = {
535 .change_virtual_intf = rndis_change_virtual_intf, 538 .change_virtual_intf = rndis_change_virtual_intf,
536 .scan = rndis_scan, 539 .scan = rndis_scan,
@@ -546,6 +549,7 @@ static struct cfg80211_ops rndis_config_ops = {
546 .del_key = rndis_del_key, 549 .del_key = rndis_del_key,
547 .set_default_key = rndis_set_default_key, 550 .set_default_key = rndis_set_default_key,
548 .get_station = rndis_get_station, 551 .get_station = rndis_get_station,
552 .dump_station = rndis_dump_station,
549}; 553};
550 554
551static void *rndis_wiphy_privid = &rndis_wiphy_privid; 555static void *rndis_wiphy_privid = &rndis_wiphy_privid;
@@ -2155,6 +2159,22 @@ static int rndis_get_station(struct wiphy *wiphy, struct net_device *dev,
2155 return 0; 2159 return 0;
2156} 2160}
2157 2161
2162static int rndis_dump_station(struct wiphy *wiphy, struct net_device *dev,
2163 int idx, u8 *mac, struct station_info *sinfo)
2164{
2165 struct rndis_wlan_private *priv = wiphy_priv(wiphy);
2166 struct usbnet *usbdev = priv->usbdev;
2167
2168 if (idx != 0)
2169 return -ENOENT;
2170
2171 memcpy(mac, priv->bssid, ETH_ALEN);
2172
2173 rndis_fill_station_info(usbdev, sinfo);
2174
2175 return 0;
2176}
2177
2158/* 2178/*
2159 * wireless extension handlers 2179 * wireless extension handlers
2160 */ 2180 */