From patchwork Thu Oct 8 13:50:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mohammed Shafi Shajakhan X-Patchwork-Id: 7352951 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3442CBEEA4 for ; Thu, 8 Oct 2015 13:51:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7B1DB203B4 for ; Thu, 8 Oct 2015 13:51:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 298AE20574 for ; Thu, 8 Oct 2015 13:51:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932969AbbJHNu7 (ORCPT ); Thu, 8 Oct 2015 09:50:59 -0400 Received: from sabertooth01.qualcomm.com ([65.197.215.72]:61824 "EHLO sabertooth01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932809AbbJHNu4 (ORCPT ); Thu, 8 Oct 2015 09:50:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1444312256; x=1475848256; h=from:to:cc:subject:date:message-id:mime-version; bh=HE6/CASs33qvHCLi6EgAq3Tm2NjQJEv75zICJPpK4cQ=; b=mcIyeVsIUG2osSe6tJ39/K2fCvryAcA8LUD6vs99UBCcEadVph/yU/dx dxUnCExWx4gZYnlzKOKLeYl13Ug5ddZH8bez4yJvx/Zr97ql/vxAF3N3v btRBY0D4ymsl59Wg9TyMR4G+ZDjtDkBqjVnwQPVbttJQlLfca6bDKIvrg A=; X-IronPort-AV: E=McAfee;i="5700,7163,7947"; a="98127404" Received: from unknown (HELO Ironmsg03-L.qualcomm.com) ([172.30.48.18]) by sabertooth01.qualcomm.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 08 Oct 2015 06:50:56 -0700 X-IronPort-AV: E=Sophos;i="5.17,654,1437462000"; d="scan'208";a="1014008982" Received: from nasanexm02e.na.qualcomm.com ([10.85.0.86]) by Ironmsg03-L.qualcomm.com with ESMTP/TLS/RC4-SHA; 08 Oct 2015 06:50:55 -0700 Received: from aphydexm01b.ap.qualcomm.com (10.252.127.11) by nasanexm02e.na.qualcomm.com (10.85.0.86) with Microsoft SMTP Server (TLS) id 15.0.1076.9; Thu, 8 Oct 2015 06:50:47 -0700 Received: from qcmail1.qualcomm.com (10.80.80.8) by aphydexm01b.ap.qualcomm.com (10.252.127.11) with Microsoft SMTP Server (TLS) id 15.0.1076.9; Thu, 8 Oct 2015 19:20:34 +0530 Received: by qcmail1.qualcomm.com (sSMTP sendmail emulation); Thu, 08 Oct 2015 19:20:22 +0530 From: Mohammed Shafi Shajakhan To: Johannes Berg CC: , Mohammed Shafi Shajakhan , Jouni Malinen Subject: [PATCH] mac80211: Fix hwflags debugfs file format Date: Thu, 8 Oct 2015 19:20:14 +0530 Message-ID: <1444312214-10669-1-git-send-email-mohammed@qti.qualcomm.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01C.na.qualcomm.com (10.85.0.83) To aphydexm01b.ap.qualcomm.com (10.252.127.11) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Mohammed Shafi Shajakhan Commit 30686bf7f5b3 ("mac80211: convert HW flags to unsigned long bitmap") accidentally removed the newline delimiter from the hwflags debugfs file. Fix this by adding back the newline between the HW flags. Signed-off-by: Mohammed Shafi Shajakhan [fix commit log] Signed-off-by: Jouni Malinen --- net/mac80211/debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c index 3636b45..4d2aaeb 100644 --- a/net/mac80211/debugfs.c +++ b/net/mac80211/debugfs.c @@ -151,7 +151,7 @@ static ssize_t hwflags_read(struct file *file, char __user *user_buf, for (i = 0; i < NUM_IEEE80211_HW_FLAGS; i++) { if (test_bit(i, local->hw.flags)) - pos += scnprintf(pos, end - pos, "%s", + pos += scnprintf(pos, end - pos, "%s\n", hw_flag_names[i]); }