Search Linux Wireless

[RFC] iw: Inform the user when wow enable command with empty args

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux