Return-path: Received: from mail-ww0-f44.google.com ([74.125.82.44]:36881 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751325Ab1JVRmV convert rfc822-to-8bit (ORCPT ); Sat, 22 Oct 2011 13:42:21 -0400 Received: by wwe6 with SMTP id 6so7110185wwe.1 for ; Sat, 22 Oct 2011 10:42:20 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1319305186.3956.11.camel@jlt3.sipsolutions.net> References: <1319289112-21896-1-git-send-email-guy@wizery.com> <1319290457.3956.3.camel@jlt3.sipsolutions.net> <1319290618.3956.6.camel@jlt3.sipsolutions.net> <1319305186.3956.11.camel@jlt3.sipsolutions.net> Date: Sat, 22 Oct 2011 19:42:20 +0200 Message-ID: (sfid-20111022_194223_640758_2A3C0ED1) Subject: Re: [PATCH 1/4] nl80211: Add probe response offload attribute From: Guy Eilam To: Johannes Berg Cc: linux-wireless@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Sat, Oct 22, 2011 at 7:39 PM, Johannes Berg wrote: > On Sat, 2011-10-22 at 19:26 +0200, Guy Eilam wrote: > >> >> > +enum nl80211_probe_resp_offload_support_attr { >> >> > + ? NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS, >> >> > + ? NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2, >> >> > + ? NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P, >> >> > +}; >> >> >> >> I think doing = 1<> > >> > Hm, also: should we call this WPS or WSC, and do we need to distinguish >> > WPS and WPS2? My AP mode patch called it WSC in a different context but >> > I can change, we just should be consistent. >> > >> >> > + * @get_probe_resp_offload: Get probe response offload support from driver. >> >> >> >> and this seems unnecessary -- why not just put a u32 value into struct >> >> wiphy? >> > >> > Oh, and probably a regular WIPHY flag that indicates whether the >> > attribute should be added at all so that it can also be 0 but present >> > (presence with 0 value indicates something other than not present). >> >> When this is not supported a -EOPNOTSUPP should be returned. >> A 0 return means that it is supported. > > Yeah but if you add a wiphy flag and the bits into struct wiphy, then > you can save the function pointer which seems nicer? You're absolutely right. I'll send another version of the patch that will have a flag and bitmap in the wiphy struct. > > johannes > > Guy.