From: Johannes Berg Date: Wed, 15 Jul 2009 13:45:22 +0200 Subject: [ath9k-devel] [PATCH 3/5] cfg80211: add WoW support In-Reply-To: <1247617320-20163-4-git-send-email-lrodriguez@atheros.com> References: <1247617320-20163-1-git-send-email-lrodriguez@atheros.com> <1247617320-20163-4-git-send-email-lrodriguez@atheros.com> Message-ID: <1247658322.2302.1.camel@johannes.local> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Tue, 2009-07-14 at 20:21 -0400, Luis R. Rodriguez wrote: > + /* Draw up a netlink message to send back */ > + msg = nlmsg_new(NLMSG_GOODSIZE, GFP_KERNEL); > + if (!msg) { Need to use DEFAULT_SIZE or something. > + if (!(wiphy->wow_triggers_supported & triggers_requested)) { > + err = -EOPNOTSUPP; > + goto out; This seems wrong, should be "requested & supported != requested", I think. > @@ -4253,6 +4359,16 @@ static struct genl_ops nl80211_ops[] = { > { > .cmd = NL80211_CMD_DISCONNECT, > .doit = nl80211_disconnect, > + }, > + { > + .cmd = NL80211_CMD_GET_WOW, > + .doit = nl80211_get_wow, > + .policy = nl80211_policy, > + /* can be retrieved by unprivileged users */ > + }, > + { > + .cmd = NL80211_CMD_SET_WOW, > + .doit = nl80211_set_wow, > .policy = nl80211_policy, > .flags = GENL_ADMIN_PERM, > }, This messes up the disconnect command. johannes -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 801 bytes Desc: This is a digitally signed message part Url : http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20090715/ded12ee6/attachment.pgp