On Mon, Jan 6, 2014 at 8:18 PM, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: > On Sun, 2014-01-05 at 02:36 +0530, Chaitanya T K wrote: >> This was blocking sending SMPS action frames >> through debugfs. > > I don't see any issue here, explain. > > johannes > buflen includes the new line character as well, hence the comparison strncmp fails for all combiantions. echo "static" > ieee80211/phyX/netdev\:wlanX/smps Then buf=static\n buflen=7 But the comparison is with "static" which doesn't include "\n" hence the comparison fails. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html