From: Mohammed Shafi Shajakhan <mohammed@xxxxxxxxxxxxxxxx> Currently when iw phy phyX wow enable is used with empty arguments is used we would disable WoWLAN in cfg80211/nl80211. It would be nice to inform the user that he/she did not configure any triggers. Signed-off-by: Mohammed Shafi Shajakhan <mohammed@xxxxxxxxxxxxxxxx> --- wowlan.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/wowlan.c b/wowlan.c index fa33c1f..6119886 100644 --- a/wowlan.c +++ b/wowlan.c @@ -31,6 +31,9 @@ static int handle_wowlan_enable(struct nl80211_state *state, struct nl_cb *cb, if (!wowlan) return -ENOBUFS; + if (!argc) + return 1; + while (argc) { switch (parse_state) { case PS_REG: -- 1.7.0.4 -- 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