diff options
| author | John W. Linville <linville@tuxdriver.com> | 2013-10-17 14:02:07 -0400 |
|---|---|---|
| committer | John W. Linville <linville@tuxdriver.com> | 2013-10-17 14:02:07 -0400 |
| commit | 9f96da4dd2ccf685b506a21104cb13b1aadd907a (patch) | |
| tree | 5d9eff61123f096e2434a9d36e6fdbd4cc5c6292 /net/wireless/debugfs.c | |
| parent | ccdbb6e96beca362db876d820ac1e560ff6d9579 (diff) | |
| parent | b6b561c31d51db3dec0cb55412a5d7a1a2397521 (diff) | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
Diffstat (limited to 'net/wireless/debugfs.c')
| -rw-r--r-- | net/wireless/debugfs.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/net/wireless/debugfs.c b/net/wireless/debugfs.c index 90d050036624..454157717efa 100644 --- a/net/wireless/debugfs.c +++ b/net/wireless/debugfs.c | |||
| @@ -47,17 +47,19 @@ static int ht_print_chan(struct ieee80211_channel *chan, | |||
| 47 | return 0; | 47 | return 0; |
| 48 | 48 | ||
| 49 | if (chan->flags & IEEE80211_CHAN_DISABLED) | 49 | if (chan->flags & IEEE80211_CHAN_DISABLED) |
| 50 | return snprintf(buf + offset, | 50 | return scnprintf(buf + offset, |
| 51 | buf_size - offset, | 51 | buf_size - offset, |
| 52 | "%d Disabled\n", | 52 | "%d Disabled\n", |
| 53 | chan->center_freq); | 53 | chan->center_freq); |
| 54 | 54 | ||
| 55 | return snprintf(buf + offset, | 55 | return scnprintf(buf + offset, |
| 56 | buf_size - offset, | 56 | buf_size - offset, |
| 57 | "%d HT40 %c%c\n", | 57 | "%d HT40 %c%c\n", |
| 58 | chan->center_freq, | 58 | chan->center_freq, |
| 59 | (chan->flags & IEEE80211_CHAN_NO_HT40MINUS) ? ' ' : '-', | 59 | (chan->flags & IEEE80211_CHAN_NO_HT40MINUS) ? |
| 60 | (chan->flags & IEEE80211_CHAN_NO_HT40PLUS) ? ' ' : '+'); | 60 | ' ' : '-', |
| 61 | (chan->flags & IEEE80211_CHAN_NO_HT40PLUS) ? | ||
| 62 | ' ' : '+'); | ||
| 61 | } | 63 | } |
| 62 | 64 | ||
| 63 | static ssize_t ht40allow_map_read(struct file *file, | 65 | static ssize_t ht40allow_map_read(struct file *file, |
