projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mac80211: conditionally include timestamp in radiotap information
[powerpc.git]
/
net
/
mac80211
/
debugfs_sta.c
diff --git
a/net/mac80211/debugfs_sta.c
b/net/mac80211/debugfs_sta.c
index
d41e696
..
8f5944c
100644
(file)
--- a/
net/mac80211/debugfs_sta.c
+++ b/
net/mac80211/debugfs_sta.c
@@
-60,9
+60,7
@@
static const struct file_operations sta_ ##name## _ops = { \
STA_OPS(name)
STA_FILE(aid, aid, D);
STA_OPS(name)
STA_FILE(aid, aid, D);
-STA_FILE(key_idx_compression, key_idx_compression, D);
STA_FILE(dev, dev->name, S);
STA_FILE(dev, dev->name, S);
-STA_FILE(vlan_id, vlan_id, D);
STA_FILE(rx_packets, rx_packets, LU);
STA_FILE(tx_packets, tx_packets, LU);
STA_FILE(rx_bytes, rx_bytes, LU);
STA_FILE(rx_packets, rx_packets, LU);
STA_FILE(tx_packets, tx_packets, LU);
STA_FILE(rx_bytes, rx_bytes, LU);
@@
-157,7
+155,7
@@
static ssize_t sta_last_seq_ctrl_read(struct file *file, char __user *userbuf,
struct sta_info *sta = file->private_data;
for (i = 0; i < NUM_RX_DATA_QUEUES; i++)
p += scnprintf(p, sizeof(buf)+buf-p, "%x ",
struct sta_info *sta = file->private_data;
for (i = 0; i < NUM_RX_DATA_QUEUES; i++)
p += scnprintf(p, sizeof(buf)+buf-p, "%x ",
-
sta->last_seq_ctrl[i]
);
+
le16_to_cpu(sta->last_seq_ctrl[i])
);
p += scnprintf(p, sizeof(buf)+buf-p, "\n");
return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf);
}
p += scnprintf(p, sizeof(buf)+buf-p, "\n");
return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf);
}
@@
-204,15
+202,15
@@
STA_OPS(wme_tx_queue);
void ieee80211_sta_debugfs_add(struct sta_info *sta)
{
void ieee80211_sta_debugfs_add(struct sta_info *sta)
{
- char buf[3*6];
struct dentry *stations_dir = sta->local->debugfs.stations;
struct dentry *stations_dir = sta->local->debugfs.stations;
+ DECLARE_MAC_BUF(mac);
if (!stations_dir)
return;
if (!stations_dir)
return;
-
sprintf(buf, MAC_FMT, MAC_ARG(sta->addr)
);
+
print_mac(mac, sta->addr
);
- sta->debugfs.dir = debugfs_create_dir(
buf
, stations_dir);
+ sta->debugfs.dir = debugfs_create_dir(
mac
, stations_dir);
if (!sta->debugfs.dir)
return;
if (!sta->debugfs.dir)
return;