From: Johannes Berg Date: Wed, 15 Jul 2009 18:05:06 +0200 Subject: [ath9k-devel] [PATCH 3/5] cfg80211: add WoW support In-Reply-To: <20090715151425.GC5682@mosca> References: <1247617320-20163-1-git-send-email-lrodriguez@atheros.com> <1247617320-20163-4-git-send-email-lrodriguez@atheros.com> <1247658322.2302.1.camel@johannes.local> <20090715151425.GC5682@mosca> Message-ID: <1247673906.10754.14.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 Wed, 2009-07-15 at 08:14 -0700, Luis R. Rodriguez wrote: > Will change it, thanks. I see NLMSG_DEFAULT_SIZE is smaller than > NLMSG_GOODSIZE (it removes the NLMSG_HDRLEN), but no documentation > for either, when should I use either? I don't know, but GOODSIZE is larger than a page or something, iirc. There was a patch recently changing all the users. > > > + if (!(wiphy->wow_triggers_supported & triggers_requested)) { > > > + err = -EOPNOTSUPP; > > > + goto out; > > > > This seems wrong, should be "requested & supported != requested", I > > think. > > The above one won't return -EOPNOTSUPP when you add additional junk, you're > right, better to just inform userspace of that. Your version also disallows turning off WoW again, afaict. 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/d69ce2af/attachment-0001.pgp