diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-11-16 14:00:37 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-11-19 01:09:14 +0300 |
commit | 3b53fde8ac40c4321389def14d7f4a9e14092fd3 (patch) | |
tree | 705a81684a9326764c53fa7a9a85e337f87cb15e /net/mac80211/cfg.c | |
parent | cb53a150caa3068ce366b75dd354718145f5e893 (diff) | |
download | linux-3b53fde8ac40c4321389def14d7f4a9e14092fd3.tar.xz |
mac80211: let sta_info_get_by_idx get sta by sdata
Instead of filtering by device, directly look up by sdata.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 7f18c8fa1880..7d591816ed10 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -398,13 +398,13 @@ static void sta_set_sinfo(struct sta_info *sta, struct station_info *sinfo) static int ieee80211_dump_station(struct wiphy *wiphy, struct net_device *dev, int idx, u8 *mac, struct station_info *sinfo) { - struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); + struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); struct sta_info *sta; int ret = -ENOENT; rcu_read_lock(); - sta = sta_info_get_by_idx(local, idx, dev); + sta = sta_info_get_by_idx(sdata, idx); if (sta) { ret = 0; memcpy(mac, sta->sta.addr, ETH_ALEN); |