diff options
Diffstat (limited to 'net/mac80211/rc80211_minstrel_debugfs.c')
-rw-r--r-- | net/mac80211/rc80211_minstrel_debugfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/rc80211_minstrel_debugfs.c b/net/mac80211/rc80211_minstrel_debugfs.c index 98f480708050..a715d9454f64 100644 --- a/net/mac80211/rc80211_minstrel_debugfs.c +++ b/net/mac80211/rc80211_minstrel_debugfs.c | |||
@@ -83,7 +83,7 @@ minstrel_stats_open(struct inode *inode, struct file *file) | |||
83 | p += sprintf(p, "%3u%s", mr->bitrate / 2, | 83 | p += sprintf(p, "%3u%s", mr->bitrate / 2, |
84 | (mr->bitrate & 1 ? ".5" : " ")); | 84 | (mr->bitrate & 1 ? ".5" : " ")); |
85 | 85 | ||
86 | tp = ((mr->cur_tp * 96) / 18000) >> 10; | 86 | tp = mr->cur_tp / ((18000 << 10) / 96); |
87 | prob = mr->cur_prob / 18; | 87 | prob = mr->cur_prob / 18; |
88 | eprob = mr->probability / 18; | 88 | eprob = mr->probability / 18; |
89 | 89 | ||
@@ -139,7 +139,7 @@ minstrel_stats_release(struct inode *inode, struct file *file) | |||
139 | return 0; | 139 | return 0; |
140 | } | 140 | } |
141 | 141 | ||
142 | static struct file_operations minstrel_stat_fops = { | 142 | static const struct file_operations minstrel_stat_fops = { |
143 | .owner = THIS_MODULE, | 143 | .owner = THIS_MODULE, |
144 | .open = minstrel_stats_open, | 144 | .open = minstrel_stats_open, |
145 | .read = minstrel_stats_read, | 145 | .read = minstrel_stats_read, |