All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mac80211: Fix the buffer length in debugfs for smps
@ 2014-01-04 21:06 Chaitanya T K
  2014-01-06 14:48 ` Johannes Berg
  0 siblings, 1 reply; 7+ messages in thread
From: Chaitanya T K @ 2014-01-04 21:06 UTC (permalink / raw)
  To: johannes, linux-wireless; +Cc: Chaitanya T K

This was blocking sending SMPS action frames 
through debugfs.

Signed-off-by: Chaitanya T K <chaitanya.mgit@gmail.com>
---
 net/mac80211/debugfs_netdev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c
index 04b5a14..1a8fa5f 100644
--- a/net/mac80211/debugfs_netdev.c
+++ b/net/mac80211/debugfs_netdev.c
@@ -265,7 +265,7 @@ static ssize_t ieee80211_if_parse_smps(struct ieee80211_sub_if_data *sdata,
 	enum ieee80211_smps_mode mode;
 
 	for (mode = 0; mode < IEEE80211_SMPS_NUM_MODES; mode++) {
-		if (strncmp(buf, smps_modes[mode], buflen) == 0) {
+		if (strncmp(buf, smps_modes[mode], buflen-1) == 0) {
 			int err = ieee80211_set_smps(sdata, mode);
 			if (!err)
 				return buflen;

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-01-06 16:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-04 21:06 [PATCH] mac80211: Fix the buffer length in debugfs for smps Chaitanya T K
2014-01-06 14:48 ` Johannes Berg
2014-01-06 15:05   ` Krishna Chaitanya
2014-01-06 15:15     ` Johannes Berg
2014-01-06 15:32       ` Krishna Chaitanya
2014-01-06 15:55         ` Johannes Berg
2014-01-06 16:46           ` Krishna Chaitanya

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.