Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mac80211: Fix hwflags debugfs file format

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.

Cc: stable@vger.kernel.org [4.2]
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
[fix commit log]
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Mohammed Shafi Shajakhan and committed by
Johannes Berg
4633dfc3 f7418bc1

+1 -1
+1 -1
net/mac80211/debugfs.c
··· 149 149 150 150 for (i = 0; i < NUM_IEEE80211_HW_FLAGS; i++) { 151 151 if (test_bit(i, local->hw.flags)) 152 - pos += scnprintf(pos, end - pos, "%s", 152 + pos += scnprintf(pos, end - pos, "%s\n", 153 153 hw_flag_names[i]); 154 154 } 155 155