X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=net%2Fwireless%2Fdebugfs.c;h=454157717efaf8654cae9cdee39e827381dd20c3;hb=1ea406c0e08c717241275064046d29b5bac1b1db;hp=90d0500366248900f2aebcac8d57f295d229d764;hpb=efd15f5f4ff63f6ac5d80850686e3d2cc8c4481b;p=~andy%2Flinux diff --git a/net/wireless/debugfs.c b/net/wireless/debugfs.c index 90d05003662..454157717ef 100644 --- a/net/wireless/debugfs.c +++ b/net/wireless/debugfs.c @@ -47,17 +47,19 @@ static int ht_print_chan(struct ieee80211_channel *chan, return 0; if (chan->flags & IEEE80211_CHAN_DISABLED) - return snprintf(buf + offset, - buf_size - offset, - "%d Disabled\n", - chan->center_freq); - - return snprintf(buf + offset, - buf_size - offset, - "%d HT40 %c%c\n", - chan->center_freq, - (chan->flags & IEEE80211_CHAN_NO_HT40MINUS) ? ' ' : '-', - (chan->flags & IEEE80211_CHAN_NO_HT40PLUS) ? ' ' : '+'); + return scnprintf(buf + offset, + buf_size - offset, + "%d Disabled\n", + chan->center_freq); + + return scnprintf(buf + offset, + buf_size - offset, + "%d HT40 %c%c\n", + chan->center_freq, + (chan->flags & IEEE80211_CHAN_NO_HT40MINUS) ? + ' ' : '-', + (chan->flags & IEEE80211_CHAN_NO_HT40PLUS) ? + ' ' : '+'); } static ssize_t ht40allow_map_read(struct file *file,