aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/debugfs_sta.c
diff options
context:
space:
mode:
authorZhu Yi <yi.zhu@intel.com>2007-07-27 15:43:23 +0200
committerJohn W. Linville <linville@tuxdriver.com>2007-08-06 15:39:01 -0400
commitba9b07d08b7e512535c6fcfcc2cf470f3dd58b8d (patch)
treed06cb29bf57f468d7c8721b0ca23c7b9ceea8379 /net/mac80211/debugfs_sta.c
parent21887b2f1826876f78a2d8e8e89f52993e7d76db (diff)
downloadkernel_samsung_crespo-ba9b07d08b7e512535c6fcfcc2cf470f3dd58b8d.zip
kernel_samsung_crespo-ba9b07d08b7e512535c6fcfcc2cf470f3dd58b8d.tar.gz
kernel_samsung_crespo-ba9b07d08b7e512535c6fcfcc2cf470f3dd58b8d.tar.bz2
[PATCH] mac80211: Fix sparse error for sta_last_seq_ctrl_read
Fix sparse error for sta_last_seq_ctrl_read. Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: Jiri Benc <jbenc@suse.cz> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/debugfs_sta.c')
-rw-r--r--net/mac80211/debugfs_sta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/debugfs_sta.c b/net/mac80211/debugfs_sta.c
index d41e696..da34ea7 100644
--- a/net/mac80211/debugfs_sta.c
+++ b/net/mac80211/debugfs_sta.c
@@ -157,7 +157,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 ",
- 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);
}