diff options
author | Zhu Yi <yi.zhu@intel.com> | 2007-07-27 15:43:23 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-08-06 21:39:01 +0200 |
commit | ba9b07d08b7e512535c6fcfcc2cf470f3dd58b8d (patch) | |
tree | d06cb29bf57f468d7c8721b0ca23c7b9ceea8379 /net/mac80211/debugfs_sta.c | |
parent | [PATCH] mac80211: use do { } while (0) for multi-line macros (diff) | |
download | linux-ba9b07d08b7e512535c6fcfcc2cf470f3dd58b8d.tar.xz linux-ba9b07d08b7e512535c6fcfcc2cf470f3dd58b8d.zip |
[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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/debugfs_sta.c b/net/mac80211/debugfs_sta.c index d41e696f3980..da34ea70276f 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); } |