diff options
Diffstat (limited to 'net/mac80211/debugfs_sta.c')
-rw-r--r-- | net/mac80211/debugfs_sta.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/debugfs_sta.c b/net/mac80211/debugfs_sta.c index ed7c9f3b4602..73cfb4da464d 100644 --- a/net/mac80211/debugfs_sta.c +++ b/net/mac80211/debugfs_sta.c | |||
@@ -51,7 +51,7 @@ static const struct file_operations sta_ ##name## _ops = { \ | |||
51 | STA_OPS(name) | 51 | STA_OPS(name) |
52 | 52 | ||
53 | STA_FILE(aid, aid, D); | 53 | STA_FILE(aid, aid, D); |
54 | STA_FILE(dev, dev->name, S); | 54 | STA_FILE(dev, sdata->dev->name, S); |
55 | STA_FILE(rx_packets, rx_packets, LU); | 55 | STA_FILE(rx_packets, rx_packets, LU); |
56 | STA_FILE(tx_packets, tx_packets, LU); | 56 | STA_FILE(tx_packets, tx_packets, LU); |
57 | STA_FILE(rx_bytes, rx_bytes, LU); | 57 | STA_FILE(rx_bytes, rx_bytes, LU); |
@@ -200,7 +200,7 @@ static ssize_t sta_agg_status_write(struct file *file, | |||
200 | const char __user *user_buf, size_t count, loff_t *ppos) | 200 | const char __user *user_buf, size_t count, loff_t *ppos) |
201 | { | 201 | { |
202 | struct sta_info *sta = file->private_data; | 202 | struct sta_info *sta = file->private_data; |
203 | struct net_device *dev = sta->dev; | 203 | struct net_device *dev = sta->sdata->dev; |
204 | struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); | 204 | struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); |
205 | struct ieee80211_hw *hw = &local->hw; | 205 | struct ieee80211_hw *hw = &local->hw; |
206 | u8 *da = sta->addr; | 206 | u8 *da = sta->addr; |