diff options
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) | |||
398 | static int ieee80211_dump_station(struct wiphy *wiphy, struct net_device *dev, | 398 | static int ieee80211_dump_station(struct wiphy *wiphy, struct net_device *dev, |
399 | int idx, u8 *mac, struct station_info *sinfo) | 399 | int idx, u8 *mac, struct station_info *sinfo) |
400 | { | 400 | { |
401 | struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); | 401 | struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); |
402 | struct sta_info *sta; | 402 | struct sta_info *sta; |
403 | int ret = -ENOENT; | 403 | int ret = -ENOENT; |
404 | 404 | ||
405 | rcu_read_lock(); | 405 | rcu_read_lock(); |
406 | 406 | ||
407 | sta = sta_info_get_by_idx(local, idx, dev); | 407 | sta = sta_info_get_by_idx(sdata, idx); |
408 | if (sta) { | 408 | if (sta) { |
409 | ret = 0; | 409 | ret = 0; |
410 | memcpy(mac, sta->sta.addr, ETH_ALEN); | 410 | memcpy(mac, sta->sta.addr, ETH_ALEN); |