diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2009-08-28 06:28:09 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-28 14:40:59 -0400 |
commit | d695df9049199bdeadd81c29104da8e2542062cf (patch) | |
tree | 3b24d229f721d29b40f8b8500780cc5b69f09523 /drivers | |
parent | 8b89a2883be4b6bad8ac0c5928784febb2b34172 (diff) |
rndis_wlan: add cfg80211 dump_station
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/rndis_wlan.c | 20 |
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, | |||
531 | static int rndis_get_station(struct wiphy *wiphy, struct net_device *dev, | 531 | static 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 | ||
534 | static int rndis_dump_station(struct wiphy *wiphy, struct net_device *dev, | ||
535 | int idx, u8 *mac, struct station_info *sinfo); | ||
536 | |||
534 | static struct cfg80211_ops rndis_config_ops = { | 537 | static 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 | ||
551 | static void *rndis_wiphy_privid = &rndis_wiphy_privid; | 555 | static 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 | ||
2162 | static 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 | */ |