From: Mohammed Shafi Shajakhan <[email protected]>
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 <[email protected]>
---
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